vBulletin mod_rewrite

Reply

Join Date: Nov 2004
Posts: 1
Reputation: Hexemer is an unknown quantity at this point 
Solved Threads: 0
Hexemer's Avatar
Hexemer Hexemer is offline Offline
Newbie Poster

Re: vBulletin mod_rewrite

 
0
  #151
Nov 27th, 2004
Originally Posted by Ted S
I really liked the idea of the titles in the url so I played aroung with modrewite and came up with this:

[php]RewriteRule ^/f([0-9]+)-(.*)\.html$ /forumdisplay.php?forumid=$1 [L][/php]

This tells modrewrite to forward any url fXID-XTEXT-.html to the forumdisplay.php?forumid=$XID url, this way you can have any text you want but since the ID is used in the URL, it is possible to use one rewrite rule for every forum.

To go along with this, you need to modify your forumbit templates to use the link
[php]<a href="f$forum[forumid]-$forum[url].html">[/php]

No files need to be changed as far as I can recall.

So far I am testing this on a template that my users don't access so please confirm this works for you before putting it on a live site.

Thanks for the wonderful hack, I had limited spidering in the past and it worked wonders so I can only expect even better results from this deep spidering system.
Hello,

how can I use "titles in urls" for topics? Can you say me that? I have use it in my IPB and it's very sexy. :cheesy:

Thanks
Reply With Quote Quick reply to this message  
Join Date: Oct 2004
Posts: 15
Reputation: avizion is an unknown quantity at this point 
Solved Threads: 0
avizion avizion is offline Offline
Newbie Poster

Re: vBulletin mod_rewrite

 
0
  #152
Dec 7th, 2004
i have this running on my site, thanks for the great hack
Reply With Quote Quick reply to this message  
Join Date: Nov 2004
Posts: 140
Reputation: anastacia is an unknown quantity at this point 
Solved Threads: 1
anastacia's Avatar
anastacia anastacia is offline Offline
Junior Poster

Re: vBulletin mod_rewrite

 
0
  #153
Dec 7th, 2004
hi cscgal. i know a little bit of html. can u brief me of wats a vbulletin in the first plac. guess i have a lo to learn yet
:lol: I am not one of those who wait for things to happen, :p but one of those who make things happen ;)
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 4
Reputation: Coasters is an unknown quantity at this point 
Solved Threads: 0
Coasters Coasters is offline Offline
Newbie Poster

Re: vBulletin mod_rewrite

 
0
  #154
Dec 11th, 2004
Sorry to be a pain but I would love this hack to work but I have obviously done something wrong

the forums come up correctly but I get a 404 error on every page. I have redone the hack from start three times now but the same thing always happens

You can see at www.forums.ic-games.co.uk

Any idea whats up? I have tried to read as much of this thread as I can put its getting on 12 pages and I may have missed something.

Any help appreciated
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 5
Reputation: softstor is an unknown quantity at this point 
Solved Threads: 0
softstor softstor is offline Offline
Newbie Poster

Re: vBulletin mod_rewrite

 
0
  #155
Dec 12th, 2004
I have vbulletin 3.0.3.

I was looking at the instructions that you outlined in the first message of the thread. You stated to edit forumhome_forumbit_level1_nopost and use the following line:

<a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]">

I looked at this file and it already contained this line. I have never edited this template before. Is your hack recommended for version 3.0.3?
Reply With Quote Quick reply to this message  
Join Date: Feb 2002
Posts: 12,057
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: 131
Administrator
Staff Writer
cscgal's Avatar
cscgal cscgal is online now Online
The Queen of DaniWeb

Re: vBulletin mod_rewrite

 
0
  #156
Dec 12th, 2004
Yes, it works for any version of vBulletin. I think that you musunderstood the instructions. It says to edit forumhome_forumbit_level1_nopost and FIND that line ... which apparently you did, and to replace it with something else.
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
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 5
Reputation: softstor is an unknown quantity at this point 
Solved Threads: 0
softstor softstor is offline Offline
Newbie Poster

Re: vBulletin mod_rewrite

 
0
  #157
Dec 12th, 2004
Originally Posted by cscgal
Yes, it works for any version of vBulletin. I think that you musunderstood the instructions. It says to edit forumhome_forumbit_level1_nopost and FIND that line ... which apparently you did, and to replace it with something else.
Thanks for the prompt reply. Some questions...

1) Is it possible to give me an example of what I may replace that line with?

2) It looks like this thread is quite long. Are all of the suggested hacks in the first message of this thread?
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 5
Reputation: softstor is an unknown quantity at this point 
Solved Threads: 0
softstor softstor is offline Offline
Newbie Poster

Re: vBulletin mod_rewrite

 
0
  #158
Dec 12th, 2004
Please ignore question #1. I saw the replace line of:

<a href="$forum[url].html">

at the end of the message.
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 31
Reputation: nathanaus is an unknown quantity at this point 
Solved Threads: 0
nathanaus nathanaus is offline Offline
Light Poster

Re: vBulletin mod_rewrite

 
0
  #159
Dec 14th, 2004
Sorry to sound dumb here, but which mod works?
In other words do I follow the orignal, or the second one cscgal started? The one TedS did or do I combine the two?

My forum is new, and with no visitors to speak of now is a good time to get in and customise it, but errr I'm not sure which one I should do.
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 31
Reputation: nathanaus is an unknown quantity at this point 
Solved Threads: 0
nathanaus nathanaus is offline Offline
Light Poster

Re: vBulletin mod_rewrite

 
0
  #160
Dec 15th, 2004
I notice there is another one started by another user. Do I use that one instead of this one?
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


Views: 91764 | Replies: 238
Thread Tools Search this Thread



Tag cloud for PHP
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC