Page 1 of 1

Your Website field

Posted: Sun Dec 10, 2006 10:33 pm
by goingnowhere
Script URL: http://www.tinanyborg.com/guestbook/gbook.php
Version of script: 1.4
Hosting company: streamline
URL of phpinfo.php:
URL of session_test.php:
What terms did you try when SEARCHING for a solution:

Write your message below:


Hello :)

I've been using the guestbook on a friends website and everything is working great except I have a problem with the URLs people put into the "Your Website" field.

When I click on the URL this is what shows up in the address bar....

http://www.tinanyborg.com/guestbook/go. ... ctions.com

I also get this error message....

Warning: Cannot modify header information - headers already sent by (output started at /home/fhlinux222/t/tinanyborg.com/user/htdocs/guestbook/go.php:1) in /home/fhlinux222/t/tinanyborg.com/user/htdocs/guestbook/go.php on line 39


Is there a way of fixing it?

Thanks :)

Posted: Tue Dec 19, 2006 6:01 pm
by Klemen
Hi,

If the go.php doesn't work upload it again and make sure you don't edit it.

Otherwise you can use "clean" URLs by changing line 794 from

Code: Select all

echo '<font class="smaller">Website:</font> <a href="go.php?url='.$url.'" target="_blank" class="smaller">'.$url.'</a><br>'; 
to

Code: Select all

echo '<font class="smaller">Website:</font> <a href="'.$url.'" target="_blank" class="smaller">'.$url.'</a><br>'; 
NOTE: line 794 is in gbook 1.43 if you have just 1.4 the line number will be different (consider upgrading!)

Posted: Tue Dec 19, 2006 7:08 pm
by goingnowhere
Thanks that worked perfectly. I doubt checked an it is 1.43 I'm using. :D