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 427,101 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 2,176 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: 36034 | Replies: 131
Reply
Join Date: Dec 2004
Location: Australia
Posts: 31
Reputation: nathanaus is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 0
nathanaus nathanaus is offline Offline
Light Poster

Re: [Revised] vBulletin Mod_rewrite Tutorial

  #41  
Dec 15th, 2004
Okay yep that was it. Because I had the : in there it didn't know how to handle that in traditional HTML format. Removing that fixed it. i could also have two forums with the same name because of the inclusion of the f1, f2 etc at the start which in effect makes them unique pages.
Reply With Quote  
Join Date: Dec 2004
Location: Australia
Posts: 31
Reputation: nathanaus is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 0
nathanaus nathanaus is offline Offline
Light Poster

Re: [Revised] vBulletin Mod_rewrite Tutorial

  #42  
Dec 15th, 2004
Great work cscgal and KeithMcL
Thank you so very much for making this available to us, it works perfectly!
Reply With Quote  
Join Date: Oct 2004
Location: Dublin, Ireland
Posts: 32
Reputation: KeithMcL is an unknown quantity at this point 
Rep Power: 5
Solved Threads: 0
KeithMcL KeithMcL is offline Offline
Light Poster

Re: [Revised] vBulletin Mod_rewrite Tutorial

  #43  
Dec 15th, 2004
Glad to hear it's working for you
Reply With Quote  
Join Date: Dec 2004
Posts: 3
Reputation: BinarySeed is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
BinarySeed BinarySeed is offline Offline
Newbie Poster

Re: [Revised] vBulletin Mod_rewrite Tutorial

  #44  
Dec 20th, 2004
This hack is awesome! KeithMcL, cscgal, Ted S, and anyone I missed, thanks!

I applied this hack but am having some small issues I was hoping someone either ran into and knows how to fix, or someone to point me in in the right direction.

I followed Keith's instructions and got almost everything working but the 'Last Post' link.

For an example, check my forums. http://www.baddosage.com/forums/

Basically when I click on a last post I get forwarded by my mod_rewrite but the url ends up going somewhere I don't recognize.

When clicking http://www.baddosage.com/forums/newp...hread5008.html --redirect--> http://www.baddosage.com/forums/post...html#post62504 which ends up being a 404. I am confused as to why this is happening? Any ideas?
Reply With Quote  
Join Date: Dec 2004
Posts: 3
Reputation: BinarySeed is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
BinarySeed BinarySeed is offline Offline
Newbie Poster

Re: [Revised] vBulletin Mod_rewrite Tutorial

  #45  
Dec 21st, 2004
I don't see where to edit my post but I had more info to add.

If I go into my .htaccess file and change this line
RewriteRule ^newpostinthread([0-9]+).html$ showthread.php?goto=newpost&t=$1 [L]
too
RewriteRule ^newpostinthread([0-9]+).html$ showthread.php?t=$1 [L]

(basically removing the ?goto=newpost section)

My links will now load the page. Anyone else having issues with their newpostinthread pages working?
Reply With Quote  
Join Date: Jan 2005
Posts: 2
Reputation: Sajjid is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
Sajjid Sajjid is offline Offline
Newbie Poster

Re: [Revised] vBulletin Mod_rewrite Tutorial

  #46  
Jan 14th, 2005
I'm seeing duplicate forum names. Any idea what I need to edit to fix this?
http://www.spinzone.org/forums/
thanks
Reply With Quote  
Join Date: Jan 2005
Posts: 3
Reputation: dcallan is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
dcallan dcallan is offline Offline
Newbie Poster

Re: [Revised] vBulletin Mod_rewrite Tutorial

  #47  
Jan 15th, 2005
Hi, guys I just (tried) to instail this hack and some strange things are happening, have a look at http://www.akamarketing.com/webmaster-forums, I think the reason why the URL are not being found for the forums is because of the backslashes thing, the first slash is easy to put into the replacement text but the second slash not so easy. This is what I have done:

found
<a href=\"forumdisplay.php?$session[sessionurl]f=$forumid\">$forumtitle</a>

and replaced with
<a href=\"f$forumid-" .mod_rewrite_title($forumtitle)\. ".html\">$forumtitle</a>

Where is the second slash meant to go, after the closing right bracket or after the "." or before the ".html", please help on this matter. Also it appears I too have duplicate forum names although only one is an active hyperlink, any resolutions on this?
Reply With Quote  
Join Date: Jan 2005
Posts: 1
Reputation: maxor is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
maxor maxor is offline Offline
Newbie Poster

Re: [Revised] vBulletin Mod_rewrite Tutorial

  #48  
Jan 20th, 2005
Hello,

I've done a similar hack to vbulletin myself and I'm having one problem. When viewing a thread that has an SE friendly url, users cannot use the reputation feature. The code for the reputation button opens a new window and needs the $post[postid] value to be passed to a javascript function.

Is there anyway to solve this problem?
Reply With Quote  
Join Date: Dec 2004
Posts: 3
Reputation: BinarySeed is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
BinarySeed BinarySeed is offline Offline
Newbie Poster

Re: [Revised] vBulletin Mod_rewrite Tutorial

  #49  
Jan 21st, 2005
Would it make sense to disable the 'vBulletin Archive' since search engine spiders can correctly navigate the forum? Having double data might not be a good idea for the search engines.

Can anyone comment on this?
Reply With Quote  
Join Date: Dec 2004
Location: Australia
Posts: 31
Reputation: nathanaus is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 0
nathanaus nathanaus is offline Offline
Light Poster

Re: [Revised] vBulletin Mod_rewrite Tutorial

  #50  
Jan 25th, 2005
Hello,

I've just discovered a small problem.

One of my threads spans 4 pages. The little links at the bottom of the thread that you can click to get to individual pages shows up (you know they have "1 2 3 ... Last Page")

So actually two issues.

First, if you click any of the visible numbers it's not rewrite friendly - it's the default VB PHP ocding. That's okay though. However,

Point 2: If you click on the "Last Page" link a 404 page shows up. If you go to page 3 then click the number 4 its fine, but if you are page 1 and don't see the number 4 - in it's place is the "Last Page" link, the error occurs. The reason is instead of going to page 4 it goes to / has the link as:

http://www.domain-name-is-here.com/forum/lastpostinthread[threadid].html

Any idea how to fix that?
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:41 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC