Page 1 of 1

How do you make all posts private?

Posted: Mon Oct 26, 2009 8:36 pm
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.

Posted: Tue Oct 27, 2009 6:31 am
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

Posted: Tue Nov 10, 2009 8:09 pm
by donatejdm
Thanks So much! :D