Page 1 of 1

Disable private post

Posted: Fri Apr 28, 2006 9:07 pm
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

Posted: Fri Apr 28, 2006 11:53 pm
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

Posted: Sat Apr 29, 2006 5:20 am
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

Posted: Tue May 09, 2006 4:22 pm
by Klemen
Version 1.4 now available from http://www.phpjunkyard.com/php-guestbook-script.php

Regards,