PDA

View Full Version : Today's Post's Link Not Working


M_OReilly16
27 May 2006, 23:43
I just installed this mod, and wow, thank you! Very nice and easy to install. Everything seems to be working correctly but my Today's post's button. I don't get an error but it doesn't show the new posts either, I just get a blank page without anything but my header and footer.

www.oracing.com/forums (http://www.oracing.com) is my forums in case someone wants to check it out and see what I'm talking about.

Adyum
28 May 2006, 02:46
I just went there and it is working fine for me. I would suggest clearing your cache and cookies and see if that helps.

M_OReilly16
28 May 2006, 04:10
I just went there and it is working fine for me. I would suggest clearing your cache and cookies and see if that helps.
Yeah I fixed it :) Needed to change the htaccess.

Can someone tell me which part of the htaccess file I need to change so that I don't have to use the "/" at the end of the url's? When I change it in the admincp I cannot access my forums, I am assuming it's because of the htaccess file. Here is my file as it stands now.

RewriteEngine On
RewriteRule ^(.*)/(styleid=(.*))$ showthread.php?&%{QUERY_STRING} [L]
RewriteRule ^(.*)/(showthread\.php)$ showthread.php?&%{QUERY_STRING} [L]
RewriteRule ^(.*)/t-([A-Za-z0-9\-]+)-([0-9]+)-new.html showthread.php?t=$3&goto=newpost&%{QUERY_STRING} [L]
RewriteRule ^(.*)/t-([A-Za-z0-9\-]+)-([0-9]+)-last.html showthread.php?t=$3&goto=lastpost&%{QUERY_STRING} [L]
RewriteRule ^(.*)/t-([A-Za-z0-9\-]+)-([0-9]+)-print.html printthread.php?t=$3&is_vrewrite=yes&%{QUERY_STRING} [L]
RewriteRule ^(.*)/t-([A-Za-z0-9\-]+)-([0-9]+)-post(.*).html showthread.php?p=$4&%{QUERY_STRING} [L]
RewriteRule ^(.*)/t-([A-Za-z0-9\-]+)-page([0-9]+)-([0-9]+).html showthread.php?t=$4&page=$3&is_vrewrite=yes&%{QUERY_STRING} [L]
RewriteRule ^(.*)/t-([A-Za-z0-9\-]+)-([0-9]+).html/(.*)$ showthread.php?t=$3&%{QUERY_STRING}&is_vrewrite=yes [L]
RewriteRule ^(.*)/t-([A-Za-z0-9\-]+)-([0-9]+).html showthread.php?t=$3&is_vrewrite=yes&%{QUERY_STRING} [L]
RewriteRule ^members/([A-Za-z0-9\-]+)-([0-9]+).html member.php?u=$2&is_vrewrite=yes&%{QUERY_STRING} [L]
RewriteRule ^f-([A-Za-z0-9\-]+)-([0-9]+)/page([0-9]+).html/(.*)$ forumdisplay.php?f=$2&&page=$3%{QUERY_STRING}&is_vrewrite=yes [L]
RewriteRule ^f-([A-Za-z0-9\-]+)-([0-9]+).html/$ forumdisplay.php?f=$2&%{QUERY_STRING}&is_vrewrite=yes [L]
RewriteRule ^search-([A-Za-z0-9\-]+).html/$ search.php?do=$1 [L]

Another issue :( Clicking on a members name, I noticed images are missing in the template, and also the p.m feature doesn't work. The p.m feature is a little more important to me, please advise :)

Also, the second page of a thread won't work either. I get a blank page.

jlaine
30 May 2006, 07:01
Yeah I fixed it :) Needed to change the htaccess.

Can someone tell me which part of the htaccess file I need to change so that I don't have to use the "/" at the end of the url's? When I change it in the admincp I cannot access my forums, I am assuming it's because of the htaccess file. Here is my file as it stands now.

