View Single Post
Join Date: Oct 2004
Posts: 34
Reputation: KeithMcL is an unknown quantity at this point 
Solved Threads: 0
KeithMcL's Avatar
KeithMcL KeithMcL is offline Offline
Light Poster

Re: [Revised] vBulletin Mod_rewrite Tutorial

 
0
  #2
Oct 21st, 2004
There are two things that need mentioning:

1. In the includes/functions_forumlist.php file where I mention to find
[php]$forumperms = $bbuserinfo['forumpermissions']["$forumid"];[/php] and and above it add
[php]// ################ MOD_REWRITE HACK ######################
$forum['url'] = strtolower(str_replace(" ", "-",str_replace("/", "-", $forum['title'])));
// ################ MOD_REWRITE HACK ######################[/php]There are 3 instances of the line. It's the last instance (around line 530) you place the code above.

2. In the includes/functions_online.php file where I mention replacing all instances of
[php]<a href="showthread.php?$session[sessionurl]t=$threadid\" title=\"$threadpreview\">$threadtitle</a>[/php]with
[php]<a href="t$threadid-" .mod_rewrite_title($threadtitle). ".html\" title=\"$threadpreview\">$threadtitle</a>[/php]and replacing
[php]<a href="forumdisplay.php?$session[sessionurl]f=$forumid\">$forumtitle</a>[/php]with
[php]<a href="f$forumid-" .mod_rewrite_title($forumtitle). ".html\">$forumtitle</a>[/php]If your code has backslashes ( \ ), you need to keep them in the code.
Reply With Quote