How do you make all posts private?

Dr. GBooky is here to help you with your guestbook problems ...
Post Reply
donatejdm
Posts: 2
Joined: Mon Oct 26, 2009 8:17 pm

How do you make all posts private?

Post by donatejdm »

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:All Private posts, private guestbook, privacy settings

Write your message below:

I had an earlier version of this and I remember being able to modify a piece of code in gbook.php to enable ALL posts to be unreadable by the general public.

I would like to be able to do that in this current version as well but the line numbers do not match up. Can you please tell me what I need to replace to make all posts private?

Thank you.
Henrie
Posts: 1095
Joined: Sun Aug 14, 2005 8:57 pm

Post by Henrie »

Hello donatejdm,

Open the file sign_form.php in the templates/default folder.
Find line 80:

Code: Select all

<label><input type="checkbox" name="private" value="Y" class="gbook_checkbox" <?php echo $isprivate; ?> /><span class="gbook_entries"><?php echo $lang['t55']; ?></span></label><br class="clear" />
and change it to

Code: Select all

<input type="hidden" name="private" value="Y" />
This will only make new posts private. Existing post will stay as they are. These can only be changed by changing the value for private posting in the entries.txt file (or a more hard to guess filename if you changed the setting in the settings.php file).

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.
donatejdm
Posts: 2
Joined: Mon Oct 26, 2009 8:17 pm

Post by donatejdm »

Thanks So much! :D
Post Reply