943,342 Members | Top Members by Rank

Ad:
  • PHP Discussion Thread
  • Unsolved
  • Views: 110888
  • PHP RSS
You are currently viewing page 16 of this multi-page discussion thread; Jump to the first page
Nov 27th, 2004
0

Re: vBulletin mod_rewrite

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

Re: vBulletin mod_rewrite

i have this running on my site, thanks for the great hack
Reputation Points: 11
Solved Threads: 0
Newbie Poster
avizion is offline Offline
15 posts
since Oct 2004
Dec 7th, 2004
0

Re: vBulletin mod_rewrite

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
Reputation Points: 11
Solved Threads: 1
Junior Poster
anastacia is offline Offline
142 posts
since Nov 2004
Dec 11th, 2004
0

Re: vBulletin mod_rewrite

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
Reputation Points: 10
Solved Threads: 0
Newbie Poster
Coasters is offline Offline
4 posts
since Dec 2004
Dec 12th, 2004
0

Re: vBulletin mod_rewrite

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?
Reputation Points: 10
Solved Threads: 0
Newbie Poster
softstor is offline Offline
5 posts
since Dec 2004
Dec 12th, 2004
0

Re: vBulletin mod_rewrite

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

Re: vBulletin mod_rewrite

Quote 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?
Reputation Points: 10
Solved Threads: 0
Newbie Poster
softstor is offline Offline
5 posts
since Dec 2004
Dec 12th, 2004
0

Re: vBulletin mod_rewrite

Please ignore question #1. I saw the replace line of:

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

at the end of the message.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
softstor is offline Offline
5 posts
since Dec 2004
Dec 14th, 2004
0

Re: vBulletin mod_rewrite

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.
Reputation Points: 10
Solved Threads: 0
Light Poster
nathanaus is offline Offline
31 posts
since Dec 2004
Dec 15th, 2004
0

Re: vBulletin mod_rewrite

I notice there is another one started by another user. Do I use that one instead of this one?
Reputation Points: 10
Solved Threads: 0
Light Poster
nathanaus is offline Offline
31 posts
since Dec 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