Guestbook Administration - F.A.Q

Here is a list with all template variables that can be used in the respective template files:

You can use the language variables in any template file (globally). The variables from "tpl/language.php" are prefixed with "L_". Examples: {L_NAME}, {L_EMAIL}, etc.

1. tpl/client_header.tpl
2. tpl/client_error.tpl
3. tpl/client_thanks_short.tpl
4. tpl/client_paging.tpl
5. tpl/client_form.tpl
6. tpl/client_comment.tpl
7. tpl/client_footer.tpl
8. tpl/client_thanks_header.tpl
9. tpl/client_thanks_footer.tpl
10. tpl/client_banned.tpl
11. tpl/short.tpl
12. tpl/client_new_post_email.tpl
13. tpl/client.tpl
1. tpl/client_header.tpl
{TITLE} - Title of the page. The title text is taken from the respective language variable in "tpl/language.php".
{PAGE_ENCODING} - The encoding scheme of your web pages. You can configure the value in the Admin panel.
2. tpl/client_error.tpl
{ERROR_MSG} - Error message. The error message text is taken from the respective language variable in "tpl/language.php".
3. tpl/client_thanks_short.tpl
Static html code here only. No template variables.
4. tpl/client_paging.tpl
{PAGE_NUMBER} - Number of the currently displayed page.
{PAGE_FIRST_URL} - URL address of the first page.
{PAGE_PREV_URL} - URL address of the previous page.
{PAGE_URL} - URL address of the page with number {PAGE_NUMBER}.
{PAGE_NEXT_URL} - URL address of the next page.
{PAGE_LAST_URL} - URL address of the last page.
5. tpl/client_form.tpl

{U_POST_FORM} - the URL address to which our form posts data.

Subject group:
{SUBJECT_STAR} - this variable is empty upon form submission error. Otherwise it shows a star (as defined in $g['lang']['client_star'] in "tpl/language.php").
{F_SUBJECT} - initially this variable is empty and represents the "value" of the SUBJECT <input> field. When the user submits something and the input has to be resubmitted (due to bad input from the user), this variable contains the original user input for the SUBJECT field.
{F_SUBJECT_LENGTH} - a number which shows the maximum length of the SUBJECT field.

There are 4 such groups more - for the fields Name, E-mail, Location, and Homepage.
The template variable names are formed in the exactly same way but "SUBJECT" is to be replaced with the following text respestively:
NAME
EMAIL
LOCATION
HOMEPAGE

Comment group:
{COMMENT_STAR} - the same as {SUBJECT_STAR} respectively for the comment field.
{F_COMMENT} - the same as {F_SUBJECT} respectively for the comment field.

Image protection group:
{U_SECURITY_IMG} - URL address of the code image.

Hidden <input> fields group:
{HASH} - security hash. It must be submitted for the user input to be accepted (e.g. login, comments).

6. tpl/client_comment.tpl
{P_SUBJECT} - Subject of the comment.
{P_NAME} - Name of the visitor who posted the comment.
{P_EMAIL} - E-mail address of the visitor.
{P_LOCATION} - Location of the visitor.
{P_COMMENT} - Comment text.
{P_HOME_PAGE} - Home page of the visitor.
{P_LINE} - Comment number, or the word "New" if this is a Preview. The word "New" can be configured in the "tpl/language.php" file.
{P_DATE_TIME_READABLE} - Formatted date/time string which shows when the comment was made. The format of the date/time string can be configured in the Admin panel.
{P_IP_ADDRESS} - IP address of the visitor that posted the comment.
7. tpl/client_footer.tpl
Static html code here only. No template variables.
8. tpl/client_thanks_header.tpl
Static html code here only. No template variables.
9. tpl/client_thanks_footer.tpl
Static html code here only. No template variables.
10. tpl/client_banned.tpl
Static html code here only. No template variables.
11. tpl/short.tpl
All variables from "tpl/client_comment.tpl" (6) can be used here.
12. tpl/client_new_post_email.tpl
{SUBJECT} - Subject of the comment.
{NAME} - Name of the visitor who posted the comment.
{EMAIL} - E-mail address of the visitor.
{LOCATION} - Location of the visitor.
{COMMENT} - Comment text.
{HOME_PAGE} - Home page of the visitor.
{DATE_TIME_READABLE} - Formatted date/time string which shows when the comment was made. The format of the date/time string can be configured in the Admin panel.
{IP_ADDRESS} - IP address of the visitor that posted the comment.
{ADMIN_PANEL_URL} - URL address of the Admin panel of the guestbook.
13. tpl/client.tpl
Template includes here only. No template variables.
Template Integration | Template Variables | Config / Admin Section