Disable private post

Dr. GBooky is here to help you with your guestbook problems ...
Post Reply
zztopbanana
Posts: 9
Joined: Fri Apr 28, 2006 8:54 pm

Disable private post

Post by zztopbanana »

Script URL:
Version of script:
Version of PHP:
Hosting company:
Have you searched THIS FORUM for your problem:
(if not please do before posting)
If so, what terms did you try:

Write your message below:

Hello,

First, can I say that this script is superb - I was using Openbook guestbook but it was targeted by spammers and there were no anti spam measures had it was easier to take it down than to keep removing the posts - I have since ported all the entries to this.

Anyway, my question is, is it possible to disable the 'private message function' and, obviously, if so, how ?

Thanks a lot

zztb
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

Hi,

In gbook.php delete line 551:

Code: Select all

<p align="center"><input type="checkbox" name="private" value="Y">Make this post private</p> 
Regards
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
zztopbanana
Posts: 9
Joined: Fri Apr 28, 2006 8:54 pm

Post by zztopbanana »

Hi,

Thanks for the rapid reply. I have installed the xhtml version ( the one with with ip logging ) and the code is different but I found it based on your reply.

I deleted

<input type="checkbox" id="private" name="private" value="Y" /><?php echo $lang['add_pri']; ?><br />

and it works a treat.

Sorry I don't know the line number - no script editor.

This really is a superb script.

Thanks again,

zztb
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

Version 1.4 now available from http://www.phpjunkyard.com/php-guestbook-script.php

Regards,
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
Post Reply