Anti-Spam Scripts - Creating Templates
Creating templates for the guestbook and entries is fairly easy if you are familiar with HTML.

Entries

To keep things looking neat it is a good idea to create a guestbook entry as a table. You don't have to it is just easier to get things lined up and looking good. Here is an example of a basic entry template:
<table cellspacing="2" cellpadding="5" border="0" width="100%" class="GB">
  <tr><td width="250">
    <p class="smallbold">[DATE]</p>
    <p class="normal">[NAME]<br>
    <br></p>
    [URL]<br><p class="small">
    <i>Where are you from? </i><br>  [CITY]   [COUNTRY]<br><br>
    <i>How did you find us?</i><br>  [HOWFOUND]</p>
  </td>
  <td class="normal">
  	[MESSAGE]
  </td>
</tr></table>
<hr>

All of the tags surrounded by brackets like [DATE] are filled in by the script at runtime. Classes are from the style sheet and the colors etc are set in the config script.
Below are the tag definitions and the style sheet definitions.

Tags for Guestbook entries
Tag Description
[DATE] Inserts the date.
ie. Monday Oct 5 2005 16:43:50
[NAME] The name the person used.
Aubrey Millard
[EMAIL] The email address
nospam©combatarts·ca
[URL] The URL as a link.
Home Page
[CITY] / [COUNTRY] What they left as a city and country
Kitchener Canada
[HOWFOUND] What they selected for "How did you find us?"
Just Browsing
[MESSAGE] The Message they left.
Hi! Nice website.



Style Sheet Classes
Style Name Description
GB Uses Guestbook background color, text color and guestbook background image as set in the config script.
Like This
header Uses Header text and background colors
Like This
small Reduces font size to 7pt
Like This
bold Sets the font size to 9pt and makes it bold.
Like This
title Uses the title color and sets the font size to 18pt.
Like This
smallbold Sets the font size to 7pt and makes it bold.
Like This
normal Sets the font size to 11 pt
Like This





Creating a template for the guestbook is not that difficult.
The only thing to keep in mind is where the entries will go when the script runs. So if you have a basic page like this:
<HTML>
  <HEAD>
	<TITLE>My Guestbook</TITLE>
	[CSS]
  </HEAD>
  <BODY>
	<!--[SPLIT]-->  
  </BODY>
</HTML>
The script will put all of the entries in place of the <!--[SPLIT]--> line. any HTML is ok, just keep in mind that any links or images must be a full URL like http://www.myweb.com/images/image.gif

Below is the list of tags that you can use that the script will fill in at runtime.

Tags for the Guestbook
TAG Description
[CSS] The style sheet containing the colors you set in the config script.
Must go in the <HEAD> </HEAD> Section
[TITLE] The Title
[TITLEIMAGE] Title image set in the script
[ADDGUEST] Link to the submission page
[DATE] The Current date/time
[SEARCHBAR] Displays the search bar for searching the guestbook
[TOTALENTRIES] The number of total guestbook entries.
Only displays the number.
[PAGELINKS] Links to the other guestbook pages
ie.1  |  2
[VERSION] The version of the script
ie v3.40 BETA.







All content and images COPYRIGHT © 2005 by Aubrey Millard