Go Back   vBulletin Setup > Front Desk > Articles, Interviews & Tutorials

Reply
 
LinkBack Thread Tools Display Modes
Old 09-17-2006, 04:09 AM   #1
Guest
Feedback Score: 0 reviews
 
Former Admin's Avatar
 
Join Date: Jul 2006
Location: Topeka, KS
Posts: 14,155
Former Admin is a name known to allFormer Admin is a name known to allFormer Admin is a name known to allFormer Admin is a name known to allFormer Admin is a name known to allFormer Admin is a name known to all
Send a message via AIM to Former Admin Send a message via MSN to Former Admin Send a message via Yahoo to Former Admin
vBulletin Optimizing Tips

Here are some quick and easy optimizing tips that I found on a site I'll link to at the bottom

1. Store CSS StyleSheets as Files

By default, vBulletin will store the CSS of your pages as HTML within the head of the document. This, when taken over thousands of pages, can be quite a heavy burden.

Storing CSS Stylesheets as files will allow users/spiders to cache the CSS as a file, and make each page smaller, HTML wise, giving your server a bit of a breather.

To begin, ensure your forums/clientscript/vbulletin_css directory is chmod 777 so the stylesheet files can be created.
Next, in the AdminCP, select the vBulletin Options menu then vBulletin Options.
Select Style and Language Options.
Set "Store CSS Stylesheets as Files?" to Yes.
Click Submit.


2. Gzip those pesky pages!

Many hosts these days come with gzip as standard, meaning if you enable it within vBulletin you can actually slow pages down.

If your host has gzip installed, follow these instructions:

Go to the AdminCP, expand the vBulletin Options menu and select vBulletin Options.
Select Cookies and HTTP Header Options.
Set "GZIP HTML Output" to No, set "GZIP Compression Level" to 0 and click Submit.

If your host does not have gzip installed, choose Yes and 1 for the above.

3. Restrict Search Engine Crawling

Those spiders..they index your content, but there are always places that you don't want or need them to go.
To restrict the pesky critters to only eating up your Content, do the following.

In your root (public_html) directory, upload the following robots.txt::


Code:
User-agent: *
Disallow: /forums/ajax.php
Disallow: /forums/attachment.php
Disallow: /forums/calendar.php
Disallow: /forums/cron.php
Disallow: /forums/editpost.php
Disallow: /forums/global.php
Disallow: /forums/image.php
Disallow: /forums/inlinemod.php
Disallow: /forums/joinrequests.php
Disallow: /forums/login.php
Disallow: /forums/member.php
Disallow: /forums/memberlist.php
Disallow: /forums/misc.php
Disallow: /forums/moderator.php
Disallow: /forums/newattachment.php
Disallow: /forums/newreply.php
Disallow: /forums/newthread.php
Disallow: /forums/online.php
Disallow: /forums/poll.php
Disallow: /forums/postings.php
Disallow: /forums/printthread.php
Disallow: /forums/private.php
Disallow: /forums/profile.php
Disallow: /forums/register.php
Disallow: /forums/report.php
Disallow: /forums/reputation.php
Disallow: /forums/search.php
Disallow: /forums/sendmessage.php
Disallow: /forums/showgroups.php
Disallow: /forums/subscription.php
Disallow: /forums/threadrate.php
Disallow: /forums/usercp.php
Disallow: /forums/usernote.php
Remove any lines that you WANT the spiders to see.. if you want them to crawl the Calendar, take out Disallow: /forums/calendar.php.

4. Move Attachments to the File System

Stock vBulletin Attachments are stored in the Database. Large attachments or frequent viewing of them can cause a strain.

To move them to the File System, create an attachments directory above your public_html (at the same level as it.. /root/username/public_html | root/username/attachments) and CHMod it 777.

By placing it at this level, we prevent anyone from being able to access the attachments directly (ie: not through vBulletin).

Next, go to the AdminCP and expand the Attachments menu.
Click on Attachment Storage Type.
Move your attachments out of the database and into the file system.

Attachment Path: /home/*username*/attachments


5. Move Avatars and Profile Pics to the File System

As with the Attachments above, but the Avatars are on every post, so cause a burden to the server whenever a post is viewed.

To move them to the filesystem, chmod your forums/customavatars and forums/customprofilepics directories to 777.
Go to the AdminCP and expand the Avatars menu.
Click User Picture Storage Type.
Choose to Move Avatars and Profile Pics to the File System.

Avatar Path: /home/*username*/public_html/forums/customavatars

Avatar URL: /forums/customavatars

Profile Pic Path: /home/*username*/public_html/forums/customprofilepics

Profile Pic URL: /forums/customprofilepics


6. Increase Cached Posts Lifespan

Posts can be "cached", meaning the server doesn't have to pull them from the database every time they are viewed.
To enable Post Caching, do the following:

Go to the AdminCP, expand the vBulletin Options menu and select vBulletin Options.
Select Server Settings and Optimization Options in the drop down menu.
Set "Cached Posts Lifespan" to 90.
Click Submit.
If you have very little spare space, drop it to 30.


7. Disable Search and Who's Online for Guests

Why should guests (which are often mainly Spiders) see your Who's Online and Search? Do the following to stop them and reduce the load.

Go to your AdminCP.
Expand the Usergroups menu.
Select Usergroup Manager.
Select Unregistered / Not Logged In.
Set both "Can Search Forums" and "Can View Who's Online" to No.
Click Submit.

8. Turn on fulltext searching

Go to your AdminCP and expand the vBulletin Options menu
Select Search Type.
Set "Empty postindex and word tables?" to Yes.
Click Submit.


9. vBulletin.org Optimisation Mods

The following link willl provide the various Modifications that have been written by the Community at vB.org:

vB3.5 Add-ons - vBulletin.org Forum

[Source....] thx to Kall @ vbenhanced.com
Former Admin is offline   Reply With Quote

Advertisement [Remove Advertisement]

Old 09-17-2006, 04:20 AM   #2
Supporters
vBulletin Owner
Feedback Score: 0 reviews
 
Join Date: Aug 2006
Posts: 1,292
Code Monkey
If you have my vB AJAX Cron mod you should add the following to your robots text as well.

Code:
Disallow: /forums/ajax_cron.php
Code Monkey is offline   Reply With Quote
Old 09-17-2006, 05:58 AM   #3
Guest
Feedback Score: 0 reviews
 
Former Admin's Avatar
 
Join Date: Jul 2006
Location: Topeka, KS
Posts: 14,155
Former Admin is a name known to allFormer Admin is a name known to allFormer Admin is a name known to allFormer Admin is a name known to allFormer Admin is a name known to allFormer Admin is a name known to all
Send a message via AIM to Former Admin Send a message via MSN to Former Admin Send a message via Yahoo to Former Admin
yup and any other files that you don't want spiders to index

the idea behind this is to get the good content spidered, not the stuff unrelated to your site
Former Admin is offline   Reply With Quote
Old 10-17-2006, 02:23 PM   #4
entrepreneur
Feedback Score: 0 reviews
 
Join Date: May 2006
Posts: 56
Kihon Kata
Quote:
Originally Posted by Loco View Post
Here are some quick and easy optimizing tips that I found on a site I'll link to at the bottom

1. Store CSS StyleSheets as Files

2. Gzip those pesky pages!

3. Restrict Search Engine Crawling

4. Move Attachments to the File System

5. Move Avatars and Profile Pics to the File System

6. Increase Cached Posts Lifespan

7. Disable Search and Who's Online for Guests

8. Turn on fulltext searching
Hi Loco!

I have taken you up on your optimization tactics here. I was already doing a few of these things as in attachments running from file system, css running from file system, disable search allowing guests to use it

I added the rest! Let's see how it goes on my semi busy forum

Thanks!
Kihon Kata is offline   Reply With Quote
Old 10-17-2006, 03:31 PM   #5
vBulletin Owner
Feedback Score: 0 reviews
 
eric's Avatar
 
Join Date: Oct 2006
Location: France
Posts: 1,153
eric eric
I have set the robot test file but I spidered them and Google doesn't follow the rules. They just ignore it, like it is still going over members list.
And I did check the net, seems I'm not the only one thinking this .
eric is offline   Reply With Quote
Old 10-17-2006, 03:39 PM   #6
Supporters
vBulletin Owner
Feedback Score: 0 reviews
 
Join Date: Aug 2006
Posts: 1,292
Code Monkey
I have not had one google bot overstepping the line. And VBSEO gives me a complete list of it's activity.

Did you name it robots.txt? That's robots not robot. I see you call it robot test file above. It's not a test file but a txt file.

Also, it goes in your root directory not forum directory.
Code Monkey is offline   Reply With Quote
Old 10-17-2006, 03:43 PM   #7
entrepreneur
Feedback Score: 0 reviews
 
Join Date: May 2006
Posts: 56
Kihon Kata
Here's mine if you wanna use it. I put it in my root of my site(not root of forums)
Attached Files
File Type: txt robots.txt (1.1 KB, 5 views)
Kihon Kata is offline   Reply With Quote
Old 10-17-2006, 06:58 PM   #8
Supporters
vBulletin Owner
Feedback Score: 0 reviews
 
smacklan's Avatar
 
