Welcome > GBook > Setup
CMSimple-Plugins by QualiFIRE


1. Where I get the Guestbook?

The Guestbook plugin is available at my website as Download. The actual version is 0.8. The guestbook will be continously enhanced. It is an advantage to take a look what's new time by time.

2. What must be done before you install?

  1. First you have to install CMSimple. If you don't have it, please download this from www.cmsimple.com or from www.cmsimple.org.

  2. As next step you have to install the Plugin-Loader from Michael Svarrer or from CMSimple. Without one of the two loader the Guestbook plugin definitely not work.
    You can download the Michael Svarrer's Plugin-Loader from cmsimple.de/cmsimple/index.php?Plugins_%26amp%3B_Downloads. A description how install the Plugin-Loader is included inside of the zipfile.
    Alternatively you can use and download CMSimple 3.0 Plugin-Loader from www.cmsimple.org/?Downloads:Old_versions. Download version 3.0 (and only this version) and unzip the file index.php from folder plugins into the folder plugins.

3. How to install the Guestbook?

Download the zip-file from Download and unzip it into the folder .cmsimpleplugins. Take care to check the "use folder names" option while unzipping. After unzip you should have the following structure:

| +-gbook
| +-config
| +-content
| +-css
| +-help
| +-images
| +-languages

After this you can start CMSimple and login into the Admin area. Now you should see the Plugin in the list of all plugins. If you don't see it, something is wrong (check the folder structure).

4. How to call the Guestbook?

4.1 Installation and Build in to your Website

First you should create a own main page with <H1>, or subpages with <H2> or <H3>, as a container for the guestbook..Plug the guestbook in your CMSimple-page by adding the line
#CMSimple $output.= GBlist();#
#CMSimple $output.= GBlist(cFilename);#

into your text, directely following to the heading. You can copy the text line directly from the description here. But please take care to control the HTML-code directly and delete, if necessary, the < FONT >-tags. The result should exactly look like shown above. If it looks like the following line

#CMSimple $output.= GBlist();#
you should delete all tag, because these tags are causing errors.

Specifying the filename cFilename is optionally. The specified filename should not contain any language shortcut or an file extension, both will be added automatically. If you specify as cFilename the string 'MyGuestbook', there will be a file with the name 'MyGuestbook_en.txt' used, if you use English as language. The splitting of the guestbook into a own part for each language can be switched off by setting the option common_guestbook to True. In this case only one guestbook will be used for all languages.

If you specify no filename, the GBook plugin will use the default string 'Guestbook' as first part of the filename.

Don't forget to disable the default guestbook of CMSimple in the settings. Otherwise spam will fill anyway the guestbook datafile (but without being visible).

4.2 Calling outside of Menu Structure

If you want to integrate the GBook guestbook in the same matter as the default guestbook of CMSimple, this means not visible in the menu structure, but instead of that visible as separate link in the navigation area, you have to the following steps:

First you have to create an own page for the guestbook as described under 4.1. For hiding the guestbook in the normal menu/navigation structure, the addition command hide is necessary. So the following lines must be inside of the guestbook page:

#CMSimple hide #
#CMSimple $output.= GBlist(); #

As next step, you have to insert the link to the new guestbook into the template file. You have to exchange the following code



The path specified after "index.php?" is the menu structure you have choosen for storing / organizing the guestbook in your website. In this example the main menu is called Contact and the submenu, where the guestbook page is called has the name Guestbook. After this steps the default guestbook from CMSimple will be no longer shown and instead the GBook guestbook will be called.

4.3 Calling in Member Area (Memberpages)

If the GBook guestbook should be available in a member area, where only logged in members are having access, the following steps have to be proceeded:

First an own page, as described under 4.1, has to be created for the guestbook. For hiding the guestbook page in the normal menu structure (it should be visible only for members) the additional command hide is necessary:

#CMSimple hide #

As next line the commands for the memberpage and GBook plugins must be entered. Both command must be specified in one #CMSimple ... # command:

#CMSimple $output.=memberspage("Access denied","0"); $output .= GBlist(); #

