vBulletin mod_rewrite

Reply

Join Date: Aug 2004
Posts: 18
Reputation: tekkitan is an unknown quantity at this point 
Solved Threads: 0
tekkitan tekkitan is offline Offline
Newbie Poster

Re: vBulletin mod_rewrite

 
0
  #91
Sep 25th, 2004
Originally Posted by xStylezx
Ted didnt post any code specific to the navbit did he?
Some of this navbit stuff i already had done myself as i did some previous hacks to remove sid from the url's and some other things to make my forum more google friendly.
no Ted didnt post it, but it definately needs to be, because it follows csgal's way, so it just breaks and 404's.

edit: i almost have the code modified correctly that goes into showthread.php and displayforum.php...

[PHP]foreach ($parentlist AS $forumID)
{
$forumTitle = $forumcache["$forumID"]['title'];
$navbits["f$forumID-$forumTitle.html"] = $forumTitle; // edited by dani
}[/PHP]

Only thing that it doesnt do is put the Forum Title like Ted's does (lowercase hyphenated). I dont know PHP, just general coding knowledge, so kind of struggling here

Example of the URL it is doing now: http://www.thepcforum.com/forum/f6-Processors%20(CPU).html
Reply With Quote Quick reply to this message  
Join Date: Aug 2004
Posts: 40
Reputation: Ted S is an unknown quantity at this point 
Solved Threads: 0
Ted S Ted S is offline Offline
Light Poster

Re: vBulletin mod_rewrite

 
0
  #92
Sep 27th, 2004
It looks like you missed the party by keith... $thread['url'] = ereg_replace("[/?!.$%£()~*@]+", "", $thread['url']); (I believe thats on page 5 of the thread)
Reply With Quote Quick reply to this message  
Join Date: Aug 2004
Posts: 18
Reputation: tekkitan is an unknown quantity at this point 
Solved Threads: 0
tekkitan tekkitan is offline Offline
Newbie Poster

Re: vBulletin mod_rewrite

 
0
  #93
Sep 27th, 2004
Originally Posted by Ted S
It looks like you missed the party by keith... $thread['url'] = ereg_replace("[/?!.$%£()~*@]+", "", $thread['url']); (I believe thats on page 5 of the thread)
alright thanks i'll look for it
Reply With Quote Quick reply to this message  
Join Date: Sep 2004
Posts: 34
Reputation: TraderX is an unknown quantity at this point 
Solved Threads: 0
TraderX's Avatar
TraderX TraderX is offline Offline
Light Poster

Re: vBulletin mod_rewrite

 
0
  #94
Sep 27th, 2004
Wow... this is really nice, but I was getting a little confuse as to what should be done. Really new to doing mods to my board and don't want to mess things up. I don't have any options for my members to change the styles, so where should I start... it looks as though many things have changed and I don't want to put some thing in only to find (hopfully) that addition was incorrect.

Has any one have all the steps in the correct order so it's not really confusing?
Reply With Quote Quick reply to this message  
Join Date: Feb 2002
Posts: 12,040
Reputation: cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light 
Solved Threads: 125
Administrator
Staff Writer
cscgal's Avatar
cscgal cscgal is online now Online
The Queen of DaniWeb

Re: vBulletin mod_rewrite

 
0
  #95
Sep 27th, 2004
There are two methods. If you want to go with my method, you need only to follow the directions exactly as in post #1 and later in post #24. If you want to follow Ted's method, first apply my original hack, and then follow the alterations in post #41. I'm pretty sure that's it.
Dani the Computer Science Gal
Follow my Twitter feed! twitter.com/daniweb
Reply With Quote Quick reply to this message  
Join Date: Feb 2002
Posts: 12,040
Reputation: cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light 
Solved Threads: 125
Administrator
Staff Writer
cscgal's Avatar
cscgal cscgal is online now Online
The Queen of DaniWeb

Re: vBulletin mod_rewrite

 
0
  #96
Sep 27th, 2004
Originally Posted by Ted S
It looks like you missed the party by keith... $thread['url'] = ereg_replace("[/?!.$%£()~*@]+", "", $thread['url']); (I believe thats on page 5 of the thread)
Ted, for future reference, the number of posts which appear per page is a value that can be set on a per user basis. Therefore, page 5 isn't the same page 5 for everyone. For future reference, please identify posts by their post # (in the top right corner of each post). Thanks
Dani the Computer Science Gal
Follow my Twitter feed! twitter.com/daniweb
Reply With Quote Quick reply to this message  
Join Date: Sep 2004
Posts: 34
Reputation: TraderX is an unknown quantity at this point 
Solved Threads: 0
TraderX's Avatar
TraderX TraderX is offline Offline
Light Poster

Re: vBulletin mod_rewrite

 
0
  #97
Sep 27th, 2004
Originally Posted by cscgal
There are two methods. If you want to go with my method, you need only to follow the directions exactly as in post #1 and later in post #24. If you want to follow Ted's method, first apply my original hack, and then follow the alterations in post #41. I'm pretty sure that's it.

Thank you, that clears it up
OH... how can I get my board to use the same "Quote" (how it looks)
Reply With Quote Quick reply to this message  
Join Date: Sep 2004
Posts: 34
Reputation: TraderX is an unknown quantity at this point 
Solved Threads: 0
TraderX's Avatar
TraderX TraderX is offline Offline
Light Poster

Re: vBulletin mod_rewrite

 
0
  #98
Sep 27th, 2004
Originally Posted by cscgal
There are two methods. If you want to go with my method, you need only to follow the directions exactly as in post #1 and later in post #24. If you want to follow Ted's method, first apply my original hack, and then follow the alterations in post #41. I'm pretty sure that's it.
Sorry for the repost, but when you mean 'orginal' I only need to do post #1 correct... I plan on using Ted's method.

So I would need to do post #1 then #41... correct?
Reply With Quote Quick reply to this message  
Join Date: Feb 2002
Posts: 12,040
Reputation: cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light 
Solved Threads: 125
Administrator
Staff Writer
cscgal's Avatar
cscgal cscgal is online now Online
The Queen of DaniWeb

Re: vBulletin mod_rewrite

 
0
  #99
Sep 27th, 2004
To use Ted's method, first implement my hacks in post #1 and post #24. And then Ted's alterations in post #41.
Dani the Computer Science Gal
Follow my Twitter feed! twitter.com/daniweb
Reply With Quote Quick reply to this message  
Join Date: Sep 2004
Posts: 34
Reputation: TraderX is an unknown quantity at this point 
Solved Threads: 0
TraderX's Avatar
TraderX TraderX is offline Offline
Light Poster

Re: vBulletin mod_rewrite

 
0
  #100
Sep 27th, 2004
I have a Q about .htaccess

It has to do with the Rewrite Rule:

  1. RewriteRule ^forum-one.html$ forumdisplay.php?f=1 [L]
  2. RewriteRule ^forum-two.html$ forumdisplay.php?f=2 [L]
  3. RewriteRule ^forum-three.html$ forumdisplay.php?f=3 [L]

For my board I have a forum called 4XTraders.com Forex Announcements and Discussions and its URL is

  1. http://www.4xtraders.com/forum/4xtraders.com-forex-announcements-and-discussions.html

Now in my .htaccess file would I write it as

-----Edit------
Weird... I didn't look at my url for my post but it looks like it had already changed my urls without having to write the rule for this forum.... so I still need to do this?

RewriteRule ^4XTraders_Forex_Announcements_Discussions.html$ forumdisplay.php?f=1 [L]
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the PHP Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC