Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Member Bots 1.0 - Allow bots to act as members Details »»
Member Bots 1.0 - Allow bots to act as members
Version: 1.00, by trilljester trilljester is offline
Developer Last Online: Aug 2011 Show Printable Version Email this Page

Version: 3.5.3 Rating:
Released: 02-14-2006 Last Update: Never Installs: 192
Uses Plugins
Code Changes  
No support by the author.

--------- 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

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #72  
Old 05-03-2006, 09:57 PM
denby denby is offline
 
Join Date: Nov 2004
Location: Canberra, Australia
Posts: 14
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by denby
Nice mod but it's operating in the grey zone and until Google definitively clarifies whether it's OK for a spider to see my forum content while an unlogged-in visitor can not, I will not be installing it. I can't afford the risk of losing my significant monthly GoogleAds income or my healthy SE ranking.

I will write to Google and report here if I get a clearer answer than trilljester received.
Well, they will not commit to any further elaboration so I say act on the side of caution and beware.

I have settled on a compromise: I will allow all guests (including spiders) to view the forums and thread titles but stop short of showing thread content. Hopefully most thread titles will be informative (and not of the "Help!", "One more thing" and "Well what do you know..." variety) and so entice Google search engine users to come and register.

You can achieve this with the built-in permissions options by setting the forum permissions for each forum for the Unregistered/Not Logged In usergroup as follows:
Can View Forum Yes
Can View Thread Content No
Can View Others' Threads Yes

vB can't tell who the guest is (whether or not they have posted in the forum before) and so all threads are by someone else. But they are still not allowed to view the content.

The quickest way to implement this for all your forums is to do it once manually for one forum and then use the Forum-Based Permission Duplicator . You can find a link to that duplicator at the top of the page:
Admin Control Panel -> Forums and Moderators -> Forum Permissions

I hope this helps.
Reply With Quote
  #73  
Old 05-04-2006, 02:42 AM
kall's Avatar
kall kall is offline
 
Join Date: Apr 2004
Location: New Zealand
Posts: 2,608
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lammypie
Corbynt, I'm not sure mine is working either. I've adjusted my useragent to "Googlebot/2.X (http://www.googlebot.com/bot.html)" and gone to my site (not logged in as a user, the access I get is contolled by the user group setting, so thats working, its just that I don't appear in the whos online list as googlebot, only as guest. ? any suggestions whats wrong.


Reg Car, I also need to stop spiders from seeing the welcome headers, as they are ruining my search results.

All suggestions welcome
Do you have Googlebot defined as such in your AdminCP - Spider Identification?

ie: Does googlebot show up in your Who's Online ever?
Reply With Quote
  #74  
Old 05-11-2006, 07:11 PM
venkyrahul venkyrahul is offline
 
Join Date: May 2006
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

seems a good hack , thanks
Reply With Quote
  #75  
Old 05-13-2006, 11:29 PM
Smiry Kin's's Avatar
Smiry Kin's Smiry Kin's is offline
 
Join Date: Dec 2005
Location: United Kingdom!
Posts: 954
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

donno if its working for me..??

but i see that it has no permissions :S

now guests have permission to view profiles n stuff :s.... so do memebers...?
Reply With Quote
  #76  
Old 05-16-2006, 01:42 AM
moonclamp's Avatar
moonclamp moonclamp is offline
 
Join Date: May 2004
Location: London
Posts: 516
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Just wondering, has anyone actually seen their rank improved as a result of this hack?
Reply With Quote
  #77  
Old 05-16-2006, 07:38 AM
Lammypie Lammypie is offline
 
Join Date: Nov 2005
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by kall
Do you have Googlebot defined as such in your AdminCP - Spider Identification?

ie: Does googlebot show up in your Who's Online ever?

I have something like 11 members and 2 guests show up quite a bit. When I enter the whos online page, it will say one of the guests - I can tell its googlebot by the browser id only.

googlebot is listed in the spider id xml file if thats what you mean?
Reply With Quote
  #78  
Old 05-20-2006, 10:47 AM
WebsiteDonation WebsiteDonation is offline
 
Join Date: Jan 2006
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Dear trilljester & everybody,

I didn't try this mod yet but after reviewing all of your discussions here, I have some ideas :

1. This mod is alright with Google, you guys don't need to worry. Because, very simple, you can set for Guests permission to view all of pages on your forums. In this mod, you set for Spiders permission to view all of pages, there is no problem from Google or whether.

2. I recommend that you guys should create a separate usergroup for Bots, with viewing permissions only. This is good in case if someone try to be .. a bot. In this moment, I am willing to be a spider to make some posts annoy your forums because Bots are in Registered usergroup.

Just small ideas.
Reply With Quote
  #79  
Old 05-20-2006, 10:54 AM
WebsiteDonation WebsiteDonation is offline
 
Join Date: Jan 2006
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Additional, a short question : Is there any accident if we use this mod and vbBOL ?
Reply With Quote
  #80  
Old 05-20-2006, 10:02 PM
boeserwolf boeserwolf is offline
 
Join Date: Jan 2004
Location: Styria / Austria
Posts: 59
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

boeserwolf klicks install

It´s very useful for my community as a lot of members would complain if we would allow guests to read the threads. We have a legal topic in our board, but we also want to improve our search engine ranking, so I think this is one of the best hacks to fullfil both needs.

Thanks a lot for this

Markus
Reply With Quote
  #81  
Old 05-20-2006, 10:12 PM
kall's Avatar
kall kall is offline
 
Join Date: Apr 2004
Location: New Zealand
Posts: 2,608
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by boeserwolf
boeserwolf klicks install

It?s very useful for my community as a lot of members would complain if we would allow guests to read the threads. We have a legal topic in our board, but we also want to improve our search engine ranking, so I think this is one of the best hacks to fullfil both needs.

Thanks a lot for this


Markus
You don't appear to understand.

By allowing SE bots to read these 'member-only' threads, you ARE allowing Guests to read them.

a) by viewing the cached page in the SE results.
b) by changing their Useragent to match that of a known bot, thereby allowing an actual Guest to read the thread.
Reply With Quote
Reply


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

Forum Jump


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


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05145 seconds
  • Memory Usage 2,322KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_code
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete