Facebook Twitter Pinterest Share

vBulletin 3.X Add-ons & Template Modifications All the latest vBulletin 3.X Add-ons & Template Modifications.


New Thread  Post Reply
Morpheus's Avatar
Morpheus : ELiTE
Morpheus has much to be proud ofMorpheus has much to be proud ofMorpheus has much to be proud ofMorpheus has much to be proud ofMorpheus has much to be proud ofMorpheus has much to be proud ofMorpheus has much to be proud ofMorpheus has much to be proud ofMorpheus has much to be proud of
offline Joined: Sep 2007 Location: 127.0.0.1 Posts: 352 Thanked: 150
  #1  
Thread Starter Unread 01-12-08
Member Bots 1.0 - Allow bots to act as members

Member Bots 1.0 - Allow bots to act as members
http://www.vbulletin.org/forum/showthread.php?t=108070
This small mod allows you to treat search engine robots (i.e. GoogleBot, Yahoo Slurp)
as registered users instead of guests, as they are treated by default in VBulletin.

This is handy if your site allows limited access to guests, but full access to registered
users. By default, a search engine robot would only be allowed to index what a guest could
see, but with this mod, it would allow them to fully index your site as a registered user.

WARNING! This mod requires a very small edit to a VBulletin core file. This means whenever
you upgrade to a new version of VBulletin, you'll need to re-do this edit, if you overwrite
this file. If the idea of editing a VBulletin core file bothers you, don't install this mod!


To install:

1. Unzip the product-memberbot.xml file on your system.

2. Go to your VBulletin AdminCP and click on Manage Products under the Plugin Manager section.

3. Click on Add/Import Product.

4. Click on Browse on the first line (Upload the XML from your computer) and locate the
product-memberbot.xml file. Click on Import to upload it to the system.

5. Click on Plugin Manager, and ensure that the new plugin named Bot Checker, which
is found under the init_startup hook, is enabled.

6. Now the fun part, you'll need to edit the core VBulletin file init.php which is located in
the includes directory under your forum home.

For example, if your forum home is located in /home/blah/forum, then init.php is in
/home/blah/forum/includes

If you can edit the file on the server without having to download it, more power to you.

In init.php, find this line (should be near the very bottom of the file, line 403 in mine):

 if (!empty($db->explain)) 
Add ABOVE this line:

 if ($is_bot == 1) {
        
$vbulletin->userinfo['usergroupid'] = 2;

NOTE: My registered users group is ID #2. Yours may be different, you may change this to
any group ID you like.

7. Save init.php and upload back to your server if you had to download the file to edit it.
If you're editing on the server, save it, and that's it!

=================================================================================================
That's it! Search Engine bots should now "see" your forum as a regular user, not a guest.


Enjoy!
Attached Files Click the thanks button to view this attachment.
Quote
The Following 6 Users Say Thank You to Morpheus For This Useful Post:
Morpheus's Avatar
Morpheus : ELiTE
Morpheus has much to be proud ofMorpheus has much to be proud ofMorpheus has much to be proud ofMorpheus has much to be proud ofMorpheus has much to be proud ofMorpheus has much to be proud ofMorpheus has much to be proud ofMorpheus has much to be proud ofMorpheus has much to be proud of
offline Joined: Sep 2007 Location: 127.0.0.1 Posts: 352 Thanked: 150
  #2  
Thread Starter Unread 01-12-08
On vBulletin 3.6.8 you will find the code
if (!empty($db->explain)) 
around the line 457 of the init.php file.
Quote
The Following User Says Thank You to Morpheus For This Useful Post:
The Prodigy's Avatar
The Prodigy : Member
The Prodigy is on a distinguished road
offline Joined: Nov 2007 Location: Texas Posts: 35 Thanked: 2
  #3  
Unread 01-19-08
ok so on this hack. it makes the bots look as if they are registered members?
Quote
The Following User Says Thank You to The Prodigy For This Useful Post:
Tigerz's Avatar
Tigerz : Newbie
Tigerz is on a distinguished road
offline Joined: Jan 2008 Posts: 3 Thanked: 2
  #4  
Unread 01-21-08
yes it makes bots look as if they are registered members
Quote
The Following User Says Thank You to Tigerz For This Useful Post:
Tigerz's Avatar
Tigerz : Newbie
Tigerz is on a distinguished road
offline Joined: Jan 2008 Posts: 3 Thanked: 2
  #5  
Unread 01-22-08
when i change the init file i get this error meesage
saying it couldnt find something on line 369 of the init.php file so i changed it back but why didnt this work
Quote
The Following User Says Thank You to Tigerz For This Useful Post:
wingman2083's Avatar
wingman2083 : Newbie
wingman2083 is on a distinguished road
offline Joined: Oct 2007 Posts: 3 Thanked: 3
  #6  
Unread 02-03-08
The mod doesn't work on 3.7.x.
Quote
The Following User Says Thank You to wingman2083 For This Useful Post:
wingman2083's Avatar
wingman2083 : Newbie
wingman2083 is on a distinguished road
offline Joined: Oct 2007 Posts: 3 Thanked: 3
  #7  
Unread 02-06-08
Update: works like a charm on 3.7.x.
Quote
The Following 2 Users Say Thank You to wingman2083 For This Useful Post:
Stylor1's Avatar
Stylor1 : Member
Stylor1 is on a distinguished road
offline Joined: Feb 2008 Posts: 46 Thanked: 1
  #8  
Unread 02-09-08
Thank you a lot!
Quote
The Following User Says Thank You to Stylor1 For This Useful Post:
JaFaR's Avatar
JaFaR : Newbie +
JaFaR is on a distinguished road
offline Joined: Oct 2007 Posts: 19 Thanked: 1
  #9  
Unread 02-16-08
thanx
but i have a question
what will this hack show me ?
Quote
The Following User Says Thank You to JaFaR For This Useful Post:
studio's Avatar
studio : Newbie
studio is on a distinguished road
offline Joined: Feb 2008 Posts: 3 Thanked: 1
  #10  
Unread 02-23-08
... shows bots as registered members..
Quote
The Following User Says Thank You to studio For This Useful Post:
New Thread  Post Reply

Thread Tools

Bookmarks
  • Submit Thread to Facebook
  • Submit Thread to Twitter
  • Submit Thread to Pinterest
  • Submit Thread to LinkedIn
  • Submit Thread to Reddit
Tags
member, members, bots, act
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
Powered by GYSN Underground 2021