Page 1 of 1

External URL's are pointing to my own site - help

Posted: Sat Jan 10, 2009 2:34 pm
by thefandango
Script URL: http://www.tabletopreview.com/auctions.php
Version of script: 1.6
Hosting company: hostgator
URL of phpinfo.php: dont know
URL of session_test.php: dont know
What terms did you try when SEARCHING for a solution: go.php

Write your message below:

Hi

I have added the guestbook and am testing how it modifies to my purposes.

My problem is that when a URL is entered in a guestbook entry, the URL points internally to my site rather than externally.

For example I have a test link to www.ebay.com in an entry, but its URL structure on clicking is:

http://www.tabletopreview.com/auctions/ ... w.ebay.com

This may be an issue with the fact I have embedded the script into a smarty driven cms, but if it is possible to change the link structure (in go.php?) so it links out to the URL, any help would be appreciated.


Thanks.

Posted: Sat Jan 10, 2009 10:33 pm
by Henrie
Hello thefandango,

I don't really know why the go.php page is used but it can be bypassed by changing the gbook.php file.

Open it in a plain suitable text editor.
Find line 535 (in GBook version 1.6)

Code: Select all

echo $lang['t19'].' <a href="go.php?url='.$url.'" class="smaller">'.$url.'</a><br />';
and change it to

Code: Select all

echo $lang['t19'].' <a href="'.$url.'" class="smaller">'.$url.'</a><br />';
Also find line 972

Code: Select all

echo $lang['t19'].' <a href="go.php?url='.$url.'" class="smaller" '.$target.'>'.$url.'</a><br />';
and change it to

Code: Select all

echo $lang['t19'].' <a href="'.$url.'" class="smaller" '.$target.'>'.$url.'</a><br />';
I think this should work, but i have not tested it.

Greetings,
Henrie

Posted: Sun Jan 11, 2009 9:55 am
by Klemen
Henry already posted the fix, but just to clarify: in start this was meant as one of the things to drive spammers away (because they don't get clean links which they are after, but redirects) but this has shown to have no real effect at all, I will remove it in the next version or at least make it optional.

Posted: Sun Jan 11, 2009 10:45 am
by thefandango
Thanks for your help guys.