Page 1 of 1

Cloak / Shorten the URL displayed

Posted: Thu Jan 28, 2010 9:48 pm
by Calderon
Script URL:
Version of script: 1.7
Hosting company:
URL of phpinfo.php:
URL of session_test.php:
What terms did you try when SEARCHING for a solution: Search this forum

Write your message below:

Hi! I was wondering if there is a way to shorten the URL in the commentbox. If it´s too long it goes into 2 lines now. So what i want to do is to "cloak" the URL into something like Click Here or something default. Thanks.

Posted: Fri Jan 29, 2010 1:37 am
by Henrie
Hello Calderon,

In gbook.php file, find line 1114:

Code: Select all

$url = '<a href="'.$url.'" class="gbook_submitted" '.$settings['target'].' rel="nofollow">'.$url.'</a>';
and change it to

Code: Select all

$url = '<a href="'.$url.'" class="gbook_submitted" '.$settings['target'].' rel="nofollow">Click here</a>';
You can change the Click here text to whatever you like.

Greetings,
Henrie