it's been a long time since the [Revised] vBulletin Mod_rewrite Tutorial has been published, and nobody has noticed an error in it. weird. anyway, in the File Edits part there are 2 mistakes:
Find all instances of:
PHP Code:
<a href="showthread.php?$session[sessionurl]t=$threadid\" title=\"$threadpreview\">$threadtitle</a>
And replace with:
PHP Code:
<a href="t$threadid-" .mod_rewrite_title($threadtitle). ".html\" title=\"$threadpreview\">$threadtitle</a>
Find all instances of:
PHP Code:
<a href="forumdisplay.php?$session[sessionurl]f=$forumid\">$forumtitle</a>
And replace with:
PHP Code:
<a href="f$forumid-" .mod_rewrite_title($forumtitle). ".html\">$forumtitle</a>
should be
Find all instances of:
PHP Code:
<a href=\"showthread.php?$session[sessionurl]t=$threadid\" title=\"$threadpreview\">$threadtitle</a>
And replace with:
PHP Code:
<a href="t$threadid-" .mod_rewrite_title($threadtitle). ".html\" title=\"$threadpreview\">$threadtitle</a>
Find all instances of:
PHP Code:
<a href=\"forumdisplay.php?$session[sessionurl]f=$forumid\">$forumtitle</a>
And replace with:
PHP Code:
<a href="f$forumid-" .mod_rewrite_title($forumtitle). ".html\">$forumtitle</a>
please edit the tutorial.
now a question. i wanted my forum links to look a bit different, so instead of using
<a href="t$threadid-" .mod_rewrite_title($threadtitle). ".html\" title=\"$threadpreview\">$threadtitle</a>
and
<a href="f$forumid-" .mod_rewrite_title($forumtitle). ".html\">$forumtitle</a>
i used
<a href=\"thread/$threadid\" title=\"$threadpreview\">$threadtitle</a>
and <a href=\"forum/$forumid\">$forumtitle</a>
so all my links to threads would look like thread/[threadid] and the links to forums would look like forum/[forumid]. however, in the Who's Online if i am viewing some forum, for example with id of 1, in the location column it says "Unknown Location /forum/1". it shows the threads fine, but not forums for some weird reason. any help there?
regards.