|
|
[ GuestBook - Reference ]
The Guest Book lets visitors to your page leave comments in a
public guestbook.
Template files used by this Dynamic Tool
Options available:
GuestBook SetupUse the following HTML hyperlink to link to your guestbook:
Use this HTML hyperlink to display the contents of your guestbook:
You must also upload an empty guestbook file before your guestbook will function. The file should be named '_zisp_/gbook.txt. Editing the contents of your GuestBookThe contents of your guestbook are stored in the "gbook.txt" file hidden in the "_zisp_" folder in your website.You edit the contents by downloading this file, editing it and then uploading it again. You can download the file from your web browser, by accessing the following page and saving the results as "gbook.txt" on your home computer:
You will need to replace "www.mysite.com" with the name of your own web site. The file will contain the contents of your guestbook.
Entries are separated by the word "__ENTRY__". Each entry consists of a sequence of fields:
You can edit this file (for example, using Notepad). Save it and upload it back to your web site, replacing the existing file. You can clear all the entries in your guestbook by deleting the file from your website. Dynamic Tools will create a fresh "gbook.txt" file the next time someone adds their comments to your guestbook. Your guestbook can contain up to 50 entries. If you have more than 50 entries, the older ones are deleted. Customising your GuestBook using TemplatesThe GuestBook Dynamic Tool uses three template files to generate the pages your visitors see.
Template files should be stored on your website, in a folder called
"easyzisp".
When a visitor clicks on your "/zisp/guestbook" link they will see a page generated from the "guests.html" template:
This template must contain a form with the following parameters:
You can use whatever form elements you like in this form. The example above has two textboxes (named "name" and "email") and a textarea named "comments".
Your guestbook will record the value of every form element, and will also
record that time and date that the entry was added.
When a visitor to your site adds and entry to your guestbook, the GuestBook Dynamic Tool generates an acknowledgement page from the "g_ack.html" template file.
When a visitor clicks on your "/zisp/guestbook_show" link, they will see a page generated from the "g_view.html" template:
This template generates a page with the contents of your guestbook. It has one special tag: "<!--GUESTBOOK ENTRIES-->". This tag must enclosed inside an HTML table ("<TABLE>" and "</TABLE>"). When the webserver displays this template, it replaces the special "<!--GUESTBOOK ENTRIES-->" tag with the contents of your guestbook. The most recent entries in your guestbook are displayed first. Using multiple GuestBooksYou might want to have several guestbooks. You can do this by giving each separate guestbook its own "ID".
... and
... where "NN" is a number between 0 and 99. For example, the guestbook with ID "45" will store its contents in the file "gbook45.txt" in your "_zisp_" directory. The standard gbook.txt file is created automatically, however these extra guestbook files must be created manually by you before they can be used. Your ISP should provide details on how to do this. Zisp will try to use the templates named "guests45.html", "g_ack45.html" and "g_view45.html" in your "easyzisp" directory, if they exist. | |||||||||||||||||||||||||||||||
![]() |
![]() |