Join Date: Sep 2006
Posts: 177
smacklan smacklan
Good tips Loco! One thing I will point out however...vBulletin does not parse external files so when you store css stylesheets as files you will run into problems with some commercial styles that rely heavily on css and especially those that rely on the replacement variable in the style mananger.
smacklan is offline   Reply With Quote
Old 10-17-2006, 07:39 PM   #9
vBulletin Owner
Feedback Score: 0 reviews
 
eric's Avatar
 
Join Date: Oct 2006
Location: France
Posts: 1,153
eric eric
my robots.txt file seems ok

this is what's in it
Quote:
User-agent: *
Disallow: /forum/arcade.php
Disallow: /forums/ajax.php
Disallow: /forums/attachment.php
Disallow: /forums/calendar.php
Disallow: /forums/cron.php
Disallow: /forums/editpost.php
Disallow: /forums/global.php
Disallow: /forums/image.php
Disallow: /forums/inlinemod.php
Disallow: /forums/joinrequests.php
Disallow: /forums/login.php
Disallow: /forums/member.php
Disallow: /forums/memberlist.php
Disallow: /forums/misc.php
Disallow: /forums/moderator.php
Disallow: /forums/newattachment.php
Disallow: /forums/newreply.php
Disallow: /forums/newthread.php
Disallow: /forums/online.php
Disallow: /forums/poll.php
Disallow: /forums/postings.php
Disallow: /forums/printthread.php
Disallow: /forums/private.php
Disallow: /forums/profile.php
Disallow: /forums/register.php
Disallow: /forums/report.php
Disallow: /forums/reputation.php
Disallow: /forums/search.php
Disallow: /forums/sendmessage.php
Disallow: /forums/showgroups.php
Disallow: /forums/subscription.php
Disallow: /forums/threadrate.php
Disallow: /forums/usercp.php
Disallow: /forums/usernote.php
Disallow: /forums/ajax_cron.php
and it is /public_html/
maybe I should set it a level lower, though it should respect it.

And for the moment none is where it shoudln't as usual same as when you go to the garage for a screeming brake that suddenly doesn't
Attached Images
File Type: jpg robots.txt.jpg (4.3 KB, 10 views)
eric is offline   Reply With Quote
Old 10-18-2006, 03:10 AM   #10
Supporters
vBulletin Owner
Feedback Score: 0 reviews
 
Join Date: Aug 2006
Posts: 1,292
Code Monkey
Here is mine.

Code:
User-agent: *
Disallow: /forums/ajax.php
Disallow: /forums/ajax_cron.php
Disallow: /forums/attachment.php
Disallow: /forums/checkspelling.php
Disallow: /forums/cron.php
Disallow: /forums/editpost.php
Disallow: /forums/external.php
Disallow: /forums/faq.php
Disallow: /forums/global.php
Disallow: /forums/image.php
Disallow: /forums/joinrequest.php
Disallow: /forums/login.php
Disallow: /forums/misc.php
Disallow: /forums/moderator.php
Disallow: /forums/newattatchment.php
Disallow: /forums/newreply.php
Disallow: /forums/newthread.php
Disallow: /forums/online.php
Disallow: /forums/payment_gateway.php
Disallow: /forums/payments.php
Disallow: /forums/pdfthread.php
Disallow: /forums/poll.php
Disallow: /forums/postings.php
Disallow: /forums/printthread.php
Disallow: /forums/private.php
Disallow: /forums/profile.php
Disallow: /forums/register.php
Disallow: /forums/report.php
Disallow: /forums/reputation.php
Disallow: /forums/search.php
Disallow: /forums/sendmessage.php
Disallow: /forums/subcription.php
Disallow: /forums/subcriptions.php
Disallow: /forums/threadrate.php
Disallow: /forums/usercp.php
Disallow: /forums/usernote.php

Disallow: /forums/admincp/
Disallow: /forums/images/
Disallow: /forums/modcp/
Disallow: /forums/articlebot/
Disallow: /forums/clientscript/
Disallow: /forums/customavatars/
Disallow: /forums/customprofilepics/
Disallow: /forums/files/
Disallow: /forums/install/
Disallow: /forums/cpstyles/
Disallow: /forums/images/
Disallow: /forums/includes/
Disallow: /forums/subscriptions/
Disallow: /forums/attachments/
Disallow: /forums/frm_attach/
Disallow: /forums/vbweather/
Code Monkey is offline   Reply With Quote
Reply
vBulletin Setup > Front Desk > Articles, Interviews & Tutorials


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
What to do about this? Mark Bolyard Security and Legal Issues 9 08-16-2006 05:24 AM
VB Help Adam-N vBulletin 5 07-11-2006 06:00 AM
error message diceman Graphics and Design 0 03-11-2006 08:36 PM


All times are GMT +1. The time now is 09:29 AM.

Inactive Reminders By Mished.co.uk and FTP-Anime.com

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133