vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Member Bots 1.0 - Allow bots to act as members (https://vborg.vbsupport.ru/showthread.php?t=108070)

trilljester 02-14-2006 10:00 PM

Member Bots 1.0 - Allow bots to act as members
 
--------- Member Bots 1.0 ---------
Written by Trilljester - http://www.trilliummud.com

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.

This mod uses the spiders_vbulletin.xml file for determining if a visitor is a bot or not, so make sure you have that file up to date. The one that comes with VB is pretty sparse, but it works. If you're only interested in GoogleBot, then the default file works great.

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! I won't be held responsible for your forum being fouled up. This mod is very safe however, so don't fret.

Install Instructions:

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, it was line 403 in mine):

Code:

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

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.

Questions, comments, improvements are more than welcome. Please use this thread as a cental support site. It makes it easier for me to help out. Also, you may visit my site and fire me off a PM for help, or just send a quick thanks or shout out.

Enjoy!
// trilljester

trilljester 02-15-2006 09:18 PM

Reserving for future use. If any....

bashy 02-15-2006 09:53 PM

Hi

Me installed...
I take it the bots are now registeed users and not showing as guest anymore?

Smiry Kin's 02-15-2006 10:04 PM

hmm i read some one doing this was agaisnt the bots agreements etc?

trilljester 02-15-2006 10:08 PM

Quote:

Originally Posted by bashy
Hi

Me installed...
I take it the bots are now registeed users and not showing as guest anymore?

No, they'll still show up as Guest, but their usergroup will be that of a member, thus allowing them to see what members can see.

trilljester 02-15-2006 10:19 PM

Quote:

Originally Posted by Smiry Kin's
hmm i read some one doing this was agaisnt the bots agreements etc?

This is a well-known and well-liked feature of IPB that, in my opinion, is sorely lacking in VBulletin. I sent a quick email to Google regarding this issue and they responded that this is not an issue to them since they don't personally review every site that GoogleBot spiders.

If you install this mod and see issues with Google/Yahoo/etc... then remove it and everything will go back to the way it was.

PixelFx 02-15-2006 10:47 PM

this kicks a$$, thanks for releasing it

mightyb 02-15-2006 11:19 PM

Quote:

Originally Posted by Smiry Kin's
hmm i read some one doing this was agaisnt the bots agreements etc?

Good point! This might be considered as search engine cloacing. Because spiders will see the page different to what regular users (guests) will see. But i dont know...

Smiry Kin's 02-15-2006 11:41 PM

well it happened to one of my sites.. now google and blocked it from there search engine.. im just say.. :) becareful., infact they banned my whole adsense account, in which they still wont mail back to this day..

Ramsesx 02-16-2006 02:29 AM

Hm, would like to install it very much, but the most visitors at this time come from google and would be a desaster if they would ban my site. :ermm:
@trilljester
could you be so kind and post exactly what google wrote to you?
Thanks


All times are GMT. The time now is 07:40 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01191 seconds
  • Memory Usage 1,741KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete