How to make Guestbook messages "invisible"?+encodi
Posted: Tue 5. Oct 2004, 09:32
Hi,
My question is: can I make the guestbook moderated? That is, when someone submits a message, this would not be displayed directly, but it would be available to the administrator who would decide whether to authorize the message or not.
Even at the code level, what should I change in the code to make messages to be stored in the database with a "hidden" status, so I can examine them later and decide to make them visible or not (possibly by manually changing some column value in the database table associated with the guestbook messages)?
For example, if I know where is the sql query to store the message, I can possibly change the initial value of guestbook_trashed (in phpwcms_guestbook table) to some other value (to 9, as I have noticed) to make the message hidden. Then, I can check the message and change the value of guestbook_trashed to 0, so it can be visible. So, where is the sql for storing the messages?
Also, one problem: in the guestbook content part administration page I see (at the bottom of the page) the list of messages displayed. However, those written in the greek language are not displayed with correct characters, even though the page codepage is correct and all other greek characters in the page are showing fine. What should I edit to correct this problem?
Thanks,
Nick
My question is: can I make the guestbook moderated? That is, when someone submits a message, this would not be displayed directly, but it would be available to the administrator who would decide whether to authorize the message or not.
Even at the code level, what should I change in the code to make messages to be stored in the database with a "hidden" status, so I can examine them later and decide to make them visible or not (possibly by manually changing some column value in the database table associated with the guestbook messages)?
For example, if I know where is the sql query to store the message, I can possibly change the initial value of guestbook_trashed (in phpwcms_guestbook table) to some other value (to 9, as I have noticed) to make the message hidden. Then, I can check the message and change the value of guestbook_trashed to 0, so it can be visible. So, where is the sql for storing the messages?
Also, one problem: in the guestbook content part administration page I see (at the bottom of the page) the list of messages displayed. However, those written in the greek language are not displayed with correct characters, even though the page codepage is correct and all other greek characters in the page are showing fine. What should I edit to correct this problem?
Thanks,
Nick