Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Bug Fixes
Author Message
JRSweets
Worker
Worker



Joined: Aug 06, 2004
Posts: 192

PostPosted: Tue Nov 16, 2004 1:33 pm Reply with quote

If you goto viewonline.php and a user is viewing a forum you will see the forum name. The url is wrong however. For example:

modules. php? name=Forums&file=modules&name=Forums&file=viewforum&f=50

Notice the extra file=modules&name=Forums&.

This is because append_sid is applied twice to the location in viewonline.php

Code:
$location_url = append_sid("viewforum.$phpEx?" . POST_FORUM_URL . '=' . $row['session_page']);

and
Code:
'U_FORUM_LOCATION' => append_sid($location_url))


To fix this change:
Code:
'U_FORUM_LOCATION' => append_sid($location_url))

to
Code:
'U_FORUM_LOCATION' => $location_url)
 
View user's profile Send private message
hitwalker
Sells PC To Pay For Divorce



Joined:
Posts: 5661

PostPosted: Wed Nov 17, 2004 8:27 am Reply with quote

weird.....i dont have that problem....
 
View user's profile Send private message
JRSweets







PostPosted: Wed Nov 17, 2004 8:56 am Reply with quote

The url still works with the extra "file=modules&name=Forums&" it just shouldn't be there.
 
hitwalker







PostPosted: Wed Nov 17, 2004 8:58 am Reply with quote

ok but its not clear who has this problem .....
whatever i try i dont have that ...type....of url... Smile
 
JRSweets







PostPosted: Wed Nov 17, 2004 9:31 pm Reply with quote

I have checked many of the big nuke site and the bbtonuke 2.0.10 port and they all have this error in it. Check you viewonline.php file:

If you have these two lines of code you have the error. It will only show when somebody is view a forum and the name of that forum is displayed on the Who's Online Page.
Code:
$location_url = append_sid("viewforum.$phpEx?" . POST_FORUM_URL . '=' . $row['session_page']);

Code:
'U_FORUM_LOCATION' => append_sid($location_url))


You can also see that Chatserv has fixed it in the last CVS on bbtonuke.
http://cvs.sourceforge.net/viewcvs.py/nukepatched/75patched/modules/Forums/
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Bug Fixes

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 ©