Layout Customization

The folder /templates/ contains all files responsible for the appearance of the website. You can use HTML and CSS to customize the layout as you wish. The already existing subfolders "default", "admin", "alternative" and "hidden" are examples how to customize the script.

In case you are using a WYSIWYG editor like Macromedia Dreamweaver, MS Frontpage or NetObjects Fusion please make sure that the software does not make any changes by itself.

The template files contain markers with { and } like: {txt_next_page}. These markers will be replaced by its counterparts from the language file /languages/language.en.inc.php. You are free to edit that file and change the words and phrases. You are also free to replace the markers within the template files by real words or put those markers to other positions within the template file. And you are also able to enhance the language file by using the given pattern.

Amongst those word markers exist the so called loops. Similar to HTML tags the two parts (<LOOP ...>...</LOOP>) must not be separated. If you want to alter the position within the template you move the whole block.

The Different HTML Templates

layout.tpl.html

This file can contain the layout elements that apply for all pages. All script pages are then using automatically the same layout. You can leave this file empty and define an individual layout for each page.

That file is not used in the embedded mode.

The file contains the special variable {main_content}. This variable will be replaced by the script with the content of the detail templates. This variable must not be removed or altered -- even if the file shall not contain any layout content.

detail.tpl.html

Contains the layout of the script excluding the group and link layout. It contains the following elements:

<LOOP NAME="group_rows">... </LOOP NAME="group_rows">

That part above will be replaced by the group content.

<IF NAME="logged_out">...</IF NAME="logged_out">

That part above contains content (login box) to be displayed if you are not logged in to the admin area.

<IF NAME="show_login"> ... </IF NAME="show_login">

You can define that the script does not display the login box. The IF tag above manages that.

<IF NAME="logged_in">... </IF NAME="logged_in">

All content within that IF tag is displayed when you are logged in to the admin area.

group.tpl.html

Contains the layout of a group.

link.tpl.html

Contains the layout of a link

embedded.tpl.html

If you want to use the script in embedded mode, the script automatically uses this template file instead of "detail.tpl.html". It only contains the group content loop.