Cloak / Shorten the URL displayed

Dr. GBooky is here to help you with your guestbook problems ...
Post Reply
Calderon
Posts: 3
Joined: Thu Jan 28, 2010 9:32 pm

Cloak / Shorten the URL displayed

Post 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.
Henrie
Posts: 1095
Joined: Sun Aug 14, 2005 8:57 pm

Post 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
I do not monitor the Gbook forums regularly anymore since I do not use the Gbook script myself anymore for a long time. But it helped me a lot in learning to understand php.
Post Reply