If you are not registered or logged in, you may still use these forums but with limited features. Show recent topics
  [Search] Search   [Hottest Topics] Hottest Topics   [Members]  Member Listing   [FAQ]  FAQ 
[Register] Register / 
[Login] Login 
Advanced Guestbook 2.3.1 entry default to private  XML
Forum Index » Support Forum
Author Message
Anonymous



I want to let people only post private messages, so how do you make Advanced Guestbook 2.3.1 entries default to private? I can delete the checkbox, but how do you set its value to return to whatever makes that value private?
Carbonize
Master
[Avatar]

Joined: 12/06/2003 19:26:08
Messages: 4292
Location: Bristol, UK
Offline

Open up templates/form.php and delete
<input type="checkbox" name="gb_private" value="1"> <font size="1" face="$VARS[font_face]">$LANG[FormPriv]</font>

open lib/add.class.php and find
$sql_usertable = ($this->private==1) ? $this->table['priv'] : $this->table['data'];

replace it with
$sql_usertable = ($this->private==1) ? $this->table['priv'] : $this->table['priv'];


and you're done. It's a hack fix but should do the job.

Carbonize
I am not the maker of the Advanced Guestbook

get Lazarus
[Email] [WWW] [Yahoo!] aim icon [MSN] [ICQ]
 
Forum Index » Support Forum
Go to:   
Based on the open source JForum