Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> w/Nuke 6.9
Author Message
CurtisH
Life Cycles Becoming CPU Cycles



Joined: Mar 15, 2004
Posts: 638
Location: West Branch, MI

PostPosted: Wed Apr 27, 2005 9:33 am Reply with quote

I am using the who viewed my profile mod that was ported to BBtoNuke but there is an error in it that I have been unable to fix.

There is a line in the code that reads:

Code:
$goto_page .= '<a href="' . append_sid("profile_view_user.$phpEx?".POST_USERS_URL."=$user&amp;".POST_POST_URL."=$j") . '">' . $times . '</a> ';


I changed it to read:

Code:
$goto_page .= '<a href="' . append_sid("Forums&file=profile_view_user&".POST_USERS_URL."=$user&amp;".POST_POST_URL."=$j") . '">' . $times . '</a> ';


This should have worked but the link becomes corrupt when the page is parsed in the following manner:

The link becomes:

http://mysite.com/modules.php&name=Forums&file=profile_view_user&u=3&p=15

and it should instead be:

http://mysite.com/modules.php?name=Forums&file=profile_view_user&u=3&p=15

Notice that the "?" between modules.php and name turns into a "&"

Does anyone know how this can be fixed?

_________________
Those who dream by day are cognizant of many things which escape those who dream only by night. ~Poe

Last edited by CurtisH on Mon Jun 27, 2005 7:50 am; edited 1 time in total 
View user's profile Send private message Visit poster's website Yahoo Messenger
64bitguy
The Mouse Is Extension Of Arm



Joined: Mar 06, 2004
Posts: 1164

PostPosted: Wed Apr 27, 2005 10:05 am Reply with quote

Actually, it looks like there are other issues going on. What was wrong with the original code? A GT issue?

The append you are using is calling for an .html property, but is reflecting a .php property in your provided link example.

In this case, it would appear that you also need to apply a mod_rewrite rule in your .htaccess (as well as in the GT-file) to make the rule work correctly with .html properties.

Can you provide your GoogleTap code that goes with this?

I would have assumed it would look more like:
append_sid("forums-profile-view.html?amp;".POST_USERS_URL."=$user&amp;".POST_POST_URL."=$j")

_________________
Steph Benoit
100% Section 508 and W3C HTML5 and CSS Compliant (Truly) Code, because I love compliance. 
View user's profile Send private message
CurtisH







PostPosted: Wed Apr 27, 2005 11:15 am Reply with quote

Actually this particular function has never worked correctly on my site with or without GT.

I just came across it again and thought that I would go ahead and fix it. When attempting to do so I was unable to get the ? to remain a ?. LOL

In its original form the link became:

http://mysite.com/profile_view_user.php&u=3&p=0

which is because this particular function was not completely ported to BBtoNuke and had retained is phpBB format

All I did was modify the code to make it call the function like it should within BBtoNuke but because of the "?" somehow changing to a "&" the link doesn't work. If I copy the shortcut into the address bar and change the "&" back to a "?" the link works.

I may be misunderstanding your reply, and if so I am sorry. Very Happy
 
CurtisH







PostPosted: Wed Apr 27, 2005 11:27 am Reply with quote

Ok, I figured it out.

For it to work I simply needed to remove the append_sid

Now it works. Thanks for the help. Smile
 
Display posts from previous:       
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> w/Nuke 6.9

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 ©