•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the PHP section within the Web Development category of DaniWeb, a massive community of 456,569 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,575 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our PHP advertiser: Lunarpages PHP Web Hosting
Views: 71637 | Replies: 238
![]() |
•
•
Join Date: Oct 2004
Location: Townsville, Australia
Posts: 16
Reputation:
Rep Power: 5
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
Location: Townsville, Australia
Posts: 16
Reputation:
Rep Power: 5
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
•
•
Join Date: Feb 2002
Location: Lawn Guylen, NY
Posts: 11,020
Reputation:
Rep Power: 33
Solved Threads: 117
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
Do you run a computer-related website? Feature it in our niche link directory!
Do you run a computer-related website? Feature it in our niche link directory!
•
•
Join Date: Oct 2004
Posts: 2
Reputation:
Rep Power: 0
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.
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
•
•
Join Date: Oct 2004
Posts: 3
Reputation:
Rep Power: 0
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
Location: Townsville, Australia
Posts: 16
Reputation:
Rep Power: 5
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:
Rep Power: 0
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.
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.
![]() |
•
•
•
•
•
•
•
•
DaniWeb PHP Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
- [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



Linear Mode