This means, first the access will be checked and if successful, the guestbook will be shown.

5. Can I use multiple Languages?

GBook supports the use of multiple languages. There are no specific commands necessary. Gbook detects automatically which language is currently used and choose the dependent guestbook file.

At the moment the plugin comes with the following languages:

Danish, many thanks to Per Kongebro
Dutch, many thanks to Gerd Xhonneux
Finnish, many thanks to Ahti Kurki
French, many thanks to Gerd Xhonneux
Hungarian, many thanks to Zsolt Kádas
Italian, many thanks to Sandro Cavalieri Foschini
Norwegian, many thanks to Tobias Michel
Portuguese, many thanks to JoaoVr
Slovak, many thanks to Martin Sereday

If your language is not listed above, you can create your language as well. Just copy an exiting language file (e.g. en.php), rename this file according to the used language and translate the texts inside.

At this point I like to say "Thank you very much" to all the people, which have sent their translations to me!

Please feel free to send new languages files to me. I will include them in the very next setup, the author will be mentioned!

6. Configuration

The GBook plugin is individually adaptable to the desired functionality and layout by several settings.

The following settings are available:

date format:
time format:
ask for email:
ask for website:
ask for title:
mandatory title:
mandatory email:
remove html:
items per page:
num of pages:
info mail:
thank mail:
thank sendfrom:
new entries:
spam words: old, please don not use any longer
show creator:
show narrowlink:
show email:
show website:
show ip addr:
store ip addr:
use smileys:
blocked words:
blocked IPs:
blocked domains:
blocked countries:
common guestbook:
quarantine time:

date format: Use this field for defining how the date of the message should be displayed on the screen. The values of the field are the same as the date() function of PHP allows.

time format: Use this field for defining how the time of the message should be displayed on the screen.The values of the field are the same as the date() function of PHP allows. The date() function of PHP is used as well for date values as well for time values.

captcha: The captcha code is a string combinations of five characters and number, which must be entered by the user, if this setting is set to true. Does this value not match with the original captcha code, the new guestbook entry will not be stored. This setting avoids most of all spam entries. Possible values for this field are True or False.

ask for email: This field defines if the user will be asked for his e-mail address or not. Possible values for this field are True or False.

ask for website: This option is for setting up if the user should be prompted for his website / homepage or not. Possible values for this field are True or False.

ask for title: This option defines if the user will asked for a title of his message or not. Possible values for this field are True or False.

mandatory title: This option defines if the user must enter a value into the field Title or not. This option can be set to True only when the option ask for title is set to True too. Possible values for this field are True or False.

remove html: This field defines if maybe contained HTML code should be removed or not. Possible values for this field are True or False. Normally it is strongly recommended to set this option to True for removing HTML code. This avoids bad links to websites which are containing viruses, trojans and other ugly stuff.

items per page: With this option the administrator can define how many items per page should be displayed. Are there more entries in the guestbook, the plugin will split the content onto so many pages as necessary.

num of pages: This setting specifies how many page links will be shown left and right close to the actual page number in the navigation bar at the bottom of the guestbook.

info mail: This field specifies to whom an info e-mail, that there is a new entry in your guestbook, should be sent. In this field you can specify more than one e-mail address. All e-mail addresses must be separated by a comma.

thank mail: This option defines if the visitor which has created a new message in the guestbook will get an automatically send mail to thank him. Possible values for this field are True or False. The text of the thank mail is available in the section Language and can be modified as you prefer.

thank sendfrom: This field contains the e-mail address which will be shown as sender.

new entries: This option allows to switch on and off the functionality of creating new guestbook entries. Possible values for this field are True or False. This option can be used eg. when your guestbook is under maintenance or your have some other problems. Normally this option should be set to True.

spam words: Since version 0.8 this option is no longer used. Use instead the option blocked words.

show creator: At the bottom of the guestbook will be a link to the author shown. If this text should not be shown this field must be set to False. Switching off this display is only possible after contacting the author. Possible values for this field are True or False.