RewriteEngine On
RewriteRule ^(.*)/(styleid=(.*))$ showthread.php?&%{QUERY_STRING} [L]
RewriteRule ^(.*)/(showthread\.php)$ showthread.php?&%{QUERY_STRING} [L]
RewriteRule ^(.*)/t-([A-Za-z0-9\-]+)-([0-9]+)-new.html showthread.php?t=$3&goto=newpost&%{QUERY_STRING} [L]
RewriteRule ^(.*)/t-([A-Za-z0-9\-]+)-([0-9]+)-last.html showthread.php?t=$3&goto=lastpost&%{QUERY_STRING} [L]
RewriteRule ^(.*)/t-([A-Za-z0-9\-]+)-([0-9]+)-print.html printthread.php?t=$3&is_vrewrite=yes&%{QUERY_STRING} [L]
RewriteRule ^(.*)/t-([A-Za-z0-9\-]+)-([0-9]+)-post(.*).html showthread.php?p=$4&%{QUERY_STRING} [L]
RewriteRule ^(.*)/t-([A-Za-z0-9\-]+)-page([0-9]+)-([0-9]+).html showthread.php?t=$4&page=$3&is_vrewrite=yes&%{QUERY_STRING} [L]
RewriteRule ^(.*)/t-([A-Za-z0-9\-]+)-([0-9]+).html/(.*)$ showthread.php?t=$3&%{QUERY_STRING}&is_vrewrite=yes [L]
RewriteRule ^(.*)/t-([A-Za-z0-9\-]+)-([0-9]+).html showthread.php?t=$3&is_vrewrite=yes&%{QUERY_STRING} [L]
RewriteRule ^members/([A-Za-z0-9\-]+)-([0-9]+).html member.php?u=$2&is_vrewrite=yes&%{QUERY_STRING} [L]
RewriteRule ^f-([A-Za-z0-9\-]+)-([0-9]+)/page([0-9]+).html/(.*)$ forumdisplay.php?f=$2&&page=$3%{QUERY_STRING}&is_vrewrite=yes [L]
RewriteRule ^f-([A-Za-z0-9\-]+)-([0-9]+).html/$ forumdisplay.php?f=$2&%{QUERY_STRING}&is_vrewrite=yes [L]
RewriteRule ^search-([A-Za-z0-9\-]+).html/$ search.php?do=$1 [L]

