Remove the "website" listing in a gb post?

Dr. GBooky is here to help you with your guestbook problems ...
Post Reply
mikeja7575

Remove the "website" listing in a gb post?

Post by mikeja7575 »

Hello,

I'd like to remove the option for guests to leave a web site address with their guestbook post. I'm sure this is possible by deleting a section of the code -- can anyone assist in telling me which specific line needs to be deleted?

I used a similar fix to remove the "private post" option and it worked like a charm.

Thanks,
Mike
Henrie
Posts: 1095
Joined: Sun Aug 14, 2005 8:57 pm

Post by Henrie »

Hello mikeja7575,

In GBook version 1.34 following lines change:

Lines 262-266 (website text in private post view). Change

Code: Select all

<font class="smaller">From: '.$from.'</font><br>
<font class="smaller">Website:</font> ';
if (strlen($url)>0) {
echo '<a href="go.php?url='.$url.'" target="_blank" class="smaller">'.$url.'</a>';
}
to

Code: Select all

<font class="smaller">From: '.$from.'</font>';
Line 456 (website text in notify e-mail). Remove

Code: Select all

Website: $url
Lines 523-526 (Website text in add entry page). Remove

Code: Select all

<tr>
<td>Your website:</td>
<td><input type="text" name="url" value="http://" size="40" maxlength="80"></td>
</tr>
Lines 561-565 (Website text displayed the guestbook). Change

Code: Select all

<font class="smaller">From: '.$from.'</font><br>
<font class="smaller">Website:</font> ';
if (strlen($url)>0) {
echo '<a href="go.php?url='.$url.'" target="_blank" class="smaller">'.$url.'</a>';
}
to

Code: Select all

<font class="smaller">From: '.$from.'</font>';
This should be it.

Greetings,
Henrie
Post Reply