Home | Imprint | Sitemap
You are here: Home » Tips & Tricks » Guestbook

Guestbook

How do I add a guestbook to my site?

A lot of Web to Date Users have problems to add a working guestbook to there site, however that isn't difficult at all. You only need to follow these steps:

  • Make een new module with the pluginfunction Guestbook.
  • In the option: Configure guestbook you can choose how many messages per pages, if you want the www address of the person that submits your guestbook to show yes or no, if you want to show the message immidiately or after your agreement etc.
  • On the languagetab I suppose you don't have to make changes as your standard language will be English. If you use any other language you can make changes there.
  • Since Web to Date 5.0 you have the possibility to protect you guestbook from receiving spam, by a so called Captcha, that means that the person that writes into your guestbook will see a securitycode before submitting the message and will be obligated to repeat this securitycode manually.
  • If you did all this and you have your website finished you can build your website. But wait with uploading it. Did you already upload, no problem, but then you have to add something manually.

If you didn't upload your website put Web to Date down with the - on top of the screen. After that you open the directory where your build website is situated. Now go to the folder where your guestbook is. In this folder you will see 2 files and some smilies. The file you need for example is named w2dgbf896076ef82871543750653ef7aec85c.php (In your folder the file is called different after w2dgb!) Open this file with notepad. Immidiately after opening you will see this:

Code

<?php

$filename="../assets/plugindata/w2dgbf896076ef82871543750653ef7aec85c.dat";

if (getVars("action")=="save") {

Now select the textpart after plugindata/. That means start from W until dat but without the closing sign ". When the selected part is blue you can press ctrl+C. The blue part is now copied. After that click in your notepadscreen on FILE and after that on NEW. This will show you an empty screen. Leave it like that, this means you don't have to fill in anything. Click again on FILE and after that on SAVE AS. In the field Save in you go to the folder where you build website is situated and go there to the folder ASSETS. In the Assetsfolder is another folder called PLUGINDATA. If there is no such folder create one but please do it lowercase! Now paste the blue copied part in the field after Filename. For example you see now: w2dgbf896076ef82871543750653ef7aec85c.dat. After you checked that you didn't copy the closingsign " by accident you can save the new file. Otherwise you remove the closingsign " first and then save the file. If you now check the directory and the folder where your build website is situated and you check the assetsfolder than there is also a folder plugindata and in that folder you will find the dat-file.

Now you can upload your website. With Web to Date or with a separate FTP-Programm, just as you like. If you already uploaded your website before you did above mentioned steps, the only thing you have to do is upload the folder assets with a separate FTP-Programm to your webserver.

And whether you checked the CHMOD box in Web to Date or not, I always advise you, if you upload with Web to Date, to check with a separate FTP-Programm if the CHMOD Properties of the dat-file are oke. They have to be 766 or 777. If not change them!

Now you have a working guestbook on you website.