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.
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:
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).
#CMSimple $output.= GBlist();#or
#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).
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.
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
#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.
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!
The GBook plugin is individually adaptable to the desired
functionality and layout by several settings.
The following settings are available:
|ask for email:|
|ask for website:|
|ask for title:|
|items per page:|
|num of pages:|
|spam words:||old, please don not use any longer|
|show ip addr:|
|store ip addr:|
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.
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.
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.
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
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.
This option allows to switch on and off the functionality of creating
new guestbook entries. Possible values for this field are True
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.
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
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|
|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|