Chi Kien Uong
Geranienstraße 30
71034 Böblingen
Deutschland / Germany
|
If you are not registered or logged in, you may still use these forums but with limited features.
Show recent topics
|
|
|
Author |
Message |
01/11/2004 22:12:02
|
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?
|
|
01/11/2004 23:43:39
|
Carbonize
Master
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 |
|
|
|
|
|
Based on the open source JForum
|