show narrowlink: This option allows to switch on or off the links to previous "< Back" and next "Next >" page. Possible values are True or False.

show email: This options specifies if the e-mail address of the guestbook visitor will be shown or not. Possible values for this field are True or False. This option has no influence if the e-mail address will be stored or asked from the user (see also ask_for_email) or not. It's only for switching on/off the display.

show website: This option allows to define if the address of the homepage will be shown or not. Possible values for this field are True or False. This option has no influence if the homepage address will be asked from the user (see also ask_for_website) or not. It's just for switching the display on/off.

show ip addr: This option specifies if the ip address of the visitor will be shown or not. Possible values for this field are True or False. This option has no influence if the ip address will be stored (see store_ip_addr) or not. This setting is just for switching the display on/off.

store ip addr:This option allows to define if the ip address of the visitor will be retrieved and stored or not. Possible values for this field are True or False.

use smileys:This options enables or disables the support for using smileys. If this option is switched on on the upper right corner of the message field a toolbar with the available smileys will be displayed. If the user clicks on one of the smileys the depending code will be copied into the message field. Possible values for this field are True or False.
The smileys will be displayed in the message field in the common used notation like :-) oder 8-), but internally they will be stored as a describing code. This means the smiley :-) will be internally :smile: or the smiley 8o will be internally stored as :eek:. This has the advantage to support also smileys which are containing control characters which would be otherwise unsupported.
The detection and online conversion of smileys is everytime active. This means: If the smiley :-) was once a time used and stored internally as :smile:, the visitor of the guestbook will see independent of this setting everytime the graphical smiley.

List of supported smileys:

