PHP Web Host - Quality Web Hosting For All PHP Applications $35/month $250/year (Unlimited) - $25/month - 200,000 impressions - Your Ad Could be Here - Click For Details
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
Author Message
CurtisH
Life Cycles Becoming CPU Cycles


Joined: Mar 15, 2004
Posts: 638
Location: Waco, TX

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

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:
Only registered users can see links on this board!
Get registered or login to the forums!


and it should instead be:
Only registered users can see links on this board!
Get registered or login to the forums!


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

Does anyone know how this can be fixed?


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


Joined: Mar 06, 2004
Posts: 1140
Location: Manchester, NH USA

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

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")
View user's profile Send private message Visit poster's website
CurtisH
Life Cycles Becoming CPU Cycles


Joined: Mar 15, 2004
Posts: 638
Location: Waco, TX

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

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:
Only registered users can see links on this board!
Get registered or login to the forums!


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
View user's profile Send private message Yahoo Messenger
CurtisH
Life Cycles Becoming CPU Cycles


Joined: Mar 15, 2004
Posts: 638
Location: Waco, TX

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

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
View user's profile Send private message Yahoo Messenger
Display posts from previous:       
Post new topic   Reply to topic

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
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2008 by Raven
Proud to be listed at Lobo Links Web Directory

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::

:: fisubice Theme Recoded To 100% W3C CSS & HTML 4.01 Transitional Compliance by Raven and 64bitguy ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum