| | |
vBulletin mod_rewrite
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Oct 2004
Posts: 16
Reputation:
Solved Threads: 0
Have you modified any vBulletin PHP script files, or any templates?
Natcher00 ... is the Admin @ MobileForces.org - Official Community for a cult Vehicle based FPS - the only place for support!
[vB.org] PNG24 transparency with IE * DaniWeb: mod_rewrite your vB
[vB.org] PNG24 transparency with IE * DaniWeb: mod_rewrite your vB
•
•
Join Date: Oct 2004
Posts: 16
Reputation:
Solved Threads: 0
•
•
•
•
Originally Posted by The Equivocate
I noticed that when you go to click on the latest post, the target url is "newpostinthread3.html" but when you click it, it links you to "showthread.php?p=3#post3" so did I do something wrong? Yet when you are viewing the forum and click on that thread, it shows "thread3.html"
And also, I want to fix the Online Location problem, but Natch's solution was too hard for me to figure out, so is there an easier way? Or one that goes into more detail so I can figure it out?
Natcher00 ... is the Admin @ MobileForces.org - Official Community for a cult Vehicle based FPS - the only place for support!
[vB.org] PNG24 transparency with IE * DaniWeb: mod_rewrite your vB
[vB.org] PNG24 transparency with IE * DaniWeb: mod_rewrite your vB
I originally started with my tutorial. Then Ted S expanded on my ideas. Then Keith took my original tutorial, and combined it with Ted's ideas, and put it all together as a new tutorial.
Dani the Computer Science Gal 
Follow my Twitter feed! twitter.com/DaniWeb
And if you're interested in Internet marketing there is twitter.com/DaniWebAds

Follow my Twitter feed! twitter.com/DaniWeb
And if you're interested in Internet marketing there is twitter.com/DaniWebAds
•
•
Join Date: Oct 2004
Posts: 2
Reputation:
Solved Threads: 0
•
•
•
•
Originally Posted by cscgal
I originally started with my tutorial. Then Ted S expanded on my ideas. Then Keith took my original tutorial, and combined it with Ted's ideas, and put it all together as a new tutorial.
I have tested this hack, but when I upload the ".htaccess" I get an "Error 500". What does this mean? What should I do?
Greetz MaTriX
•
•
Join Date: Oct 2004
Posts: 3
Reputation:
Solved Threads: 0
ok, got it to work.
now, when i was going through the tutorial:
couldn't find any of those instances in my functions_online.php
now, when i was going through the tutorial:
•
•
•
•
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>
Question... I have not installed v3 Articles 1.0.1 - [vB 3.0.1] or vB Journal3.0.3(v1.0.0) yet but I would like to know if it will do a mod_rewrite for them as well? Sorry if this is a dumb question... no clue how they work without the install yet
•
•
Join Date: Oct 2004
Posts: 16
Reputation:
Solved Threads: 0
•
•
•
•
Originally Posted by MaTriX
Thank you!
I have tested this hack, but when I upload the ".htaccess" I get an "Error 500". What does this mean? What should I do?
Greetz MaTriX
•
•
•
•
Originally Posted by TraderX
Question... I have not installed v3 Articles 1.0.1 - [vB 3.0.1] or vB Journal3.0.3(v1.0.0) yet but I would like to know if it will do a mod_rewrite for them as well? Sorry if this is a dumb question... no clue how they work without the install yet
Natcher00 ... is the Admin @ MobileForces.org - Official Community for a cult Vehicle based FPS - the only place for support!
[vB.org] PNG24 transparency with IE * DaniWeb: mod_rewrite your vB
[vB.org] PNG24 transparency with IE * DaniWeb: mod_rewrite your vB
•
•
Join Date: Oct 2004
Posts: 3
Reputation:
Solved Threads: 0
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:
should be
please edit the tutorial.
now a question. i wanted my forum links to look a bit different, so instead of using and i used 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.
PHP Syntax (Toggle Plain Text)
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>
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>
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><a href="f$forumid-" .mod_rewrite_title($forumtitle). ".html\">$forumtitle</a><a href=\"thread/$threadid\" title=\"$threadpreview\">$threadtitle</a>and <a href=\"forum/$forumid\">$forumtitle</a>regards.
![]() |
Similar Threads
- [Revised] vBulletin Mod_rewrite Tutorial (PHP)
- vBulletin mod_rewrite for vB 3.0.7 (Existing Scripts)
- vBulletin mod_rewrite for vB 3.0.7 (Growing an Online Community)
- vBulletin mod_rewrite in phpBB mod format (Existing Scripts)
Other Threads in the PHP Forum
- Previous Thread: Help Needed
- Next Thread: mysql_num_rows warning
| Thread Tools | Search this Thread |
ajax apache api array arrays beginner binary broken cache cakephp checkbox class cms code confirm cron curl customizableitems database date display dynamic echo email error external file files folder form forms forum function functions google header headmethod howtowriteathesis href htaccess html iframe image include insert integration ip java javascript joomla limit link login loop mail malfunction menu method mlm multiple mysql neutrality oop paypal pdf php phpmysql play problem query question radio random recursion regex remote root script search select server sessions sms soap source space sql syntax system table tutorial update upload url validator variable video web xml youtube