Icon User input Internal coding
smile :-) :) :smile:
happy :-)) :happy:
biggrin :-D :D :biggrin:
wink ;-) :wink:
cool 8-) :cool
tongue :P :tongue:
rolleyes :rolleyes: :rolleyes:
eek 8o :eek:
confused ?( :confused:
frown :-( :( :frown:
crying ;-( :crying:
mad X( :mad:
evil :-> :evil:

blocked words: This field contains a list of all words, which will be used to identify the guestbook entry as spam. Contains a message words, which are classified as spam, this message will be not stored and a hint will be displayed instead.
This option is used on creating new entry in the guestbook as well as on importing an old guestbook. Regular expressions are allowed.

blocked IPs:
This option allows to block visitor by their IP address. If the IP address matches the specified range, the new message will not be stored and a hint will be displayed instead. The specification can be a single IP address line (=localhost) or a IP range like

blocked domains: With this option it is possible to domains or part of domains which should be used for denying the access. If the search string matches, the entry will not be stored and a hint will be displayed instead. Multiple search stings are allowed and must be separated by the character |. Regular expressions are allowed.

blocked countries: With this option you can block visitors from a country by specifying its top level domain. There are multiple entries possible, separated by the character |. Regular expressions are allowed.

For using this option, the package IPFILES must be installed. For installing the package the file ipfiles.zip must be unzipped in the directory include. This package must be downloaded separately.

common guestbook: This option allows to specify that for all languages only one common guestbook has to be used. Possible values for this field are True and False.

quarantine time: With this option it ios possible to define, if a new entry should be displayed immediately or after a specified time is gone. The value for the quarantine time is calculated in hours. Until the quarantine time is expired, the text $plugin_tx['gbook']['txt_quarantine_notice'] will be displayed. During this time the webmaster has the oportunity to check the entry. When the time is expired, the guestbook entry will be displayed. The value 0 switches off this function.

7. Adapting the Layout

The layout, eg. the used colors and fonts of the guestbook, will be basically defined by the settings stored in the file stylesheet.css in the folder css. In this file all colors, fonts and font sizes for the guestbook are defined there. There are four different color definitions already predefined: Blue, yellow, gray and green. These definitions can be used easily just by renaming the files, eg. rename the file stylesheet.green.css into stylesheet.css to use the green color definition.

According to these color definitions the GBook installation contains also matching smileys. The smileys with the different colors are stored under the folder images in the subfolders blue, green and yellow gespeichert. To use one of these smiley sets just copy the content in the folder images. If you are using eg.the stylesheet yellow, so have to copy the smileys from the folder yellow one level higher in the folder images, for using yellow smileys.

The stylesheet file can be modified of course. The entries have the following meaning:
Class Description
td.gbtitle Formatting of title bar
td.gblightline Formatting of a light = even line (lines 2, 4, 6, 8, ...)
td.gbdarkline Formatting of a dark = odd line (lines 1, 3, 5, 7, ...)
span.gbdatetime Formatting of date and time
div.gbname Formatting of visitor name
span.gbmessage Formatting of message text
input.gbcaptcha Formatting of captcha text field
input.gbtextbox Formatting of text fields
input.gbmsgbox Formatting of message box

8. How to import an existing Guestbook?

Since version 0.6 of GBook plugins there is the function available at the section "GBook Data". This function allows to import a default guestbook of CMSimple into the GBook guestbook. With this function you will not loose messages, stored in your old guestbook, when switching to GBook plugin.

For importing a CMSimple guestbook, please click the button . The following pages offers several options. These options can have heavy influence to the success and quality of the following import. The guestbook of CMSimple is storing all messages directely as HTML text. Therefore it is quite complicate to detect, where eg. the message text or where and how the author or the date is stored

The following options are available:

Save-Options: The default setting is Append to GBook file . When you choose this option all items of the old guestbook will be append automatically to the new guestbook on importing the guestbook. Contains your new GBook guestbook only some test entries, which should be deleted anyway, you can choose the option Overwrite existing GBook file . If you choose this option all entries of the GBook guestbook will be overwritten with the guestbook entries of the CMSimple guestbook..

Conversion Options: The option Use server name as username replace the name of the user with the name of the server. This can by helpful eg. when the recognition of the username doesn't work in any cases. or the name of the user should not be shown.

The option Use Spam filter enables the filtering of all new imported entries for spam. All texts defined in the field 'Spam Words' will be compared with the guestbook message which will be imported. If a text matches with a message, this message will be skipped and not imported.

Use the option Scan Format for defining which date and time format was used for storing these values. These settings cannot be read automatically. Therefore you have to specify them manually.
Possible values are e.g.:
%s, %d. %d. - if the date format is like March, 13. 2006
%d.%d.%d - if the date format is like 24.03.2006

The option Parameter order defines, the order of the values for day, month, year, hours, minutes und seconds. The number 1 is for the day, 2 for the month, 3 for the year, 4 for the hours, 5 for the minutes and 6 for the seconds.

The option Value for Posted allows to change the predefined value of the field 'Posted'. This is necessary e.g. if you're using CMSimple Plus which adds in the source code the additional string ' am ' to the field 'Posted'. In this case you have to add the string ' am ' at the end of the option 'Value for Posted'.

Other Options: The Debug Mode shows addtional output during the import. This can be helpful on errors or not exactly recognized data.

Info: The fields Used Date Format and Used GBook language file are shown just for information and cannot be changed.

When you have set up all settings and you're sure to import the CMSimple guestbook, press the button .
If not press to return to normal editor of the GBook guestbook file.

Importing the original guestbook may take some time. Please wait until a summary of the import is shown. As last step of the import you have to press the button to finish the import. The new content of guestbook will be shown in the textbox and can be edit, if necessary.

9. What is the Purpose of the Function Reorg?

Since version 0.7 there is the function available in the administration. This function allows to reoganize the guestbook file. There will be two things corrected by the function:
  • If the character /// will occure multiple times, it will be removed
  • Simple smileys, like eg. :-) will be converted to the correct internal kind eg. :smile:
The function Reorg will correct everytime only the guestbook file of the actual language. If you're in the english branch of your website, only the english guestbook file will be corrected. For reoganizing eg. the german guestbook file, please logout, switch to the german branch, go to into the administration - GBook - and start the function reorg once again.

It is highly recommended to backup the guestbook file before running the reorg function!

powered by cmsimple.dk - template by Jens Bröcher Webdesign