The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Member Bots 1.01 - Bots are treated as registered members Details »» | |||||||||||||||||||||||||||
Member Bots 1.01 - Bots are treated as registered members
Developer Last Online: Aug 2011
--------- Member Bots 1.01 --------- Written by Trilljester - http://www.trilliummud.com This is a port of my 3.5.x hack, Member Bots 1.0 as seen here: https://vborg.vbsupport.ru/showthread.php?t=108070 It has been tested on my test 3.0.x VBulletin install, and it worked exactly like the 3.5.x version. This mod allows visiting search engines spiders or "bots" be treated as members instead of guests. You have full control over which usergroup the bots are placed in. This allows you to have content that can only be seen by registered users be indexed by search engines. Important Note: A lot of debate has risen over this mod and so called "cloaking" from search engines like Google. It is entirely up to you to utilize this mod, and I cannot take any responsibility if search engines remove you from their listings! I highly doubt that would happen, but I can't promise it won't. I can say this though. VBulletin's biggest competitor, Invision Power Board, has the same functionality as this mod as a built-in feature, and lots of IPB installations use it WITHOUT any sort of banning or exclusion from major search engines like Google and Yahoo. I personally don't believe that this mod fits the exact definition of "cloaking", as you are not using the mod to improve search engine ranking, just allowing content that you don't want public to be indexed. If you charge members to access certain content, I would not allow search engine robots to index that content, as that could be viewed as cloaking. Just food for thought there. If you have any concerns or questions, feel free to PM me at my site. Please don't fill this topic with baseless claims that if you install it, you'll be banned from search engines. On the flipside, don't fill this topic with debates on why it's not cloaking either. If you're absolutely paranoid about all of it, don't install this mod. Simple as that. With that out of the way, let's get installing! INSTALLATION: 1. Before you can do anything, you'll need to get a file from the 3.5.x VBulletin release, as 3.0.x provides no XML parsing, and 3.5 includes a great one that makes this hack work. I cannot provide the file in my distribution (well, I think I can't, to be safe I didn't.) Download VBulletin 3.5, and upload the file includes/class_xml.php to your includes/ directory for your 3.0.x forum. You don't need to edit it at all, it'll work fine with 3.0.x. 2. Upload the rest of the files in the upload directory to your includes directory. (i.e. <forumroot>/includes/) 3. Load up includes/sessions.php into a text editor. Download it from your VB forum if necessary. In sessions.php, find this: Code:
if ($session['userid'] == 0) { Code:
require_once('./includes/function_querybot.php'); $uagent = $session['useragent']; $bot = query_bot($uagent); if ($bot == 1) { $usrgroup = 2; // Change to whatever usergroup you want! 2 = Members } else { $usrgroup = 1; } On the line that reads: Code:
'usergroupid' => 1, Code:
'usergroupid' => $usrgroup, The spiders_vbulletin.xml file comes from http://www.ragnarokonline.de/spiderlist/ and was written by Christian Stadler. You can visit his site to obtain the latest copy of the XML file. Keep it updated to keep up with new search engine bots. Feel free to PM me at my site, http://www.trilliummud.com if you use this hack. Stop in and say Howdy, it makes me smile. :-) // trilljester Show Your Support
|
Comments |
#2
|
||||
|
||||
Reserving first post for future use.
|
#3
|
|||
|
|||
Installed and I get this error. Did everything as instructed. Download 3.5.4 and uploaded the class_xml.php file. Line 247 is:
$uagent = $session['useragent']; Any help would be appreciated. Quote:
|
#4
|
||||
|
||||
The file function_querybot.php is in your includes/ directory and is readable, correct?
In your includes directory you should have these 3 files: spiders_vbulletin.xml class_xml.php (from 3.5.4) function_querybot.php Verify those are there and that this line is in includes/sessions.php: require_once('./includes/function_querybot.php'); |
#5
|
|||
|
|||
Quote:
Yes. All files are in /includes and were transferred in binary mode and are readable. I also tried the install again, first deleting and then reuploading and the problem still occurs. The require_once has also been verified. Looks pretty straightforward - minimal changes and no-brainer. FYI - The error above comes up very very fast. |
#6
|
||||
|
||||
Quote:
In your case, change the require_once from ./includes/function_querybot.php to: require_once('/home/mmotri2/public_html/forums/includes/function_querybot.php'); Try it and let me know. |
#7
|
|||
|
|||
Quote:
Not sure what happened to my recent post. It would have explained why the error is not popping up anymore. Here it goes... In your function_querybot.php file you start the code with... Code:
function query_bot($usragent = '') { . . . However, when I modify the function_querybot.php file begin with and with: Code:
<?php . . ?> Is this correct? Site works fine and now all I have to do is test it with the Firefox plugin. Let me know. Thanks. |
#8
|
||||
|
||||
Yes, that should work. You know, I had added those <?php statements on my test server, but I copied and pasted them to my normal machine to make the zip file, and probably forgot to put them in. OOPS! Big goof on my part! Glad to see it's working for you. I'll update the zip file so nobody else gets caught by this.
|
#9
|
|||
|
|||
Hi there,
May I ask if this will work for 3.6.5 as it stands now? Thanks! |
#10
|
|||
|
|||
Does this mod still work?
|
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|