•
•
•
•
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
![]() |
•
•
Join Date: Oct 2004
Location: Dublin, Ireland
Posts: 32
Reputation:
Rep Power: 5
Solved Threads: 0
Glad to hear it's working for you
•
•
Join Date: Dec 2004
Posts: 3
Reputation:
Rep Power: 0
Solved Threads: 0
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?
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?
•
•
Join Date: Dec 2004
Posts: 3
Reputation:
Rep Power: 0
Solved Threads: 0
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?
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?
•
•
Join Date: Jan 2005
Posts: 2
Reputation:
Rep Power: 0
Solved Threads: 0
I'm seeing duplicate forum names. Any idea what I need to edit to fix this?
http://www.spinzone.org/forums/
thanks
http://www.spinzone.org/forums/
thanks
•
•
Join Date: Jan 2005
Posts: 3
Reputation:
Rep Power: 0
Solved Threads: 0
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?
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?
•
•
Join Date: Jan 2005
Posts: 1
Reputation:
Rep Power: 0
Solved Threads: 0
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?
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?
•
•
Join Date: Dec 2004
Location: Australia
Posts: 31
Reputation:
Rep Power: 4
Solved Threads: 0
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:
Any idea how to fix that?
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?
![]() |
•
•
•
•
•
•
•
•
DaniWeb PHP Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
- vBulletin mod_rewrite (PHP)
Other Threads in the PHP Forum
- Previous Thread: using php to check for filenames
- Next Thread: Interesting, yet probably simple, PHP Nuke Error


Linear Mode