Another issue :( Clicking on a members name, I noticed images are missing in the template, and also the p.m feature doesn't work. The p.m feature is a little more important to me, please advise :)

Also, the second page of a thread won't work either. I get a blank page.

Mine is setup as forums have forward slashes http://boardname/f-forumtitle-33/ and that thread titles do not - follows forum structure exactly but no forward slash at the end - that to me seems to be the most logical (and clean) way to do things - I also dropped .html as some people were having issues with Opera storing the pages as static content.

This would be the .htaccess I use (note to update your preferences in the admincp too.)

(Do not copy mine over unless you verify that you are running the exact same version as I - I'm doing this simply so you can see how to modify the .htaccess for the dropping of .html at the end of your file names.)

RewriteRule ^(.*)/(styleid=(.*))$ showthread.php?&%{QUERY_STRING} [L]
RewriteRule ^(.*)/(showthread\.php)$ showthread.php?&%{QUERY_STRING} [L]
RewriteRule ^(.*)/t-([A-Za-z0-9\-]+)-([0-9]+)-new$ showthread.php?t=$3&goto=newpost&%{QUERY_STRING} [L]
RewriteRule ^(.*)/t-([A-Za-z0-9\-]+)-([0-9]+)-last$ showthread.php?t=$3&goto=lastpost&%{QUERY_STRING} [L]
RewriteRule ^(.*)/t-([A-Za-z0-9\-]+)-([0-9]+)-post([0-9]+)$ showthread.php?p=$4&%{QUERY_STRING} [L]
RewriteRule ^p-([A-Za-z0-9\-]+)-post([0-9]+)/postcount([0-9]+)$ showpost.php?p=$2&postcount=$3&is_vrewrite=yes&%{QUERY_STRING} [L]
RewriteRule ^(.*)/t-([A-Za-z0-9\-]+)-([0-9]+)/page([0-9]+)$ showthread.php?t=$3&page=$4&is_vrewrite=yes&%{QUERY_STRING} [L]
RewriteRule ^(.*)/t-([A-Za-z0-9\-]+)-([0-9]+)/(.*)$ showthread.php?t=$3&%{QUERY_STRING}&is_vrewrite=yes [L]
RewriteRule ^(.*)/t-([A-Za-z0-9\-]+)-([0-9]+)$ showthread.php?t=$3&is_vrewrite=yes&%{QUERY_STRING} [L]
RewriteRule ^u-([A-Za-z0-9\-]+)-([0-9]+)$ member.php?u=$2&is_vrewrite=yes&%{QUERY_STRING} [L]
RewriteRule ^(.*)/(member\.php)$ member.php?$1&%{QUERY_STRING} [L]
RewriteRule ^f-([A-Za-z0-9\-]+)-([0-9]+)/page([0-9]+)/(.*)$ forumdisplay.php?f=$2&&page=$3%{QUERY_STRING}&is_vrewrite=yes [L]
RewriteRule ^f-([A-Za-z0-9\-]+)-([0-9]+)/$ forumdisplay.php?f=$2&%{QUERY_STRING}&is_vrewrite=yes [L]
RewriteRule ^search-([A-Za-z0-9\-]+)/$ search.php?do=$1 [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)/(.*)(\.php)$ $2.php?&%{QUERY_STRING} [L]

Also - the images issue should have been explained in the install instructions - you need to add base href to some templates to get everything back to normal.

The multiple pages situation was fixed long ago, unless a new bug popped up - what does your verison say inside the product manager? A lot of these bugs seem to be because of the 18 billion versions floating around on various systems, and I don't think the one available on VB.org's thread is even the right one... Going to have to see about getting that problem fixed.

d8tabyte
01 Jun 2006, 03:01
Yeah I fixed it :) Needed to change the htaccess.

Can someone tell me which part of the htaccess file I need to change so that I don't have to use the "/" at the end of the url's? When I change it in the admincp I cannot access my forums, I am assuming it's because of the htaccess file. Here is my file as it stands now.

RewriteEngine On
RewriteRule ^(.*)/(styleid=(.*))$ showthread.php?&%{QUERY_STRING} [L]
RewriteRule ^(.*)/(showthread\.php)$ showthread.php?&%{QUERY_STRING} [L]
RewriteRule ^(.*)/t-([A-Za-z0-9\-]+)-([0-9]+)-new.html showthread.php?t=$3&goto=newpost&%{QUERY_STRING} [L]
RewriteRule ^(.*)/t-([A-Za-z0-9\-]+)-([0-9]+)-last.html showthread.php?t=$3&goto=lastpost&%{QUERY_STRING} [L]
RewriteRule ^(.*)/t-([A-Za-z0-9\-]+)-([0-9]+)-print.html printthread.php?t=$3&is_vrewrite=yes&%{QUERY_STRING} [L]
RewriteRule ^(.*)/t-([A-Za-z0-9\-]+)-([0-9]+)-post(.*).html showthread.php?p=$4&%{QUERY_STRING} [L]
RewriteRule ^(.*)/t-([A-Za-z0-9\-]+)-page([0-9]+)-([0-9]+).html showthread.php?t=$4&page=$3&is_vrewrite=yes&%{QUERY_STRING} [L]
RewriteRule ^(.*)/t-([A-Za-z0-9\-]+)-([0-9]+).html/(.*)$ showthread.php?t=$3&%{QUERY_STRING}&is_vrewrite=yes [L]
RewriteRule ^(.*)/t-([A-Za-z0-9\-]+)-([0-9]+).html showthread.php?t=$3&is_vrewrite=yes&%{QUERY_STRING} [L]
RewriteRule ^members/([A-Za-z0-9\-]+)-([0-9]+).html member.php?u=$2&is_vrewrite=yes&%{QUERY_STRING} [L]
RewriteRule ^f-([A-Za-z0-9\-]+)-([0-9]+)/page([0-9]+).html/(.*)$ forumdisplay.php?f=$2&&page=$3%{QUERY_STRING}&is_vrewrite=yes [L]
RewriteRule ^f-([A-Za-z0-9\-]+)-([0-9]+).html/$ forumdisplay.php?f=$2&%{QUERY_STRING}&is_vrewrite=yes [L]
RewriteRule ^search-([A-Za-z0-9\-]+).html/$ search.php?do=$1 [L]

Another issue :( Clicking on a members name, I noticed images are missing in the template, and also the p.m feature doesn't work. The p.m feature is a little more important to me, please advise :)

Also, the second page of a thread won't work either. I get a blank page.


What did you change? I am having this same issue - Also when I go into the forums, I am getting multiple colored backgrounds!? Like - it should be a solid grey background - instead it is great and a brown like color. I think it has something to do with some images not showing.

Latest release of vrewrite, VB 3.5.1, PHP 4 and I shut it off so I don't need to give a URL, I'll click install and post a link once I have a working hack.

jlaine
01 Jun 2006, 03:41
What did you change? I am having this same issue - Also when I go into the forums, I am getting multiple colored backgrounds!? Like - it should be a solid grey background - instead it is great and a brown like color. I think it has something to do with some images not showing.

Latest release of vrewrite, VB 3.5.1, PHP 4 and I shut it off so I don't need to give a URL, I'll click install and post a link once I have a working hack.

Make sure this line is present (and written as such in your .htaccess)

RewriteRule ^search-([A-Za-z0-9\-]+).html/$ search.php?do=$1 [L]

As for the mentioned member display problem, add this to your memberinfo template:

<base href="$vboptions[bburl]/" />

NubKnacker
04 Jun 2006, 09:03
Also - the images issue should have been explained in the install instructions - you need to add base href to some templates to get everything back to normal.


I have a problem with the images too, they display only on the front page and the rest of the pages are without images. What templates do I need to add base href too?

Thanks.

Immortal
08 Jun 2006, 17:11
Install.html holds all of your answers :)

zeropaid
09 Jun 2006, 19:56
I was having all these same problems, now since I changed the htaccess to be what jlaine recommended above it recent posts seems to be working.. but I still can't get to anything but page 1 of threads. I am running vrewrite 1.5.1 and vbulletin 3.5.3

jlaine
10 Jun 2006, 02:47
I was having all these same problems, now since I changed the htaccess to be what jlaine recommended above it recent posts seems to be working.. but I still can't get to anything but page 1 of threads. I am running vrewrite 1.5.1 and vbulletin 3.5.3

I'll post a thread with what I have, most of these bugs being reported have been fixed on it - there are a few still remaining, but hopefully we can all get on the same page - there are a few 1.5.1 versions floating out there for some odd reason. (I mean - they are assigned 1.5.1, but some have more bug fixes than others... I don't know why.)