954,585 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

vBulletin mod_rewrite in phpBB mod format

I have made original Dani instructions in phpBB mode like format that i hope will be of use to you. Here it is: ############################################################## ## Hack Title: vBulletin 3x mod_rewrite ## Author: Dani http://www.daniweb.com/ ## Contributor: Gandalf Forums Directory - remake into phpBB mods like format ## Description: make your vBulletin forum search engine spiderable - for Google and all the others ## ## Compatibility: 3x ## ## Installation Level: Moderate ## Installation Time: 20 Minutes ## ## Files To Edit: 10 ## forumhome_forumbit_level1_nopost ## forumhome_forumbit_level1_post ## forumhome_forumbit_level2_nopost ## forumhome_forumbit_level2_post ## forumhome_subforumbit_nopost ## forumhome_subforumbit_post ## forumhome_lastpostby ## threadbit ## forumdisplay.php ## showthread.php ## ## Included Files: 1 ## .htaccess ## ## ## ## Support: http://www.daniweb.com/techtalkforums/thread17549.html ## Copyright: Copyright © 2004 Danielle Horowitz http://www.daniweb.com/ ## # #-----[ CREATE .htaccess file]------------------------------------------ # RewriteEngine on Options +FollowSymLinks RewriteRule ^thread([0-9]+).html$ showthread.php?t=$1 [L] RewriteRule ^lastpostinthread([0-9]+).html$ showthread.php?goto=lastpost&t=$1 [L] RewriteRule ^newpostinthread([0-9]+).html$ showthread.php?goto=newpost&t=$1 [L] RewriteRule ^forum([0-9]+).html$ forumdisplay.php?f=$1 [L] #----[GO TO Styles & Templates/Style Manager/Edit Templates/Forum Home Templates/] # #----[OPEN]--------------------------- # #forumhome_forumbit_level1_nopost #forumhome_forumbit_level1_post #forumhome_forumbit_level2_nopost #forumhome_forumbit_level2_post #forumhome_subforumbit_nopost #forumhome_subforumbit_post # # #----Find in above templates----------------- a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]"> #----Replace with----------------------------- # #----[OPEN forumhome_lastpostby template]------------- # #----Find--------------------------------------- $vbphrase[go_first_unread_in_thread_x]">$lastpostinfo[trimthread] # #----Replace with---------------------------- # $vbphrase[go_first_unread_in_thread_x]">$lastpostinfo[trimthread] # #----Find--------------------------------------- # $vbphrase[go_to_last_post] # #----Replace with---------------------------- # $vbphrase[go_to_last_post] # #----Find--------------------------------------- # $vbphrase[go_to_last_post] # #----Replace with---------------------------- # $vbphrase[go_to_last_post] #----[GO TO Styles & Templates/Style Manager/Edit Templates/Threadbit Templates/] # #-----[OPEN threadbit template]------------- # # #----Find--------------------------------------- # # #----Replace with---------------------------- # # #----Find--------------------------------------- # # #----Replace with---------------------------- # # #----Find--------------------------------------- # # #----Replace with---------------------------- # # #----Find--------------------------------------- # # #----Replace with---------------------------- # #----[GO TO Styles & Templates/Style Manager/Edit Templates/Navigation / Breadcrumb templates/] #----[OPEN navbar] # #---[Find (2 instances)]-------------------------- # # #---[Replace with]-------------------------------- # #----[OPEN forumdisplay.php]------------------- # #----Find-------------- # foreach ($parentlist AS $forumID) { $forumTitle = $forumcache["$forumID"]['title']; $navbits["forumdisplay.php?$session[sessionurl]f=$forumID"] = $forumTitle; } # #----Replace with------ # foreach ($parentlist AS $forumID) { $forumTitle = $forumcache["$forumID"]['title']; $navbits["forum$forumID.html"] = $forumTitle; // edited by dani } #----[OPEN shwothread.php]------------------- # #----Find--------------------------------------- # foreach ($parentlist AS $forumID) { $forumTitle = $forumcache["$forumID"]['title']; $navbits["forumdisplay.php?$session[sessionurl]f=$forumID"] = $forumTitle; } # #----Replace with---------------------------- # foreach ($parentlist AS $forumID) { $forumTitle = $forumcache["$forumID"]['title']; $navbits["forum$forumID.html"] = $forumTitle; // edited by dani } # #-----[ SAVE/CLOSE ALL FILES ]------------------------------------------ # # EoM I am not sure if this was already mentioned but when applying this code to latest vBulletin version i have 3.0.6 i faced a problem with the following code

<a href="forum$forum['forumid'].html">


and changing it to

<a href="forum$forum[forumid].html">


solved the problem.

Gandalf
Newbie Poster
13 posts since Jan 2005
Reputation Points: 10
Solved Threads: 0
 

For those interested, I have a new version of the tutorial out: http://www.daniweb.com/tutorials/tutorial22840.html

cscgal
The Queen of DaniWeb
Administrator
19,432 posts since Feb 2002
Reputation Points: 1,474
Solved Threads: 230
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: