943,469 Members | Top Members by Rank

Ad:
  • PHP Discussion Thread
  • Unsolved
  • Views: 110891
  • PHP RSS
You are currently viewing page 15 of this multi-page discussion thread; Jump to the first page
Oct 25th, 2004
0

Re: vBulletin mod_rewrite

Have you modified any vBulletin PHP script files, or any templates?
Reputation Points: 10
Solved Threads: 0
Newbie Poster
Natch is offline Offline
16 posts
since Oct 2004
Oct 25th, 2004
0

Re: vBulletin mod_rewrite

Quote 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
Reputation Points: 10
Solved Threads: 0
Newbie Poster
Natch is offline Offline
16 posts
since Oct 2004
Oct 29th, 2004
0

Re: vBulletin mod_rewrite

hello,

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

greetz MaTriX
Reputation Points: 10
Solved Threads: 0
Newbie Poster
MaTriX is offline Offline
2 posts
since Oct 2004
Oct 29th, 2004
0

Re: vBulletin mod_rewrite

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.
Administrator
Staff Writer
Reputation Points: 1422
Solved Threads: 162
The Queen of DaniWeb
cscgal is offline Offline
13,645 posts
since Feb 2002
Oct 30th, 2004
0

Re: vBulletin mod_rewrite

What about sessionid in URLs, aren't they got lost resulting in only cookie-users can login?
Reputation Points: 10
Solved Threads: 0
Newbie Poster
Thomas P is offline Offline
5 posts
since Oct 2004
Oct 30th, 2004
0

Re: vBulletin mod_rewrite

Quote 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
Reputation Points: 10
Solved Threads: 0
Newbie Poster
MaTriX is offline Offline
2 posts
since Oct 2004
Nov 10th, 2004
0

Re: vBulletin mod_rewrite

ok, got it to work.
now, when i was going through the tutorial:
Quote ...
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
Reputation Points: 10
Solved Threads: 0
Newbie Poster
fate is offline Offline
3 posts
since Oct 2004
Nov 10th, 2004
0

Re: vBulletin mod_rewrite

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
Reputation Points: 10
Solved Threads: 0
Light Poster
TraderX is offline Offline
37 posts
since Sep 2004
Nov 11th, 2004
0

Re: vBulletin mod_rewrite

Quote 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
Quote 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...
Reputation Points: 10
Solved Threads: 0
Newbie Poster
Natch is offline Offline
16 posts
since Oct 2004
Nov 11th, 2004
0

Re: vBulletin mod_rewrite

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:
PHP Syntax (Toggle Plain Text)
  1. Find all instances of:
  2.  
  3. PHP Code:
  4. <a href="showthread.php?$session[sessionurl]t=$threadid\" title=\"$threadpreview\">$threadtitle</a>
  5.  
  6. And replace with:
  7.  
  8. PHP Code:
  9. <a href="t$threadid-" .mod_rewrite_title($threadtitle). ".html\" title=\"$threadpreview\">$threadtitle</a>
  10.  
  11. Find all instances of:
  12.  
  13. PHP Code:
  14. <a href="forumdisplay.php?$session[sessionurl]f=$forumid\">$forumtitle</a>
  15.  
  16. And replace with:
  17.  
  18. PHP Code:
  19. <a href="f$forumid-" .mod_rewrite_title($forumtitle). ".html\">$forumtitle</a>
  20.  
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.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
fate is offline Offline
3 posts
since Oct 2004

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in PHP Forum Timeline: DNS subdomain wildcard
Next Thread in PHP Forum Timeline: Perplexed Newbie can't find syntax errors





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC