User Name Password Register
DaniWeb IT Discussion Community
All
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
Reply
Join Date: Oct 2004
Location: Townsville, Australia
Posts: 16
Reputation: Natch is an unknown quantity at this point 
Rep Power: 5
Solved Threads: 0
Natch Natch is offline Offline
Newbie Poster

Re: vBulletin mod_rewrite

  #141  
Oct 25th, 2004
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
Reply With Quote  
Join Date: Oct 2004
Location: Townsville, Australia
Posts: 16
Reputation: Natch is an unknown quantity at this point 
Rep Power: 5
Solved Threads: 0
Natch Natch is offline Offline
Newbie Poster

Re: vBulletin mod_rewrite

  #142  
Oct 25th, 2004
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?
http://www.daniweb.com/tutorials/12725.html
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
Reply With Quote  
Join Date: Oct 2004
Posts: 2
Reputation: MaTriX is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
MaTriX MaTriX is offline Offline
Newbie Poster

Re: vBulletin mod_rewrite

  #143  
Oct 29th, 2004
hello,

can someone tell me what´s the differences between Dani´s Tutorial and Keith´s Tutorial?

greetz MaTriX
Reply With Quote  
Join Date: Feb 2002
Location: Lawn Guylen, NY
Posts: 11,020
Reputation: cscgal is just really nice cscgal is just really nice cscgal is just really nice cscgal is just really nice cscgal is just really nice 
Rep Power: 33
Solved Threads: 117
Admin
Staff Writer
cscgal's Avatar
cscgal cscgal is offline Offline
The Queen of DaniWeb

Re: vBulletin mod_rewrite

  #144  
Oct 29th, 2004
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.
Reply With Quote  
Join Date: Oct 2004
Posts: 5
Reputation: Thomas P is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
Thomas P Thomas P is offline Offline
Newbie Poster

Re: vBulletin mod_rewrite

  #145  
Oct 30th, 2004
What about sessionid in URLs, aren't they got lost resulting in only cookie-users can login?
Reply With Quote  
Join Date: Oct 2004
Posts: 2
Reputation: MaTriX is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
MaTriX MaTriX is offline Offline
Newbie Poster

Re: vBulletin mod_rewrite

  #146  
Oct 30th, 2004
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
Reply With Quote  
Join Date: Oct 2004
Posts: 3
Reputation: fate is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
fate fate is offline Offline
Newbie Poster

Re: vBulletin mod_rewrite

  #147  
Nov 10th, 2004
ok, got it to work.
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>
couldn't find any of those instances in my functions_online.php
Reply With Quote  
Join Date: Sep 2004
Posts: 34
Reputation: TraderX is an unknown quantity at this point 
Rep Power: 5
Solved Threads: 0
TraderX's Avatar
TraderX TraderX is offline Offline
Light Poster

Re: vBulletin mod_rewrite

  #148  
Nov 10th, 2004
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
Reply With Quote  
Join Date: Oct 2004
Location: Townsville, Australia
Posts: 16
Reputation: Natch is an unknown quantity at this point 
Rep Power: 5
Solved Threads: 0
Natch Natch is offline Offline
Newbie Poster

Re: vBulletin mod_rewrite

  #149  
Nov 11th, 2004
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
You should check over every edit you have made in your .htaccess file: if you make the slightest mistake, errors in this file will cause a 500 Internal Server Error
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
OK - any hack can be recoded to work along the same lines as this one: for the person thqt asked, I have done vBadvanced CMPS modules to work with this standard, and it works well... (www.mobileforces.org for a working demo) - other hacks similarly...
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
Reply With Quote  
Join Date: Oct 2004
Posts: 3
Reputation: fate is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
fate fate is offline Offline
Newbie Poster

Re: vBulletin mod_rewrite

  #150  
Nov 11th, 2004
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.
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb PHP Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the PHP Forum

All times are GMT -4. The time now is 5:56 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC