Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> v2.3 RN Issues
Author Message
Palbin
Site Admin



Joined: Mar 30, 2006
Posts: 2583
Location: Pittsburgh, Pennsylvania

PostPosted: Thu Jun 18, 2009 10:58 am Reply with quote

I'll see what i can do.

_________________
"Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." — Brian W. Kernighan. 
View user's profile Send private message
Raven
Site Admin/Owner



Joined: Aug 27, 2002
Posts: 17088

PostPosted: Thu Jun 18, 2009 2:38 pm Reply with quote

This does appear to be a ShortLinks issue. I'll alert Montego.
 
View user's profile Send private message
Palbin







PostPosted: Thu Jun 18, 2009 4:21 pm Reply with quote

I don't think the main problem is with shortlinks, but there does appear to be no "Shortlink" for the link in question.
 
Palbin







PostPosted: Thu Jun 18, 2009 6:19 pm Reply with quote

Open ./modules/Forums/viewtopic.php
Find all instances of:
Code:


$header_location =

And comment them out.
Code:


//$header_location =


Then find all instances of:
Code:


header($header_location . append_sid(".....

Change to:
Code:


redirect(append_sid(".....


Open ./modules/Forums/includes/functions.php
Find:
Code:


  $url = preg_replace('#^\/?(.*?)\/?$#', '/\1', trim($url));

  // Redirect via an HTML form for PITA webservers

Change to:
Code:


  $url = preg_replace('#^\/?(.*?)\/?$#', '/\1', trim($url));
  $url = str_replace('&', "&", $url);

  // Redirect via an HTML form for PITA webservers

Shortlinks still don't work correctly with this, but they will still take you to the topic just not the particular post. I'll post back a solution for shortlinks later.
 
montego
Site Admin



Joined: Aug 29, 2004
Posts: 9457
Location: Arizona

PostPosted: Thu Jun 18, 2009 7:39 pm Reply with quote

Yeah, definitely not related to ShortLinks as the link looks the same whether ShortLinks is on or off. Something within phpBB2, I think, is not recognizing this and redirecting. Weird that no-one has ever spotted that before. I wonder how long it has been there...

_________________
Only registered users can see links on this board! Get registered or login!
Only registered users can see links on this board! Get registered or login! 
View user's profile Send private message Visit poster's website
Raven







PostPosted: Fri Jun 19, 2009 12:28 am Reply with quote

When I said it was a ShortLinks issue, I simply meant there isn't a shortlink to match the supplied link.
 
montego







PostPosted: Fri Jun 19, 2009 6:23 am Reply with quote

<sigh> Guess my "Next Page" click didn't happen and my lack-of-sleep-mush-brain didn't catch it... I completely missed all of this page of posts before I posted. Sorry about that. Yes, now that this is working again, which was my primary focus as it also wasn't working with SL off, I will need to create the "tap".
 
sockettf
Hangin' Around



Joined: Mar 13, 2009
Posts: 28

PostPosted: Sat Jun 20, 2009 3:17 pm Reply with quote

Hey, thanks a lot Palbin, now it works with only the missed shortlink tap, but I can do it by myself.

RavensScripts
 
View user's profile Send private message
Palbin







PostPosted: Sat Jun 20, 2009 5:43 pm Reply with quote

You just need to find the Next/Previous tap and add Newest.
 
rustyhook
New Member
New Member



Joined: Jan 12, 2006
Posts: 15

PostPosted: Mon Jun 22, 2009 7:11 am Reply with quote

Thank you very much!!! Just applied this fix and it works great now!!!
 
View user's profile Send private message
amber222
Regular
Regular



Joined: Jun 09, 2004
Posts: 79

PostPosted: Mon Nov 30, 2009 11:11 pm Reply with quote

These changes were already made in the version I have. I just noticed that users who login using www get logged out when they click on the newest icon. When you hover over it, it shows www in the link but it actually takes you to the address without www and shows the user as not logged in. How can I fix this? The site url doesn't include www - Should I change it?

Thanks.

Update: I changed the site url to include www but it made no difference.
 
View user's profile Send private message
Palbin







PostPosted: Tue Dec 01, 2009 4:42 pm Reply with quote

Can you link me to the site so I can see it?
 
amber222







PostPosted: Wed Dec 02, 2009 3:07 am Reply with quote

Thanks for responding, Palbin. I managed to get this working by changing the domain in Forums Configuration to include the www and adding a redirect to the .htaccess file.
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> v2.3 RN Issues

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©