FG Guestbook

Home
Features
Demo
Download
User
FAQ
Design-Patterns
Templates
Submit bug
Forum
Project page
Credits

Deutsche Webseite

SourceForge Logo

Design-Patterns


body_template and write_template are managed with design patterns.

A pattern is a word with a function, which is in the template.
The guestbook replaces the pattern with a function, when the template was read.
So you can better adjust the guestbook to your whishes.

Patterns for body_template:

%THANXMSG% : The thanxmessage, if somebody have done an entry.
%PTHANXMSG% : The same as "<p><b>%THANXMSG%</b>".
%NUMBERENTRIES% : Number of entries
%PAGE% : Current page
%PAGEBAR% : The pagebar ( .. 2 3 4 5 6 7 8 9 10 .. )
%BEGINLBACK% : Begin of the link to the page before. Must end with %ENDLBACK% !
%ENDLBACK% : End of the link to the page before.
Sample.. %BEGINLBACK% « back %ENDLBACK%
%BEGINLNEXT% : Begin of the link to the next page.
%ENDLNEXT% : End of the link to the next page.
%DATA% : The guestbookentries! The most important pattern.. :)

Patterns for write_template:

%NUMBER% : Current number of the entry.
%DATE% : Date of the entry.
%NAME% : Name of the person.
%EMAIL% : Email of the person
%EMAILNAME% : Same as "<a href="%EMAIL%">%NAME%</a>"
If there's no email, the link won't be set.
%HOMEPAGE% : URL of the persons homepage
%LHOMEPAGE% : Same thing as %EMAILNAME%
%TEXT% : The message..
%COMMENT% : Will be replaced with the comment from the guestbook admin.
Without this pattern no comments possible.
%BRCOMMENT% : Same as "<br><br>%COMMENT%"

The patterns are case sensitive!


[ Home | Features | Demo | Download | User | FAQ | Design-Patterns | Templates | Submit bug | Forum | Project page | Credits ]