Version: , by fastforward
Developer Last Online: Nov 2011
Version: 2.2.x
Rating:
Released: 05-24-2001
Last Update: Never
Installs: 35
No support by the author.
For vB 2.0
This little hackette is a quick fix to allow search engine bots to spider your threads.
Although this will allow the bots to index every thread on your site, it will not make the threads 'search engine optimized'. They will see exactly what you see when you visit your site. It simply removes the CGI bits from the URL's which prevents most search engine bots from spidering more than one level deep.
If you want a hack that allows to fully customize how the thread will look to the search engine bot, you should look at Overgrows more complete hack here.
The advantage of this hack over Overgrows is that it does not require htaccess support which can have performance issues. This could also be seen as a disadvantage though as my hack requires that you have mod_rewrite enabled on your Apache Server, whereas Overgrows method should work with just about any web host out there.
Take yer pick
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
I narrowed down this problem to the sessions.php PPN posted in the sticky over on vbulletin.com's troubleshooting forum. Sorry, I forgot all about posting in this thread I was just too happy to realize I didn't break it
The addition of the following code to postings.php will allow you to use the search-engine friendly URLs to merge threads:
Below:
PHP Code:
// get other threadid
$getthreadid=intval(substr($mergethreadurl,strpos($mergethreadurl,"threadid=")+9));
Insert:
PHP Code:
// Hack: Work with search-engine friendlylinks $getsearchfriendlythreadid=intval(substr($mergethreadurl,strpos($mergethreadurl,"/t")+2));
if ($getthreadid==0) {
$getthreadid=$getsearchfriendlythreadid;
}
// End hack: Work with search-engine friendlylinks
This will only work if your new url's contain "/t<threadnumber>". If you are using a different prefix, you'll need to alter the script accordingly, where the "2" equals the number of characters within the quotes. Also, if your forum resides in a directory that starts with the letter "t" this will not work for you. You'll need to modify it.
I am having trouble with forumjump after installing this hack. Even if I have forumjump turned on on my control panel, it doesn't work. So I can't merge or move threads, for instance. Any thoughts on this issue?
Originally posted by The Piper I am having trouble with forumjump after installing this hack. Even if I have forumjump turned on on my control panel, it doesn't work. So I can't merge or move threads, for instance. Any thoughts on this issue?