Welcome to Dagon Design. In addition to free scripts, WordPress plugins, and articles, we offer a variety of services including custom theme design, plugin creation, and PHP scripting. Contact me for more information.

Version 2.45   Updated Wednesday, July 1st, 2009 at 7:19pm

Secure Guestbook Script with Image Verification

This is the latest version of my secure PHP guestbook script. A lot of new features have been added since the last release including support for entry moderation, separate configuration and language files, improved code and session handling, and much more. The purpose of this script is to provide an easy to use, yet secure guestbook which features image verification to keep out spam bots as well as other security measures. It uses a flat-file storage method so that it will work for users without database access and contains many other features not found in most standard guestbook scripts.

Download

  If you have found this page useful, please consider donating. Thanks!

Included Languages

The script current includes files for the following languages: English, Dutch, Formal German, French, Italian, Norwegian, Portuguese, Romanian, Spanish, Swedish, Turkish

See it in action

I have a demo guestbook here: Demo guestbook

Installation

  • Download ddgb.zip and uncompress
  • Upload all files into a directory of your choosing
  • Give write-access to /dat/.entries and /dat/.banlist (chmod 666 or 777)
  • Configure the options in config.php
  • Run the script by calling ddgb.php

Changelog

  • 07-01-09 – Not a version update, but the spanish language file has been updated, and the missing header.php file (when used in stand-alone mode) has been restored.
  • 02-22-09 v2.45 – Several new features from contributor Hans Nordhaug, including: alt attributes added for valid xhtml, increased spam protection (honeypot field), made page navigation translateable, various visual changes.
  • 07-27-07 Vv2.44 – PHP short-tag bug fixed. Italian language file added.
  • 06-20-07 v2.43 – File locking feature is now an option (disabled by default), instead of automatically enabled
  • 06-13-07 v2.42 – Security update
  • 04-04-07 – Spanish language file has been added
  • 03-24-07 – Romanian language file has been added
  • 01-14-07 v2.41 – Fixed bug related to display of entries
  • 11-01-06 v2.4 – Moderation/display issues 100% resolved – Smilies are now clickable – Various bug fixes
  • 10-22-06 v2.31 – Further improvements to the session code – Should work better on Windows servers now
  • 10-21-06 v2.3 – Fixed bug with display of entries when moderating – Improved session code – Dutch language file has been added
  • 10-17-06 – Not a version update – Swedish and Portuguese language files have been added
  • 09-07-06 v2.2 – Bug fixed (verification problems in non-standalone mode)
  • 09-01-06 v2.1 – Various minor fixes – Added Norwegian language file
  • 08-24-06 v2.0 – This is a very big update. Because of this, almost all of this page has been rewritten. Unfortunately, previous data files will not work with this release because of the new data structure. The advantage is that new fields can be added in the future without loosing the old data! The new data file is also simple enough that you should be able to manually add your old entries into it. New features include:
    - Separate config and language files
    - Option to require manual approval/moderation of entries
    - Improved session handling (no more separate verification file!)
    - Option to run as stand-alone script, or through another page
    - Secure data file storage method already implemented
    - Now supports basic smilies
    - Can disable image verification if not supported
    - New option to protect email addresses
    - And more – read below
  • 05-17-06 – Not a version update, but I added instructions on making the guestbook even more secure.
  • 05-03-06 v1.31 – Fixed a bug when editing entries – Name, website, and email fields can now be modified on existing entries.
  • 03-16-06 v1.3 – Revised layout a tiny bit – Now checks for GD support and gives error if missing – Adds http:// prefix if not entered in web address – IP addresses of posters shown in admin box – Can now ban posters by IP (removes all of their posts too) – Added confirmation before deleting and banning
  • 02-16-06 v1.2 – Added option to allow or disallow html in posts – Fixed a magic quotes bug
  • 02-06-06 v1.1 – Added option to prevent search engine robots from following links posted by visitors (using the nofollow tag)
  • 02-02-06 v1.0 – First public release!

Some of the features

  • Flat-file storage with precautions in place to prevent data files from being viewed.
  • Various security measures to prevent abuse.
  • Separate config and language files.
  • Image verification support (can be disabled if your server does not support the GD library).
  • Administrative interface to edit and delete entries, ban IPs (and automatically remove entries from that IP), and an option to enable manual approval of entries.
  • Implements ‘nofol’ tag to prevent search engine spiders from following links in entries (discourages some spammers).
  • HTML in posts disabled by default – you can enable this if you like, but it is a big risk.
  • Option to run as stand-alone script or included through another page.
  • Smilies are supported (either enter in the code, or click to add!)

Notes

If you want to include this script inside another page, be sure to set the proper ’stand alone’ setting in the config file. You may also need to include the session_start function at the very top of the PHP file you are including the script from:

<?php session_start(); ?>

Then just include the script in your file like this:

<?php include 'ddgb.php'; ?>

Overview of the options

These options can be set in config.php file

Path to ddgb.php

This needs to be set to the full url of the ddgb.php file on your server. Example: http://www.yoursite.com/ddgb/ddgb.php

Path to ddgb-verify.php

This needs to be set to the full url of the ddgb-verify.php file on your server. Example: http://www.yoursite.com/ddgb/ddgb-verify.php

Locale Setting

This allows you to choose the language file the script will use. The current version includes English and Formal German. You can also create your own by using one of the existing files as a template. Just set this option to the name of the file (without the .php) that you want to use.

Administrator Password

This is the password used to perform the administrative functions – editing, deleting, banning, and moderating. Be sure to change the default password.

Administrator Email

Used for new entry notification, if the feature is enabled.

Send Notifications of New Entries

If enabled, admin will receive email for all new entries.

Run as Stand-Alone Script

If you plan to run this script by itself, leave this option set to TRUE. If you want to include it in another page, set it to FALSE, and take a look at the information above under the ‘Notes’ section.

Title Tag

This is the title of the page when the script is used in stand-alone mode.

Path to Data File

This is the location of the data file used to store entries. Be sure to give it write-access (chmod 666 or 777).

Path to Ban File

This is the location of the data file used to store banned IPs. Be sure to give it write-access (chmod 666 or 777).

Requre Manually Entry Approval

If enabled, this will require that the admin manually approve posts. To do this, simply log in using the admin link and you will see all of the posts (including the ones not yet approved). Just click the appropriate link to approve them, or delete them instead if you wish.

Enable Smiles

If enabled, this option will convert text-smilies into images. It will also show the available smilies on the ‘new entry’ page.

Show Introduction Text

This is an optional intro which can be shown above the guestbook. The text it uses can be found in the language file you are using. This is disabled by default.

Disable Image Verification

If this script tells you that your server does not support image verification because you do not have access to the GD library, or you simply wish to disable image verification, set this to TRUE.

Image Verification Colors

This allows you to easily change the colors of the verification image. You can enter either 3 or 6 character hex color codes.

Path to CSS File

This is the location of the script’s CSS file, which controls the look of the guestbook.

Entries Per Page

Determines how many entries will be shown on each page. If there are more entries than this number, the guestbook will be split up into multiple pages.

Allow HTML in Messages

This option is dangerous because it allows visitors to enter HTML, which is a big security risk. It is disabled by default.

Protect Email Addresses

With this option enabled, email addresses will be shown in the following format instead of as traditional links: someone [at] somewhere [dot] net.

Enable File Locking

File locking is not supported by all servers. If you would like to use this feature, set this to TRUE.

Email Notification of Posts

For those of you who would like to receive email notification anytime someone adds a new entry, here is a simple mod. First, find this line in the main script file (ddgb.php):

echo '<p>' . _ADDED_THX . '</p>';

Right after it, add the following:

mail('user@domain.com', 'New Guestbook Entry', 'A New Guestbook Entry was added!');

Be sure to set your email address. The second parameter is the subject, and the third parameter is the message.

You can also use the following variables for your email’s subject or message: $fm_name $fm_website $fm_email $fm_location $fm_message. For example:

mail('user@domain.com', 'New Guestbook Entry', 'A New Guestbook Entry was added by' . $fm_name);

If this method does not work for you, it may have to do with the way your server is configured. Some hosts require that you manually configure the sendmail parameters for the PHP mail function to work properly. If you think this might be the case, you can try the following code instead:

$to = "user@domain.com";
$from = "user@domain.com";
$subject = "New Guestbook Entry";
$body = "A new guestbook entry has been added to your site.";
ini_set("SMTP","localhost");
ini_set("sendmail_from",$from);
$result = mail($to, $subject, $body, "From: $from");

Changing the timezone

If you would like to change the timezone setting for the script, edit config.php and find the following line:

// *** START OF OPTIONS ***

After it, add the following:

date_default_timezone_set('TIMEZONE');

Where TIMEZONE is a valid timezone identifier.

Troubleshooting

If you are having trouble getting the verification code to display, one thing to try is setting the $verify_path option to the filename of the verfication file, instead of the full URL to it. Example:

$verify_path = "ddgb-verify.php";
  1. 614
    Kevin V L

    Is it possible to enter several different emails so that multiple admins can be notified when someone posts an entry? If not, how can this be done? Thanks.

  2. Just want to say what a great contact form this is. Been running it for years, both the stand alone static version and the Wordpress version, and still no spam has leaked through (other than the stuff manually typed in). I did have issues more recently installing in the new Wordpress blog though, all it was that the form dropped down to below the end of the right sidebar. I could not work out how to reduce the width of the firm. Changed table widths but no joy. If anyone else has had this problem and knows the fix, let me know! Cheers, Jon.

  3. Use coupon code GET15FREE on billing page and safe 15 %
    all information about cialis
    and hypertension cialis

    Lisa Diop

  4. Siren you were very lucky to have a professor that good. ,

  5. 610
    Jelle

    Answer on message 608:

    Problem has been solved!
    The errors doesn’t appear and the message is posted.

  6. I am having trouble getting my captcha to generate a code. I tried the troubleshooter but still nothing.

    Any ideas?

  7. 608
    Jelle

    Hello

    When i attempt to place a message, i get the following errors:

    Warning: fopen(dat/.entries): failed to open stream: Toegang geweigerd in /www/knikkerbaan/html/joomla/ddgb/ddgb.php on line 564

    Warning: flock(): supplied argument is not a valid stream resource in /www/knikkerbaan/html/joomla/ddgb/ddgb.php on line 162
    Fout – bestand kon niet gelocked worden!
    Warning: fclose(): supplied argument is not a valid stream resource in /www/knikkerbaan/html/joomla/ddgb/ddgb.php on line 606

    Please help me…

  8. Hello, I will try to integrate with my system

  9. ?????? ???????????? ?????? ?? ????????? ????? ????????? ??????????????
    ??????:
    ABK (??????), ACIF, ASCOT , AURELIA CERAMICHE, BAYKER, C.A.P.R.I., C.I.R.
    Campani, CASALGRANDE PADANA, CENTURY, Ceramica MAGICA, CERAMICHE DI SIENA
    CERAMICHE RICCHETTI, CERDOMUS, CERMED, COLLI, CRIS, DEL CONCA, DOM, EDILCUOGHI
    Ergon (??????), FAP CERAMICHE, GIARDINI DI PIETRA, Gres di Montevecchio, IMOKER
    Iris, Kis Ceramiche, LORD, MAJOR?A, Mariner, MARMI E GRANITI, MONOCIBEC, NAXOS
    NovaBell, PHORMA, PI.SA, PIEMME, POLIS, RICCHETTI, Saicis, SERENISSIMA, Settecento
    SINTESI, UNICOM * STARKER, VALPANARO CANDIA, VITREX, VIVA CERAMICA.
    ???????:
    ALCOR S.L., APARICI PORCELANICO, APE, Azahar, AZTECA, Azulejos Mallol, AZULEJOS SANCHIS,
    Azulindus & Marti, BALDOCER, Benadresa, BESTILE, CERACASA, CERAMICALCORA, Ceranosa,
    Cerpa, Cerypsa, Cicogres, CIFRE CERAMICA, COLORKER, CRISTACER, Durstone, Exagres, FAN PORCELANICO,
    FAN PORCELANICO PAVIMENTO, FANAL, GARO GRES, Geotiles, Gomez, Gres Cid, Gres de Aragon,
    Gresmanc, GRESPANIA, HISPANIA, Hispano Azul , Inalco, Italgres, Kerlife Ceramicas, L ANTIC COLONIAL,
    La Platera, MAYOR, METROPOL, MOSAVIT, NAVARTI, OSET, Pamesa, PLAZA, Porcelanite, PORCELANITE DOS (PGC),
    PORCELANOSA, RO?ERSA, Salcamar, SANCHIS, Sierra Gres, TAULELL, TESANY, Undefa
    VENIS.
    ????????:
    AGROB, BOIZENBURG, ENGERS, Feldhaus, GROHN, JASBA, KORZILIUS, STEULER
    Stroher
    ??????:
    Kerama Marazzi (??????)
    ???????? ?? http://ceradom.ru ? ???????? ?? ????? ??????? ????? ? ?????? ??????.

  10. Vielen Dank für diesen Vorschlag. Ich schicke Dir einen Gruß aus Deutschland.

    Thanks for the suggestion. I send you regards from Germany.

  11. ?????????? ????????????? ???????????- ?????? ?? ??????? ????? ????? ????? ?????? ?? ??????? ??????, ?????? ????????????? ????? ??? ????????.
    ??? ????? ?????? ???????? ?????? ? ?????? ???? ????????? ??????. ??? ????????? ?????? ??????? ??????? ???????????? ???????????. ??????? ????????? ? ????????????, ??????? ?????????? ????????, ?????? ??????????.
    ? ?????? ?????????? ????? ????? ?????? ?? ???? ??????? ? ???????? ??????? ????? ?? ???????????? ? ???? ???????. ?? ?????? ???????? ???????? ???????? ???????, ?????? ??? ?????? ??????? ????????? ?????????. ???????????? ????????????? ????? ? ????????. ?????????? ???????????.

  12. 602
    Jasperinho

    Hi,
    I may have discovered a bug in the script:
    When you log on as an administrator to edit an older entry and you go back to the main screen to post a new message, this message is not posted as a new message, but will REPLACE the older entry that you wanted to edit earlier. Only if you completely close your browser, this doesn’t happen. This ALSO HAPPENS when you sign out as administrator first.
    Hope this is something that can be fixed in a future release. The guest book is great, but I just wanted to share this :)
    Cheers!

  13. ?????? ????? ???? ????? ????? ? ?? ?? ????????????? ????? ????? ???? ??????????? ????? ???? ??? ????? ????? ??? ????? ?????, ??????? ???? ??? ????? ??????? ? ????? ?????????? ???? =)

  14. ???????? XBOX 360 ? ???????? ?? 20 ????? ??? ????? (??? ???????) ?????? ?????? ???????? ,
    ???????? ?????? ??????? ? ???????? ,????????? ???????? ??????. ???? ? ??????? ? ?? ?????.
    patatarinov@yandex.ru ??? ??????? 89101948382
    ??? ???? patatarinov.ru ?? ????? ?? ??????? ????? ??????? ? ??????? ???????? ?????? ?? ???????? ??? ???????????? ??????.

  15. ???????? XBOX 360 ? ???????? ?? 20 ????? ??? ????? (??? ???????) ?????? ?????? ???????? ,
    ???????? ?????? ??????? ? ???????? ,????????? ???????? ??????. ???? ? ??????? ? ?? ?????.
    patatarinov@yandex.ru ??? ??????? 89101948382
    ??? ???? patatarinov.ru ?? ????? ?? ??????? ????? ??????? ? ??????? ???????? ?????? ?? ???????? ??? ???????????? ??????.

  16. ???????????? ????????? ?????????, ??????? ????? ??????? ????? ?????? ??????, ? ??????? ? ?????????? ????????? ????????? ?????? ?? ???? ??? ??????????? ?????? ????? ????????? ???????? ????? ??? ??? ?????????? ???? ??? ????? ? ?? ?????? ?????? ?????? ?????? ????? , ???? ?? ??? ??? ????? ???????????? ??????. ?????? ???? ?? ??? ? ? ??? ?????? ????? ?? ?????? ???? ?? ???????????! ???? ????? ? ????????? ??? ???????? ? ?????????? ????????? ;)

  17. ???????????? ????????? ?????????, ??????? ????? ??????? ????? ?????? ??????, ? ??????? ? ?????????? ????????? ????????? ?????? ?? ???? ??? ??????????? ?????? ????? ????????? ???????? ????? ??? ??? ?????????? ???? ??? ????? ? ?? ?????? ?????? ?????? ?????? ????? , ???? ?? ??? ??? ????? ???????????? ??????. ?????? ???? ?? ??? ? ? ??? ?????? ????? ?? ?????? ???? ?? ???????????! ???? ????? ? ????????? ??? ???????? ? ?????????? ????????? ;)

  18. ???????????? ????????? ?????????, ??????? ????? ??????? ????? ?????? ??????, ? ??????? ? ?????????? ????????? ????????? ?????? ?? ???? ??? ??????????? ?????? ????? ????????? ???????? ????? ??? ??? ?????????? ???? ??? ????? ? ?? ?????? ?????? ?????? ?????? ????? , ???? ?? ??? ??? ????? ???????????? ??????. ?????? ???? ?? ??? ? ? ??? ?????? ????? ?? ?????? ???? ?? ???????????! ???? ????? ? ????????? ??? ???????? ? ?????????? ????????? ;)

  19. ???????????? ????????? ?????????, ??????? ????? ??????? ????? ?????? ??????, ? ??????? ? ?????????? ????????? ????????? ?????? ?? ???? ??? ??????????? ?????? ????? ????????? ???????? ????? ??? ??? ?????????? ???? ??? ????? ? ?? ?????? ?????? ?????? ?????? ????? , ???? ?? ??? ??? ????? ???????????? ??????. ?????? ???? ?? ??? ? ? ??? ?????? ????? ?? ?????? ???? ?? ???????????! ???? ????? ? ????????? ??? ???????? ? ?????????? ????????? ;)

  20. Awesome guestbook so helpful!

    One minor bug: triple hashes aren’t escaped.

  21. ?????, ??? ??????? ???????? ????????????? ? ???? ?? ???? ? ?????????? ???? ??? ?????????? ????????? ????? ?? ??????.
    ??? ??????? ? ????? ???? ?????? ?????????? ????, ?? ??? ???????????? ???? ???????.
    ? ??? ???? ?????????? ???????????? ? ?? ????????.

    ” ?????????? ?????? ?? ??????????? ? ???????? ??????? ???????????? (?????, ?????????? ????, ???? ????? ??-2?, ??-3), ?? ????????????????, ????????? ?????? ? ???????????? ?????? ??? (??? ???????? ?????????). ?????? ??????????? ? ??????????? ????????? ???-3, ???-5. ?????????????? ?????? ? ??????? ???????.

    ????????? ?? ????? avk.ucoz.ua/index/0-2

    ??????? ?? ???? ????

  22. 592
    Andrew

    If you want to update your guestbook with the verification but still keep your entries (as I did), I found that if you upload all the files in the zip folder EXCEPT the dat folder, the guestbook will work and your entries (and bans) will remain. Up to now I have had no problems.

  23. 591
    Bvdwielen

    The problem I have is that within IE (V7 & V8) a large white box is displayed with black text in it. In all other browsers the white box is gone, but also the boxes which should be there to show the entered text in the guestbook… Somebody?

  24. 590
    Bvdwielen

    What I did was within an iFrame:

    Also I adjusted config.php according to the instructions. For instance “$standalone = FALSE;” is mandatry to get things going this way.

  25. 589
    Oliver

    Is it possible to have the guestbook displayed ‘within’ a .html page? I’ve followed all instructions, but can’t get it working, so poss I’m misunderstanding the notes about “If you want to include this script inside another page…”
    Ideally, I’d like the guestbook to appear within a .html page (to keep consistent with webpage template etc) or this not possible? Does the guestbook have to run/be displayed as .php file? Hope someone can help, thanks.

  26. 588
    Jasper

    Just FYI: the following sentence is missing in the Dutch language file:

    DEFINE(’_PAGES_OF_TOTAL’,'Pagina %page% van %total_pages%’);

  27. 587
    Jonatan S Silva

    It would like that it was possible to have the option for not showing site and email in the comments, and to show only for the admin.

    Thank you and congratulations for the script!

  28. I’m quite happy with the guestbook except some, I presume bots, can get past your image verification. Most of them come from IP address 94.x.x.x (x being any number of course). 94.x.x.x doesn’t resolve into any country I’m aware of. Can I ban the entire range of IP addresses beginning 94. ??

  29. 584
    Maxicatimus

    Hi
    I was looking for the admin password.
    I used my FTP app to look into the folder and found a file called “instructions.html”
    so I downloaded it and it contained my password.
    I then added “instructions.html” to the end of the full web address of the guestbook and it came up.
    it had not appeared prior to that, still, problem solved
    Thanks

  30. 583
    Maxicatimus

    Hi
    Excuse my ignorance but I cant seem to find the default password so I access the admin page and change it.
    Any help would be appreciated.
    Thanks

  31. 580
    Leandro G.

    First, congratulations on ‘Guestbook’, excellent.
    I wonder if you can change the code to save the comments in a database (MySQL).
    How is the procedure?

    Thank you, congratulations!

  32. Hi, I like to have the guestbook as one of my pages. I’m thinking of naming the Guestbook as “Share Your Remedies” and inviting any visitors to leave their remedies for reference. However, I have limited knowledge in using your script. Could you be so kind to send me a clearer step-by-step instruction to instalol the script? When you say “run the script”, what’s that refering to? Which folder should I upload the files – WP Plugins, or Includes, or a new directories in Public_html? Please advise. Thank you!

  33. ThnkS.

  34. Thanks Webmaster.

  35. New copy of the script uploaded

    The Spanish language file has been updated, and the missing header.php has been restored in the zip file.

    A troubleshooting section has also been added to the bottom of the page, which explains a commonly used method to fix the issue of the verification code not appearing. It seems to work for many users, depending on your server configuration.

    Enjoy!

  36. 575
    Rique

    I’ve been using this gb for a couple of years. Recently, I’ve noticed that I have spammed or hacked entries waiting to be approved. Anyone else experiencing this? They are even on the test site here. Can this be prevented?

  37. 574
    Andrew

    Hi Admin,

    The header.php is missing from the current download, consequently I get an error on line 38.
    Any help would be appreciated.

    Regards
    Andrew

  38. 573
    asundrus

    Hi.

    How would you go about making a redirect after submiting an entry in the guestbook?

  39. To everyone who is having a hard time with the image verification, what I did and worked like a charm was instead of writing the whole path in the config file, I just wrote:

    Enter the _full_ url to the ddgb-verify.php file.

    $verify_path = “ddgb-verify.php”;

    and voila!!
    that’s all.

    good luck!

  40. BAN WORDS .. more ..

    In addition to Post # 572, you can use the following:

    After the lines,

    // Process smiles
    function process_smiles($text) {

    add,

    $banwords = array(”worda”,”wordb”,”wordc”,”wordz”,”http”,”www”,”viagra”);

    and before the following line,

    return $text;

    add the line,

    $text = str_replace($banwords, ‘*****’, $text);

    You can add any number of words to the ‘array’.

    Namaste

  41. BAN WORDS

    I was looking for a place to add banned words in the script (ddgb.php) and when I did Not find (was Not able to locate, if it exists), I edited ddgb.php as follows:

    Scroll down to,
    // Process smiles

    function process_smiles($text) {

    // Edited by Hans Nordhaug 19.11.2007: Added alt text

    and, below the line for :o ops
    $text = str_replace(’:oops:’, ”, $text);

    add something like,

    $text = str_replace(’fuck’, ‘****’, $text);
    $text = str_replace(’asshole’, ‘*******’, $text);
    $text = str_replace(’ass hole’, ‘*** ****’, $text);

    add more lines as per requirement.

    There may be a simpler method, but I could think of only this.

    Namaste

  42. 569
    drin

    The verification code is showing on Firefox 3 and not on IE 6, 7 or 8 What is going on??? and where is header.php??

  43. 568
    Drew

    Where is Header.php??? I keep getting an error asking for header.php file.

  44. I’m brand new to php and style sheets. It took me two days to get my guestbook working. It’s brilliant! Thanks a million.

  45. 566
    deepimage

    I am having a problem with the blank captcha image like some others has this been solved by anyone?

  46. 565
    Cameron

    Thanks for the script :) I’ve been using it for over a year now with no problems at all. Recently I’ve moved it to a new hosting site and I’m having the same problem as several others here are. The .entries file has all of the posts but it displays ‘No entries yet..’ I’ve tried all of the solutions posted here and nothing works. If I log in as admin I see all of the posts but if I attempt to edit them the fields are all blank. I’ve tried an unaltered script, uploading in both binary and ascii and everything else mentioned here. Is there a setting on my host site I could check? Please help if you can.

  47. 564
    Bernard

    Great site! Keep up the good work!

  48. where’s header.php?

  49. 562
    Alex

    if disable verification code, in IE7 you can not login as administrator. Someone has this problem? in firefox works good. o pbably I made a mistake omewhere. I iplemented a different captcha in the code http://www.phpcaptcha.org. works beter, no cross browsers incompatibilities.

  50. 561
    Bob

    It worked for a bit now the verification code is blank in both post message and login, not working on IE, Firefox Google Chrome or Opera.

  51. thanks

  52. 559
    Kurt

    Hello, I’ve been trying to get the script to work, When I go to make an entry, it says “Entry Added” but then nothing gets posted. I’ve been trying to find a solution in the comments, but I don’t have time to look through them all. Can you help me? Thanks for your time.

    Kurt

  53. The verification does not show up in IE8– Firefox 3.07 no issues

  54. 557
    Alex

    Also is the zip file is missing the header.php file

  55. 556
    Alex

    the verification code is not showing in Firefox 3. It is showing in IE7.

  56. 555
    Richard

    back again.
    Admin, I’m quite lost here.
    I’ve uploaded the script to test it out and it would appear the verification code is simply not working.
    I know gd library works on the server since other scripts don’t have this problem.

    But with this, all I see is a light blue image.
    But no code in it.
    Maybe I’m missing something?

    Have a look : http://www.swhfam.com/richard/guestbook/ddgb.php

  57. 554
    Richard

    lol talk about bad timing
    I wrote that comment just after you updated it.
    Thanks for the update Admin!
    Now lets see if I can give my site a guestbook.

    Also, thanks a lot for sharing this script!

  58. The file has been re-uploaded

    The verification file was missing in the last release.

    Also, in the past the entries and banlist files were not included – you had to create them yourself on the server. I have now included them, but you still have to give them write permissions.

  59. 552
    Michael

    The zip file appears to be missing several files. ddgb-verify.php, /dat/.entries and /dat/.banlist.

  60. 551
    dave

    hi,
    am i missing something?
    the zip file with all files does not include the file ddgb-verify.php.??
    please advise. thank you. Dave

  61. 550
    backyard

    Changing the Timezone info does not work. I dont know if you need to have other things with it but it gives an error when you do it the way you have it.

  62. Hi installed 7.45 and lost image verify and persons name in the guestbook, can anyone help!

  63. Ok I sound like such a newbie here that i am ashamed.. but.. the default admin password.. where do I find out what this is?? There was no mention of a password at all when I set the guestbook at all

  64. Hi,

    I had this script successfully running for quite some time now. I updated the look of our website and now the image verification isn’t work. Help?

    Thanks,
    Pam

  65. 546
    Fred

    Hey, I appriciate alot of you nice work here, and I also like the GB. Is there any chance you could write some guide, info or FAQ on how to integrate the GB onto a Wordpress page? I’ve skimmed through most of the comments here without finding any soloution. Thanks for the great work!

  66. Thanks Lyn, I’ll give that a go.

    In reply to
    545
    Janes

    If you want to renable IP addresses, you need to delete them from the file which holds the banned IPs. It is where you installed the guestbook\dat\.banlist make sure you edit it with a text editor and don’t change the file name or extension.

  67. 544
    Janes

    Love the guestbook. many thanks. One quick question though. Should it become necessary, how do I UN-BAN an IP that I previously banned? Thanks!

  68. 543
    lyn

    In reply to
    543
    Elif
    11-28-08 8:26AM

    What I did and it worked was put this in the header.php file

    Adjust your width to what you want

    So it will look like this in the bottom of your header.php file

    Then I put this at the bottom of the ddgb.php file

    It will look like this at the bottom

    } // end of posts

    ?>

    <?php

    // Show footer if running stand-alone
    if ($standalone) {
    echo “\n”;
    }

    ?>

    I wanted mine to be small in width to iframe it
    in and the text went pass the border, now it don’t.

  69. HI

    I wonder why it is not possible to delete more than one message at a time. We’ve had problems for a while with a lot of spam-messages. Page upon page and it takes so much time to delete them one by one.

  70. 541
    Nikki

    I would like to use this guestbook for a school website (children will be the main users). I don’t want children to enter their email addresses ie I want to remove the option to enter your email address (children tend to enter this even if you tell them it’s optional). Is there a way of doing this?

  71. 540
    Elif

    Hi, your guestbook works great. But I have one issue with it… if people write long words or put things like zzzzzzzzzzzzzzzzzzzzzz then it expands the table and the layout of the site is spoiled. I am new to PHP but have found ways to wrap words or to set a max word length however I can’t figure out where to put these in your script. Would you be able to help and point me in the right direction please I’ve already spent about 5 hours working on it but as I say I’m very new to PHP… Many thanks!

  72. 539
    Nathalie Van Turnhout

    How to open the .entries file?
    To put my old guestbook entries into the new guestbook, I need to change the timestamps in the .entries file. I don’t seem to find a program that can open that file though … Any suggestions?
    By the way, the script works great, even for a newbie like me!

  73. 538
    Craig

    I’ve got it installed and it works well – well almost. On my mac I can see the verify image but when loaded up on a Windows machine the box is there but no characters in the image verification box.

    Tried multiple windows machines but they don’t get any characters ?

    It seems lots of people are having the same problem – is there a fix ? I’ve tried putting in the full file name instead of the verify option but that didn’t make a difference.

    ??

  74. 537
    BazRat

    If you find you have lost all your entries after editing the .entries file, make sure you are transfering the file in binary and not ASCII. Transferring the file via ASCII corrupts the character returns in the file!!!!

  75. How does one get to moderate the entries?
    The script doesn’t send it to my email address and there’s no indication in the admin panel that someone new has just registered?

  76. WhenI installed your script it seemed to work just fine until this popped up:

    Warning: Unknown(): Your script possibly relies on a session side-effect which existed until PHP 4.2.3. Please be advised that the session extension does not consider global variables as a source of data, unless register_globals is enabled. You can disable this functionality and this warning by setting session.bug_compat_42 or session.bug_compat_warn to off, respectively. in Unknown on line 0

    What is this and how do I correct this issue?
    Thank you.

  77. This is an optional intro which can be shown above the guestbook. The text it uses can be found in the language file you are using. This is disabled by default.

  78. 533
    bryan

    thanks for this script – plugged right into my website with very little effort! perfect!

  79. Geld verdienen mit ebay
    Wollen sie wirklich Geld verdienen?! Dann wartet dieses Angebot auf sie!
    Ich biete ein fertiges Projekt Ebay Verdienst Projekt Mit dieser Seite konnen sie wirklich viel
    Geld verdienen
    Einfacher Weg zum Inhaber/ zur Inhaberin einer lukrativen Internet-Seite,
    die von alleine ?goldene Munzen? pragt! Darf ich Ihnen dabei behilflich sein?
    Wussten Sie schon, dass der Inhaber der eBay-Partner-Seite (Ihre Internet-Seite
    mit eBay-Werbung) bei jedem Aufruf dieser 18 Cent einstreicht?!
    Schon 1000 Aufrufe ergeben satte 150 Euro! Nicht schlecht, oder? Dazu kommen
    noch ganz sicher Neuanmeldungen (je 5 Euro), Gebote (je bis zu 30 Cent), Sofortkaufe
    (je bis zu 40Cent). Mehr: http://mitebaygeldverdienen.de.tt/

  80. 531
    Jordy

    Verry verry nice script !
    Thanks allot !

  81. i always get this message after submitting a comments. I dont know how to correct it! PHP Notice: Undefined offset: 2 in C:\Domains\tanpuitu.org\wwwroot\ddgb\ddgb.php on line 1063

  82. Hi,

    I’m quite happy with your guestbook, but I’m trying to change the width of the tables to match all the tables at my site (700 pixels) … I’m not sure how to do this, could you help me out, please?

    Yours,

    Niels.

  83. Hi tried changing the text for the guestbook and changed in the and changed false to true in the config.php but keep getting error when I publish the changes.
    Warning: session_start() [function.session-start]: Cannot send session cache limiter – headers already sent (output started at /home/sites/pearlyplacewesties.co.uk/public_html/guestbook/config.php:1) in /home/sites/pearlyplacewesties.co.uk/public_html/guestbook/config.php on line 208
    That is the error when I load the guest book.
    Any Hints
    Regards

    Carol

  84. Needed to try it out before embarking on the trip

  85. 526
    rob

    Is there any way to transfer old entries to the new version??

  86. 525
    olly

    Hey i’ve been using your script for a while with no problems. I recently had a disturbing entry in my guestbook and the only way i could remove it was manually doing it via the .entries in the dat folder. However, now i’ve removed that the page where it displays the guestbook says there are no messages yet there are messages in the .entries file?

  87. great piece of code and it’s nice and easy to use and install. Thanks for sharing :)

  88. i have a question how can i change the background?
    i need an images as my background so it can fit in my inline frame with all pages with the same background!
    thnx
    karo

  89. 522
    Addy

    For all who have problems with disappearing entries when editing / restoring the .entries file:

    Delete the session cookies from you browser and reload the guestbook!

  90. I’m not sure but for some reason my PC will not show the security numbers. I emailed the tech hosting people and they said they could see it just fine and that GD support was on. It was visible for a while and just vanished? I get a green background but no red letters? I tried rebooting but no luck? http://hilobandb.com/guestzz/ddgb.php

  91. 520
    Henrik

    And again!

    Doesn’t anybody know how to solve this?

    I want to have “read” and “write” pages in the same page! Is this possible? I mean the comments are under the inputfields where you type your text

    Pleeease say something out there…

    /Henrik

  92. OK, SOLVED…

    I use my guestbook.php script called from a html file, i.e. not ’standalone’ (see relevant config.php option).

    To get the verify code image to display I had to directly reference guestbook-verify.php & NOT use the $verify-path. Not as ‘elegant’, but it worked. So in guestbook.php, track down the two instances of $verify_path. Then change that bit inside the quotes

    From: …… src=”" …..
    To: …… src=”guestbook-verify.php” …..

    Oh & if in case you’re wondering why NOTHING works in non-standalone mode check your .htaccess file in www root. Ensure it contains the line:

    AddType application/x-httpd-php .php .htm

    (this is a directive to say that running PHP from within HTML is OK, otherwise it’ll do naff-all).

    And ALSO, if your wondering WHERE that elusive .htaccess file is, try turning ON hidden files in your FTP program, which was set to hide hidden files on my BulletProof_FTP package by default!

    Arrrrrrrrrgggggggggggghhhhhhhhhhhh!!!

    Hope that saves someone HOURS of pratting about (guess what I’ve been doing).

    Andy

  93. OK, weirdness here…..

    The verify code is working…. Just not on the page (if that makes sense). If I run JUST the verify code by going here:
    http://www.christchurch-arts-guild.org/gstbk-verify.php

    IT WORKS! There is the image. There is the random code….
    Embedded in my webpage…..
    nah!

    Bloody weird this.

    Andy

  94. OK, great guestbook so far: dead easy(ish) to install (after suitably changing .htaccess). However, image verification does not work (I have been through all 511 posts and cannot find an answer to this). The image for the numbers does not get displayed.

    I appears that GD libraries are installed om the server. To verify this try:
    http://www.christchurch-arts-guild.org/phpinfo.php
    This little bit of code was installed by my server after I asked them if the libraries were installed and specifically the functions
    imagestring() & imagecreate().

    Any ideas on how to track this problem down please. My Guestbook IS being hacked!!!! Arrrrrrrgggghhhh

  95. 516
    Henrik

    And again!

    I want to have “read” and “write” pages in the same page! Is this possible?

    Pleeease say something out there…

    /Henrik

  96. 515
    Henrik

    Hello again everybody!

    I really want to have “post an entry” -page and all the entries in the same page. I don’t want to have the link to “post an entry” to get to the entry-page. Do you follow me??

    Has anyone out there a solution of this??

    /Millions of thx in advanced, Henrik, Sweden

  97. Just in case it helps to answer my question, the URL of my guestbook is http://www.totaalvoetbal.nl/ddgb/ddgb.php

  98. Hi there,
    I just post the guestbook to my website, but for some reason I get a blank page when I try to call the guestbook.

    I saw this issue in other posts as well, but no resolution. Can anyone help me?

    Kind regards,

    Jasper

  99. 512
    paal

    Correction :)

    Have to use www in url in the config.php file, ex. http://www.yourdomain.com
    do not use yourdomain.com

    regards

  100. 511
    paal

    Hello, there has been som trouble with the verification image. After a lot of testing I think I have got something. In the config file, we have to type the url to $verify_path and $script_path. If you use yourdomain.com here it is important that you use the same url in the browse. You can not use yourdomain.com in the config file and http://www.yourdomain.com in the browser.

    Paul Limb, when I changed http://www.asshetonbowmen.com to
    http://asshetonbowmen.com/ddgb/ddgb.php all was ok :)

    regards paal

  101. Ok Dagon. As I am going thru my guestbook manually Banning IPs one by one, I find myself very frustrated that this program cannot just show a list of every comment with a checkbox beside it and a master option to ban/delete all checked IPs / posts.

    another problem I REALLY need your help on. I consistently lose posts when I try to add posts from another Guestbook. I even got the recommended timestamp and everything, and when I view the file on my server, all of the posts are there, they just will not appear in the Guestbook.

    PLEASE Email me with help.

  102. 509
    Henrik

    Hello

    I want to have the comment-page and the entry-page in the same window! Is this posible?

    THX
    Henrik

  103. l’m looking for a guest book which text and pictures can be posted and all entries appear on the page in order for folk to contribute easily to a web page/s.
    It should preferably be free and open for anyone without too much fuss to enter the information and 580 pixels wide with picture resize to fit if too large.

  104. guestbook at http://www.asshetonbowmen.com/ddgb/ddgb.php

    Problem with verification image. The image code does not update and I get the same code every time. A14FE

    Help please!!

  105. 506
    dean

    Hi Admin,
    thank you for this great script, i tried on localhost and it work properly, but when I upload them (http://mysite.com/ddgb/ddgb.php), and I post an entry, submit, then some message came out like this :
    Warning: fopen(dat/.entries) [function.fopen]: failed to open stream: Permission denied in /home/suplem01/public_html/ddgb/ddgb.php on line 549

    Warning: fwrite(): supplied argument is not a valid stream resource in /home/suplem01/public_html/ddgb/ddgb.php on line 570

    Warning: fwrite(): supplied argument is not a valid stream resource in /home/suplem01/public_html/ddgb/ddgb.php on line 574

    Entry added. Thank You!

    Return to guestbook

    Warning: fclose(): supplied argument is not a valid stream resource in /home/suplem01/public_html/ddgb/ddgb.php on line 587

    Frankly I’m newbie, Can you help me ? Thanks.

  106. can i add a form were users can upload an image or photo with the entry ???

    HELP ME!

  107. 504
    paal

    Hi, I now use ddgb on my php nuke website and is installed as a module. Had to change all basename in ddgb.php, example:
    From:
    echo ‘«’ . _PREVIOUS . ‘   ’;

    To:
    echo ‘«’ . _PREVIOUS . ‘   ’;

    I also insterted a variable @nuke_module in the config.php

    Is it possible in future versions to insert such changes?
    I can mail the changes I have made if you wish.

    Best regards paal

  108. Hi, figured it out, 24H GMT time result, easy really:

    Edit locale language file to this for HH:MM:SS GMT date display.

    DEFINE('_FORMAT_DATE','j M Y, H:i:s ');
    DEFINE('_WRITTEN_ON_TIME','GMT');

    Thanks, will PP to you soon!
    Nev.

  109. 502
    Nev

    Hi, great script, is it possible to have the date result in 24HR time format instead of am/pm?

    Thank you!
    Nev.

  110. 501
    Conny Magnusson

    Hi,
    I wonder if it´s possible to get the Image-veryfication script as a standalone.

    And I wonder if it´s possible to make this perfekt Guestbook to work with MySql datebase.

    // Conny in Sweden

  111. Brilliant script – I had some SPAM problems. Implimenting image verification lessen the SPAM be far, but still had one or 2 spammers. This will sort me out.
    Thanx a mil.

  112. Nevermind. Found out on another site that I had to use a fulll path, including public_html etc in it. Something to consider adding to the installation file or something? A n00b like me doesn’t know that that stuff should be added aswell. When reading “path” I assume I have to fill in the subfolders etc. Not the public_html stuff with it.

    Still, the files .banlist and .entries aren’t in the zip, and yes I have “show all hidden files” on … They appear when adding an entry, so that problem is easily fixed. however not every person knows how to find that out.

    Further, great script! I’m glad I got it working since yours is the best that I found so far.

    Love,
    Mirna

  113. And yes, i DID chmod the .banlist and .entries files after they appeared. Forgot to include it into my last post.

    Love,
    Mirna

  114. I’m testing this script but I can’t get it to work to load into another site.

    I keep getting this error:

    Warning: file_get_contents() [function.file-get-contents]: Unable to access dat/.entries in /storage/mijndomein/users/035522/public/sites/www.dweilorkestheur-es.nl/gastenbuukske/ddgb.php on line 1049
    
    Warning: file_get_contents(dat/.entries) [function.file-get-contents]: failed to open stream: Onbekend bestand of map in /storage/mijndomein/users/035522/public/sites/www.dweilorkestheur-es.nl/gastenbuukske/ddgb.php on line 1049

    Also the zip file doesn’t contain any .entries and .banlist
    files. I had to post a message, to get those files appear on my FTP program.

    The script runs fine when accessing the proper url, but not when using the include. Also the guestbook contains two messages, but none show up when using it with an include.

    If anyone knows a similar script that DOES work, please let me know. I need something simple, without MYSQL and options to include it within an excisting layout. Prefered with spam filter or such.

    Thanks,
    Love,
    Mirna

  115. Hi admin,
    I use your g.book for a while now and it’s a great script. Thanks! But is it possible to get the verification code work in explorer 6?
    I tried to use the demo at yours too, with ie6 but i wasnt able to view the characters also. Is there somehow a hack for it so it work properly in da good old shit ie6? Hope so.
    Thanks

    Dave

  116. 495
    Christian

    I am trying to do the same as post 415, getting old guestbook to work with the latest version. Is the any way to do this?

  117. 494
    Phil

    I really like the way this guest book looks and would love to put it on my web site. My problem is that I am really clueless when it comes to codes, PHP, script etc. Are there any instructions available that would guide me through the installation and setup step by step?

    Thanks,

    Phil

  118. Any progress on the image verification problem? This (image box shows, verification code does not) is occurring for me in IE6 *and* FF2 now. This function worked for a few weeks when first installed – and other programs that use GD and/or capcha-like logins work on this server.

    Please don’t give up on us…

  119. Hello,
    I have installed the gest book for a French client.
    I would like to get rid of the field allowing the gests to post their website. Can you derect me to what bit of code I must take away in what file?
    Suzanne

  120. Is it possible to change how the time is displayed? I was looking and I couldn’t spot it.

  121. Scratch that, it now works.

  122. I was trying to help my friend install it because I’ve done it before, but for some reason it’s just not working. http://allthingsjovan.com/gb/index.php

    I tried a fresh install first, and nothing. I tried to copy the files from my gb, that does work, and still nothing. I just see a blank page.

  123. 488
    chrisD

    Hi i am playing with this great script after finding my old guestbook got heavily spammed with sex urls (not good at all).

    I have it working tested my GD setup thats fine. Yet i get the background verification colour but not the verification text.

    Any help would be greatly appreciated !

    Chris D

  124. 487
    Mary

    Having an issue with the time displayed. I’ve read all the posts here but I am still confused. The time shown next to the entries is 4 hours earlier than my EDT. I’ve modified the line in the script to read

    // *** START OF OPTIONS *** date_default_timezone_set(’America/Chicago’);

    and nothing happened. I tired

    // *** START OF OPTIONS *** date_default_timezone_set(’America/New_York’);

    and nothing changed. What am I doing wrong? :-) Thanks!

  125. Just testing this out. Looks interesting so far.

  126. Again, great guestbook. But the verification issues need to be resolved, otherwise it’s bombarded with spam.

  127. when I try to sign in what is the code the password is ok but verify does not work?

  128. Sorry just tried again and it is working – strange but it seems ok now thanks

    Bryn

  129. Hi – I have installed the guestbook and it worked fine only 1 slight problem – although the smilies are active when adding comments they do not appear on the actual guestbook page. Enable smiles is set to ‘TRUE’ – any ideas.

    Thanks
    Bryn

  130. Amerikanische Firma „ACG Logistics“ sucht nach Mitarbeiter in Europa fuer die Arbeit im Logistikbereich. Interessanter Job mit guter Verdienstmoeglichkeit.

    Schicken Sie bitte Ihre Bewerbung an info@acglogistics.biz

  131. Could you tell me how to change my password?

  132. Dear programmer,

    I’m trying to use the program in 3 languages.

    So the idee is to let the guest choose a language, but the “database must be the same.

    i played with the location of the Path to Data File.

    I kopied the program in three directories
    ddbge, ddbgd and ddbgi

    how to modified the datapaths to redirect them to the same database?

    please help

    best regards JT

  133. 478
    Rakkar MacAkkar

    I only want the name and location of the person published including the time and date of the post to be visible. I’ve managed to fix that, but it seems like there is this invisible box where the e-mail and webpage URLs where supposed to be since the posted text seems to avoid those areas and post to the right and at the bottom.

    One more thing, how do you left align the whole thing? With my own tables/CSS?

  134. I just checked in IE too, it works there… What could be the problem and what solutions are there to fix it?

  135. Hi there. I’ve got a problem. I’ve uploaded the guestbook and made the necessary changes to the config file. All’s great, but the verification image doesn’t show. It shows the boxes in the colors I specified, but not the verification code. Here you can check it out: http://profoto.extra.hu/guestb/index.php?action=entry

  136. 475
    brian

    The verify does not show up. I did not change any settings. Any suggestions.

    Also, is there a way to reformat the way the guest book looks, (alignment of topics),

  137. 474
    Jay

    *** ANDY ***

    If you disable image verification in your config.php file you will be able to login once again.

    // Disable Image Verification
    // ————————–
    // Not recommended, but required if your server does not support it

    $disable_verification = TRUE;

  138. 473
    directory

    Thank you for the great web site – a true resource, and one many people clearly enjoy

  139. Hi, i have noticed a number of comments regarding the verification code not showing when you want to enter your control panel or post an entry. I started fine, had a couple of entries on the guestbook, and since then, it has locked solid, this is due to the verification code that will not show at all now, and seeing as it is called for when trying to login, i can’t access this either!

    HELP!!!

  140. Hey i installed your script and wondering if there is a bug in because everyday i get these random post in the guestbook which is very annoying. Could you guys check it out and let me know please, thanks.

    http://www.dj-shan.com/ddgb/ddgb.php

  141. 470
    curious

    Can multiple comment pages exist on the same site; or is this one file and the same comments would appear on different pages?

  142. 469
    Jay

    Verify code does not show in Firefox but works fine in IE7, how’s that? Great guestbook, if the firefox issue could be resolved. Any help?

  143. ok – commented out the time zone thingy for time being – got a bigger problem now, which is probably me being thick! :(

    The script is running ok in my page – except for the links – if you click to add new entry or login it looks for

    http://www.hopegroups.co.uk/ddgb.php?action=entry

    instead of

    http://www.hopegroups.co.uk/guestbook/ddgb.php?action=entry

    and I cant figure out where to go to chnge this :( :(

    the url’s in the config file are the full ones.

    PLEASE help!!!!!!

  144. HI,

    I nstalled the code yesterday and got i working fine, today I am trying some tweaking – but complete dur brain with php – although i do understand some programming.

    I tried putting

    date_default_timezone_set('TIMEZONE');

    into the config file, having replaced TIMEZONE with Europe/London , and got an error.
    Placed a $ in front which changed the error to:

    Fatal error: Call to undefined function: ()
    in /home/sites/hopegroups.co.uk/public_html/guestbook/config.php on line 10

    What am I doing wrong???

    It was working resonably until I tried changing that, except it wasn’t showing smilies, but guess thats just a url prob somewhere.

  145. 466
    Marc

    This was very useful and very clearly written.. thanks!

  146. The second parameter is the subject, and the third parameter is the message.

  147. Hello! Help solve the problem.
    Very often try to enter the forum, but says that the password is not correct.
    Regrettably use of remembering. Give like to be?
    Thank you!

  148. Had trouble with the image verification. When I first install it would work. Then I go back to the page and it doesn’t work – I see the blue image but there’s no writing on it. I then deleted everything and re-installed same thing! Did that 4 times….. I disabled it and then had trouble after logging in as the admin – didn’t seem to recognise the login i.e. wouldn’t allow me to delete. This is possibly an IE thing as the login seems to work OK in Firefox. It’s currently disabled but if there is any further advice on this it would be welcome.

  149. Double comment, but there’s an issue. When even there are single quotes, they get “escaped” (I believe is the correct term.)

    But, just in my guest book, I tried in your demo, and it’s fine.
    http://c0rinne.net/gb/index.php
    http://dagondesign.com/demo/ddgb/ddgb.php

    I try to delete the \ in my .entries file, and the whole thing disappears.

  150. I really like it. The only thing is it takes a lot to validate it, and more importantly to re-design it.

    It would be good to either make it physically easier to re-design it, or to have a quick note on how to change the look.

    See mine: http://c0rinne.net/gb/index.php if you want to know what I mean. Non-PHP savy people like myself might have trouble figuring out where and how to change things.

  151. SFCG: Glad it ended up working for you. I will be sure to add that information into the article in order to help others who are experiencing the same issue.

  152. 459
    SFCG

    Sorry, that’s what I get for not reading.
    Here is the code mentioned below:

    <?php
    $to = "sample@email.com";
    $from = "sample@email.com";
    $subject = "Mail Test";
    $body = "Mail Test Body";
    ini_set("SMTP","localhost");
    ini_set("sendmail_from",$from);
    $result = mail($to, $subject, $body, "From: $from");
    ?>

  153. 458
    SFCG

    OK…after doing some searching on my host’s website, I found a section discussing how their server handles PHP mail. It was suggested I use this format:

    I put this in place of the original suggested script and it works correctly now.

    Great guest book! Thanks for putting it out there and continuing to make updates to it.

  154. 457
    SFCG

    I added the line as shown in your example to receive e-mail notifications of new posts. After submitting, I got this message
    “Warning: mail(): “sendmail_from” not set in php.ini or custom “From:” header missing in C:\hshome\sczarnec\frankenmuthladiesonly.com\ddgb.php on line 587″. The new post was listed but I never received an e-mail.

  155. Version 2.44 Released

    This update fixes a small bug with PHP short-tags. They have been converted to standard PHP tags for better support across servers. An Italian language file has also been added.

  156. Rique: There are many reasons why the script might not be able to send email. I would first try another email address (at another host), and if it still does not work, ask your host if you have access to the PHP mail function.

  157. 454
    Bill

    Re #459 – this is an issue with the website host and not the script: “There was a temporary problem with the server tmp folder fulfilment” – whatever that means!

  158. 453
    Bill

    A strange issue has just appeared and wondered if anyone knew what it is. At the bottom of the page displaying the submission form, is this message:

    Warning: Unknown(): write failed: No space left on device (28) in Unknown on line 0

    Warning: Unknown(): Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/tmp) in Unknown on line 0

    The verification image is not there either – but there have been no changes made to the script since the last message was posted to the guestbook last week. Any ideas?

  159. sorry for the double post. I didn’t think it went through the first time.

  160. I’ve upgraded to the newest version and have added the line to receive emails upon a guestbook entry. I changed it to my email address but I don’t receive the notification. any suggestions?

  161. I’ve set the email notification according to the instructions…and changed it to where it would send me an email when someone enters a guestbook entry. Yet, I don’t receive them. Any suggestions?
    thanks

  162. Hi

    I am Lucy, I have found your website while searching for some info at Google. Your site has helped me in a big way.

    Bye

  163. 448
    George Cooper

    Never mind. I figured it out!

  164. 447
    George Cooper

    Very nice guestbook. I had difficulty getting the image verif. to display, but it’s working now. My question is: how do I format the layout of my guestbook. I must have missed something, but I don’t see any instructions on how to get from the awkward default format to something interesting… like you sample demo, for example.

    Can you point me in the right direction?

  165. Lulik: Try this:

    mail('user@domain.com', 'New Guestbook Entry', 'A New Guestbook Entry was added!', '-f postmaster@domain.com');

  166. 445
    Lulik

    Hello DD,

    Great script & easy installation!

    I have a question regarding Email Notification of Posts

    I try to have post notification just like in the line below and it works.

    
    mail('user@domain.com', 'New Guestbook Entry', 'A New Guestbook Entry was added!');
    

    Then I get notification to user@domain.com from anonymous@domain.com.

    Is it possible to set the sender of email address?

    Say the sender is should be postmaster@domain.com

    Thank you

  167. Ali: Use a FTP program that will handle it, like CuteFTP. Also, on most FTP servers, files starting with a period are considered hidden, so they will not show up after you upload them (unless your FTP client is set to show hidden files).

    Kit: Only the name, message, and verification code fields are required.

    You should certainly be able to modify the data file – you might try using a different text editor though. Whichever one you are using might be messing up the newlines.

    Lastly, file locking is a feature that prevents multiple attempts to write to the data file at the same time. It should not be much of a problem unless you get a massive number of visitors posting comments, but you can try to enable it if you like. It cannot hurt anything – if your server does not support it, just disable it.

  168. 443
    Ali

    I’m trying implement this for a web site that I am working on. Frontpage won’t allow me to put the .entries, .banlist, or htaccess on the server. What do I do?

  169. 442
    Kit

    I like this guestbook but have problems implementing it.

    Is there documentation on which fields are required/which are optional?

    If I open the .entries file change any character and save it, all comments are lost.

    What is file locking? Do I WANT file locking as a security measure?

    Thanks

  170. Version 2.43 Released

    An option has been added to enable file locking. In the past, this feature was enabled by default, but not all servers support it.

    This feature is now disabled by default.

    If you are upgrading from 2.42, you only have to replace ddgb.php

    If you would like to enable this feature, add the following to your config.php file:

    // Enable File Locking
    // -------------------
    // If you would like to enable file locking, set this to TRUE
    // (not supported by all servers)
    
    $enable_file_locking = FALSE;

  171. Bernold: Some people have problems with file-locking support, so I will soon be releasing a new version with an option to disable the feature.

    Josephus: Glad to hear it :)

    Ed: I emailed you.

  172. Just a word of thanks. Configuration was very simple and easily adapted to our website.

    Once again, thanks.

  173. Hi,

    I just installed the guestbook but I have the following error “file could not be locked!”

    http://www.me-to-you.nl/gastenboek.php

    Admin can you help me??

    greetzz Bernold
    http://www.Me-to-You.nl

  174. Heya..

    I tried clearing the file, reposting, and the new posts work great. But even if I open up the .entries files, and re-copy it to the server (with NO changes whatsoever) the posts disappear altogether. Nothing even gets changed on the actual file..

    Any thoughts?

    Many thanks!

  175. Pam: If you were already running 2.4x, just the main file – ddgb.php

    mark: Good to know – perhaps jpeg creation is a bit more standard. I will experiment with that.

  176. 435
    Pam Ringo

    To upgrade, which files need to be changed?

  177. 434
    mark

    I had trouble getting the verification image (text string, not the background) to appear in Firefox… it worked fine in IE6 (ironic, I know!)

    Switched the order in “ddgb-verify.php” to make JPEG the first option, followed by PNG and then GIF. Hope this helps someone else!

  178. ed: It just sounds like something is not correct within the .entries file. I would try starting with a blank file, and add a few entries to see how they should be structured.

  179. Pam: Update to the latest version.

  180. 431
    Pam

    Great. Just looked at the demo script and that’s EXACTLY what’s happening to me. Please edit my previous post and take OFF the link to my guestbook since I’m guessing this is where they found it in the first place. Ugh.

  181. Hi!

    I’m having an interesting problem with people inputing codes into fields on the guestbook that either causes it to not open at all (had to go into the .dat file and delete the entry) or to spawn a popup. Is there a way I can stop this from happening?

    It happened once last week, then again today. Today someone used “alert(”Hi, it’s me again”)

  182. Hi. I’m going to echo what Marilyn posted earlier..

    I tried editing the .entries file to add some old entries from my previous guestbook – when I tested it out by copying/pasting one of the entries twice, it completely wiped out the visual display of any entries on the guestbook. I removed the duplicate from the .entries page, and saved it – however, the guestbook visual page is still showing up with 0 entries, even though the .entries page has all of the actual entries.

    I have entry approval turned on.
    please help.

    Thanks!

  183. I just uploaded a new version which fixes the issue – there was a small bug with the verification of one of the fields. :)

  184. 427
    Bill

    Hey – I’m using an older version and have just checked out the new code – thanks!

    I did click on your demo guestbook link and a pop-up window says it’s been hacked by a 15yr old and then sends you to an error page. A little worrying – is that demo guestbook on the new code?

    Bill

  185. Hi! Wow, nice site. Thx autor.

  186. Hi,
    I am trying out your guest book script and so far it does everything I need, but I have a question, my server is hosted in Europe and the time of any posts being made are 1 hour out from my Local time, is there an easy way to correct the date/time stamp on any further posts? (i’m guessing that existing posts will have to edited by hand)?
    Thanks

  187. 424
    Wildflower

    I didn’t have any problems of that sort with the server so far, but that doesn’t say much since this is the first script I was testing in a more thorough fashion :)

  188. Brenda: Old posts? They do not go anywhere unless you delete them. As far as full links – I am not sure what you mean.

    Wildflower: It certainly sounds like a session problem then. I am not sure why exactly though. I have not seen a particular version of PHP or Apache do this. Have you had any strange issues with other scripts that use sessions on this server?

  189. 422
    Wildflower

    @reen: you can edit the body tag in the header.php into

    <body bgcolor="000000">

    or you can edit the ddgb.css and add a section:

    body {background-color: #000000}

  190. 421
    reen

    how can I change the background colour from white to black?

  191. 420
    Wildflower

    Oh, forgot to mention.. runs on Apache 2.2, PHP 5.2.3

  192. 419
    Wildflower

    I also have the problem that the verification text isn’t showing up. Mind you, just the text is missing. An image with the background that’s specified is being created.

    When I edit
    imagestring($image, 5, 8, 2, $_SESSION["ddgbcode"], $text_color);
    into
    imagestring($image, 5, 8, 2, "sometext", $text_color);
    then a image with “sometext” shows up. Of course, verification wouldn’t work that way. However, the script returns “No verification code generated!” once you click on “submit” with or without the change.

  193. I love the script. It was easy to set up and works perfectly. I have a question. What happens to old posts? Also, when people type a link in the comment box, it comes out as a full link and shifts the alignment of the page. Any suggestions?

  194. 417
    adas

    nice! just what I need. Thank you

  195. Marilyn: Check your email.

  196. Hi.
    I tried editing the .entries file to add some old entries from my previous guestbook – when I tested it out by copying/pasting one of the entries twice, it completely wiped out the visual display of any entries on the guestbook. I removed the duplicate from the .entries page, and saved it – however, the guestbook visual page is still showing up with 0 entries, even though the .entries page has all of the actual entries.

    I have entry approval turned on.
    please help.

  197. Dave: It should work fine, although I have not tested it with version 5 of PHP. I believe some others have though.

  198. Admin:
    Is the guestbook working in PHP5 also?
    I’ve got a new project with PHP5 installed but i’m not able yet to test it out.

  199. Andrew: I have not been able to re-create the problem. It shows up fine for most people with Firefox. It may have something to do with the actual server it is hosted on.

  200. Hi,

    Did you post a solution to the blank verify box in firefox but not in IE. I am getting the same problem?

  201. AfterAll: It is interesting that you posted that, since today I was actually contacted by two other individuals who suggested a similar method for a couple of my other scripts. I will certainly be adding the feature in relatively soon, or at least making a mention of it in the article – thanks for the info :)

  202. Hi again,

    Thanks to the link you gave me regarding post 405, I experimented a bit again and found my solution! In case there are users of this script who also need names of days and months translated to their local language, here’s my modified line nr. 1143 of ddgb.php, which uses the ’strftime’ command:

    echo ‘ ‘ . _WRITTEN_ON . ‘:’ . ” ” . strftime (”%A %e %B %G”, $data['timestamp']) . date(_FORMAT_DATE, $data['timestamp']) . ” ” . _WRITTEN_ON_TIME . ” . “\n”;

    I reduced the contents of _FORMAT_DATE (in dutch.php) to ‘, H:i’ so it is only used to show the hours and minutes.

    Check it all out on my guestbook at http://www.afterall.nl/gastenboek/index.php !!

    Kind regards,
    Joop

  203. Hi,

    Thanks for your quick reply. I had found this workaround already, but hoped for a ‘translation’ solution. I’m a bit of a perfectionist and would like to…blablala. I guess you know what I mean. If you (or one of your users) ever run into a solution, or knows how to write it in PHP, please think of me…

    But still: thanks a lot anyway for this great piece of work !!

  204. AfterAll: The date format is controlled by this line in the language file:

    DEFINE('_FORMAT_DATE','j F Y, G:i');

    The usage instructions for the date parameters can be found here:

    http://www.php.net/date

    So one possible thing you can do, is use the characters to display numerical values instead of textual values (example: 12 instead of december). That way at least it would not look strange :) You can format the string any way you want of course.

  205. And like so many others, I forgot my link:
    http://www.afterall.nl/gastenboek/index.php

  206. Dear Admin,

    Thanks for this wonderful script, which is working for me very fine so far. I don’t have a lot of knowledge of php, but by reading all posts here and experimenting a bit I get along and our guestbook works as I like.
    Still, of course, I have a request, which is cosmetic only. I use the Dutch language file, edit it a bit and so on. Everything is translated fine. But…in the final guestbook, all timestamps are still in English, like “Tuesday 24 April 2007, 19:47″. Before that, it says “Geplaatst”, which means “posted”. It looks a bit silly like this, half Dutch and half English. Is there a simple way to have the names of the weekdays and also the names of the twelve months translated someway? Perhaps in conjunction with the language file, or am I asking to much now? I think all ‘foreign’ sites thatare created in their ‘home’ language will have the same ‘problem’. I hope tohear from you soon, but I don’ expect a solution today (although…)

    Kind regards,
    Joop Overhand – After All

  207. 404
    David

    Excellent! Thanks for the quick response, the help, and for the awesome script… =)

  208. David: Sure :)

    Replace this line:

    echo '<span class="ddgb_h">' . _EMAIL . '</span>: ' . $email;

    With this:

    if ($logged_in) {
    echo '<span class="ddgb_h">' . _EMAIL . '</span>: ' . $email;
    }

    Then the email addresses will only be visible in the guestbook to the admin.

  209. 402
    David

    Hello master scripter =)

    Is there any way possible to capture the e-mail on input and make it visible to admin only? If not, is there a way to completely disable e-mail collection without affecting the script elsewhere?

    Thanks~

  210. I still can’t get verification to work properly in any browser apart from IE6. Any ideas? Thanks. A

  211. dave: That is because files that start with a period are hidden files on most web servers. Most FTP clients allow you to show hidden files though.

  212. 399
    dave

    When I upload the files .banlist and .entries to my server they dissappear.

    I tried adding them as php files but still the same problems.
    I tried both executable and php source but same problem.

    Dave

  213. Mike: Support for other charsets is something I am interested in doing, I just have not done any work with it, so I am not sure what all is involved yet. It is something I plan to look into though.

  214. Hello!

    Kick ass message board you’ve created, and refined, love .css!

    Any chance you see support for Chinese messaging in the near future? If not would it be tough for me to do it on my own? I’m sure the language files are on the net somewhere, would it just be a matter of finding them, then sticking in some extra code?

    My website’s at mikemacd.com, just getting started, but wanted to hammer out the guestbook part first so my cohots could be along for the ride. Got to tweak the css a little and make it a little more in tune with the (future) site.

    Read through ALL the comments and still not sure about this 666/777 permission stuff, maybe I’m half blind?

    Anyway don’t think I need it, things are running pretty smoothly at the moment, knock on wood.

  215. Thakur: I think I will just remove the file locking feature in the next version – it seems to cause more problems than anything.

    Sevket: I am not sure what you mean.

  216. Here is the actual URL of guest book:
    http://www.adanayuzme.com/index.php?pid=17

  217. Hello, thanks for the guestbook but I have a prob.
    http://www.adanayuzme.com
    Konuk defteri means Guest book in Turkish but it is not at place that it must be, it is top of all pages. I created a PHP page and added

    this.
    What may be the problem?
    Thanks.

  218. 393
    Thakur

    hi,

    i m getting this error “Error – file could not be locked!” when i try to post somting in guestbook. i hv integrated this script to my website design. The script is working file without integration. i did all the things you mantion in your website.

    Pls help me out.

    Thanks

  219. TrishD: The CSS declarations help position the verification box, but it has nothing to do with its generation. That is just controlled within the script.

    Patrick: Not sure about that one. Sometimes that can mean there is a problem with sessions on the server, but I am not sure what I could suggest.

  220. I have a similar problem as above. I can see the Captcha image, but when I enter in its value, the form generates the same error:

    No verification code generated!

  221. It did work before, somewhat… though I usually had to hit reload on Firefox at least once before a verification code would show up. I guess I need to know which CSS selectors apply to the form field where the image verification shows up. I’m having trouble figuring out what’s what. Can you help? Thanks so much.

  222. TrishD: Did it originally work before your modifications? If you are not sure, it would not hurt to test with the original script.

  223. TOP: You might want to check your script settings, or manually hard-code the verification URL in the script. It is currently trying to load the image using this URL:

    http://www.ciakilleenchap.org/guestbook/ddgb

    Which is not correct.

  224. I am having problems with the image verification in firefox when trying to log on to my guestbook. When i try to log on, the image verification box appears as a blank blue box. Any ideas? I think it might have something to do with modifications I made to the CSS file. The CSS is here:
    http://www.trishknits.com/ddgb.css
    I can see the verification image in IE but not firefox. Any thoughts would be appreciated.

  225. I am having problems getting the verification image to should. I got it the guestbook to work with no verification fine. I am running W2K3 & PHP5. Placed the PHP_gd2.dll in \ext directory and setup extensions in php.ini. Ran GD tester and server is supporting it. Not running FrontPage extensions on the site.
    Thanks in advance.

  226. 385
    morganusvitus

    The site looks great ! Thanks for all your help ( past, present and future !)

  227. Everything is working now. Thanks! I was doing something stupid on my end. Also thanks for the tip about the dot before
    a file name.

  228. keith: They do not have to have the period in front of them, so you could remove the period in WSFTP then try checking the permissions in IPower. It may just be that the server does not like accessing hidden files. The files can be called whatever you like, just make sure you update the options when you rename them.

  229. Yes, both the .banlist and .entries.
    I did it with WSFTP. Tried 666 and 777. WSFTP reported
    “permissions changed”. I’ve also been trying to get at them by logging onto ipowerweb just to make sure they have indeed changed. I can get to the dat folder but not to the .entries or .banlist. I guess this may have something to do with the
    “hidden” status that you mentioned, though WSFTP didn’t have a problem displaying them. I’ll have to find out how to get at them in the ipower v-deck. Let me know if you have any more ideas. Thanks!

  230. keith: Are you sure you set the permissions on the entries file as well, and not just the dat folder? That is what the error message sounds like to me. Btw, files starting with a period are seen as hidden in a lot of FTP clients, unless they are set to show hidden files.

  231. Sorry, here is the URL to the guestbook.

    http://www.jazzdrummer.com/ddgb/ddgb.php

  232. 379
    keith

    These are the errors I get. I have set CHMOD with WSFTP.

    Warning: fopen(dat/.entries): failed to open stream: Permission denied in /home/jazzdrum/public_html/ddgb/ddgb.php on line 526

    Warning: flock(): supplied argument is not a valid stream resource in /home/jazzdrum/public_html/ddgb/ddgb.php on line 528
    Error – file could not be locked!
    Warning: fclose(): supplied argument is not a valid stream resource in /home/jazzdrum/public_html/ddgb/ddgb.php on line 564

  233. Dave: To do something like that you would have to either keep a count of the entries in either a database or a simple data file, and just update it when a message is sent. There are lots of basic tutorials out there for reading from a file, and writing to a file, and the same for databases. It should not be too bad to do :)

  234. Admin:
    Did it. Pretty easy to change the verify image though.
    Changing the font isn’t that easy. I tried some thing in the settings and code but it doesn’t look that nice as it is like you made it :)

    I’ve got an other question. Is it possible to show numbers of the entries? First one starts with 1. and so on…
    On this one i really haven’t got a clue how to do this.

  235. Admin:
    Sorry it took a while to come here again. Quite busy lately :S
    Anyway, i visit the link you gave and i have to say that it’s pretty easy. I haven’t checked the code in the verify page, but i don’t think that it’s much different then.
    It seems that it’s pretty easy too to change at least the colour settings. The font isn’t priority, but i do like to change the look of the .png so it fits more with the layouts.
    Thanks. (why didnt i knew this allready :S )

  236. Dave: That is handled by the ddgb-verify.php file. The ‘imagestring’ function in particular is what defines the text itself. More info can be found here:

    http://us3.php.net/imagestring

    While it does have some basic customization options as far as the font, it is also possible to use other advanced GD functions to customize it further.

  237. -> Admin
    Hi, how you’re doing? Been a long time. I used you ddgb again on a website and i was wondering how and wich is the (fastes) way to customize the Code Image? Maybe also changing the font in it. Looking forward to hear it.

  238. A new language file is now available – Romanian

  239. Thanx admin,
    but that doesn’t seem to be the problem.
    Tried with ie and ff on both mac and pc…
    All cookies excepted, security issues turned off.

  240. andrew: I would need to see a link.

    Wolf: You might try another web browser, or resetting your security settings. It might be blocking the cookie it needs to operate.

  241. Hi there,
    using and enjoying this script for quite a while now!
    But…
    Since yesterday i’ve had some spambots trashing our site,
    and when i want to delete those posts the script tells me ” do not try to ban/edit/delete” unless you are logged in.
    ..Even when i’ve logged in correctly.

    Short:
    i log in as admin,
    i see the posts with the edit/ ban/ delete options
    (so far no prob)
    i click eg delete post
    script message: do not try to delete unless you are logged in

    Anyone here who may have the answer???
    Cheer!

  242. have installed the script but the image verification is not working – just shows a blue box – the GD module is installed and enabled on the server (2.0.28 compatible) Any idea why it doesn’t work?

  243. Si: I will probably just take the locking code out next time I update the script.

  244. Thanks Admin.

    I think that I found the previous comment, no. 294 from Joe. You said you would email him, so I don’t know what the solution was?

    Thanks

  245. Si: Before the script writes to the file, it locks it, to prevent multiple writes to the file at the same time. It sounds like your server might not like this feature being enabled. There are instructions in a comment below on how to remove the feature.

  246. Hi,

    When I try to post I get the following error message:

    Error – file could not be locked!

    Any idea what is happening here?

    Thanks

  247. cterpreau: There are some basic instructions above for that. You might want to do a search for including php code in html files though for more information.

    Patrick: Just have your page open a new window using the target parameter, and include the script from that page.

  248. 363
    Patrick Perren

    Hello, it’s possibile that the website entry’s in your guestbook opening in new window?

    Hallo, ist es möglich dass die Webseiten einträge im Gästebuch in einem neuen Fenster geöffnet werden können.

    Freundliche Grüsse:
    Patrick Perren

  249. 362
    cterpreau

    Admin, can you help me ??

  250. Claudia: Please send me an email using the contact page, and I will reply with my address so you can send the translation – thanks!

    An easy way to remove the IP logging is to replace every instance of this:

    $_SERVER["REMOTE_ADDR"]

    With this:

    '1.2.3.4'

    A bit easier than removing all the code for the feature anyway :)

  251. Thanks a lot for this great script. I never used php, though I succeed to implement in my site. Admin if you want, I can send you a romanian translation.
    You can see my guestbook <a href="http://fotografiistudio.com/ddgb/impresii_fotografii.php">here</a>
    I had some minor problems that I couldn’t solve. Because that problem with entrance with www and nonwww I decided to put absolute links to that page with http://... and everything was fine. I had a small problem with editing some entries. I had old mesages in an old guestbook and I want to put it in this new wonderful script. But I didn’t like that entries showed my ip. I tried to edit ip direct in .entries file, but just changing ip made that no entries was shown in guestbook.

  252. 359
    cterpreau

    Hello, i don’t understand how can i add the guestbook into my .html page.

    Thx for your help.

  253. Ryan: While that is a possibility for a future version, it is in no way definite.

  254. Hi there..

    Any word on the new version with the custom questions yet?

  255. José: I do not believe this form will work while using FrontPage extensions unfortunately.

  256. I do not know much about anything except FrontPage. Would you please show me how I could set this up in my website (see above)which is built with FrontPage2003? You may also call me toll free at 1-877-968-1800 from anywhere in the USA. Thank you very much.

  257. 354
    Fran

    Hi Admin,

    Thank you for your patience and help! :-) Everything is now working perfectly. I added the @ right in front of the session_start that was at the very beginning of the ddgb.php file and this resolved the problem.

  258. Fran: That one should be easy to fix, just search the script for all lines that start with session_start and add a @ directly in front of them. This will cause PHP to supress the error. It just means that it cannot start a new session because one has already been started. Perhaps you have a session_start line in the file that is calling up the script too?

  259. 352
    Fran

    Hi Again :-)

    Looks like I spoke too soon! I have one error message left even though I have checked and cannot see any more spaces. Maybe I should just leave it now as it is not affecting the way the guestbook works and has now become invisible because of my black background. It can only be seen if you left click and drag the mouse over it. See it at http://www.arcanefractals.com/ddgb/guestbook.php

  260. 351
    Fran

    Hi again Admin,

    Problem now solved. Yes it was to do with spaces both before and after my php include script. I had been alternating between using Dreamweaver and notepad to edit the scripts. It seems Dreamweaver was adding spaces again even when I removed these using notepad. As a precaution I moved all my guestbook files out of dreamweaver directory and put them into a folder under C directory. Thanks very much for all your help.

  261. Fran: It sounds like some text is being sent to the browser before it can send the header information. Since it says this is happening on line 1 of the script, you most likely have some whitespace that does not need to be there. The following code needs to be at the absolute top of all PHP files in this script (no lines or whitespaces at all before it):

    <?php

  262. 349
    Fran

    Thanks so much for your speedy reply Admin. It’s appreciated. Well I have just about got it sorted out. In fact the Guestbook is working just fine. The only thing is that I am getting an error message above the book and do not understand what it means. You can see it here on my page http://www.arcanefractals.com/ddgb/guestbook.php

    Thanks again.

  263. Fran: You add the session_start line to the file that you are including the script from. This script must be included from a PHP file though, (or just an html file with a PHP extension), otherwise the PHP code contained in the script will not be executed. There is a way you can set your server to allow the use of PHP code in files with other extensions, but if you do this with shtml files, standard shtml includes will no longer work properly.

  264. 347
    Fran

    Whoops the php code examples I gave didn’t show up in my questions. My last question refers to the php include script that was mentioned in the “notes” above.

  265. 346
    Fran

    Love this guestbook and clear instructions. I managed to successfully run it as a standalone script. But now I would like to include the guestbook within one of my shtml pages so that my banner and menu is above the guestbook. I followed the instructions above and did change the config setting to “False”. Now I get stuck and need some clarification as I can’t get it to work.

    Which php file do I place the session start script

    Then, is it correct that I place this script in the shtml file where I want the guestbook to appear?

    Thank you

  266. Hmm, it started working all of a sudden. That’s strange.

  267. Hi, whenever I try to submit a new entry, I get this error message:

    Error!

    * Invalid verification code
    Any ideas? I chmod 777′d the dat directory and the three files in it. Great script.

  268. A new language file is included with this script – French

    Ryan: I can try, but I get a lot of requests to email people when different things are added. I recommend just watching for updates.

  269. Thanks for considering the unlimited custom questions. As this is a feature I would dearly love, can you give me a shout when it’s done?

  270. Well, it must be something with my work computer. I just tried it on my laptop at home and it works fine with FF. Thanks for checking into this, I truly do appreciate your help and especially this wonderful script!

  271. Wolf: The script tries to use GIF by default, but if your copy of GD does not support it, it does PNG instead. You could ask your host to update GD maybe.

  272. 339
    Wolf

    Hey, i’m using V1.2,
    but my ver img will not display in most IE versions,
    FF works fine.

    Is there any way to create a gif file instead of a png??
    -All other help is welcome too offcourse;)

  273. 338
    loopz

    im having problems loging in to the admin section with explorer. I do not have a problem accessing it through firefox. Ive cleared my cookies, etc. It happens after I disable the image verification. Thanks for the help

  274. 337
    Rutger

    Thank you, this is what i am looking for.

  275. Rutger: It uses a standard Unix timestamp in the data file. Here is a site you can use to convert it: http://www.4webhelp.net/us/timestamp.php

  276. 335
    Rutger

    How can I change the date and time stamp of a message in the secure PHP guestbook script?

  277. Pam: I tested in a few more browsers a minute ago. They all still seemed to be working OK for me, so I am not sure what to suggest.

  278. Ok, I read your post wrong. No, I don’t have cookies disabled. I even went into the Firefox settings and deleted the cookie in hopes that it would ‘reset’ itself. No luck. However, I have removed the spam entry via IE.

  279. Yes, I do. I just checked in IE and it worked fine. It just shows me an empty blue box in Firefox. Wierd.

  280. Pam: It shows up for me – do you have cookies disabled?

  281. I’m having a problem with the image verification showing up now. It’s worked with no problems until today. I have a spam entry, but can’t get logged in to delete it. :( Can you help me please? The guestbook is located at http://chatterboxquartet.com/guestbook.php . Thanks!

  282. Thanks. I did that and got no change. I then went back to the fix you gave to Terry D. I found the code line as it exists in the current script:
    echo ‘‘ . _BACK . ‘‘;

    and replaced it with echo ‘Return to guestbook‘;

    and that seemed to fix the issue.

    Thanks for your help and thanks for a great script.

  283. Carrie: One other thing you may want to try is using the URL the guestbook is on, as the first option (path to ddgb.php).

  284. Hi,

    I did set the standalone option to FALSE. After an entry is added, I get the following: http://www.ccdconline.org/george/ddgb.php stating “Entry added. Thank You!

    Return to guestbook” The return to guestbook link returns me to the ddgb.php page with the entries.

  285. Carrie: Since you are loading up the script from an existing page, it should not ever be loading ddgb.php directly. Everything should be staying within your page.

    Did you make sure to set the standalone option to false in the script, since you are running it from another page?

  286. Hi, I just got the script up and running, and I love it. I’ve inserted the script into an existing page. After someone posts, the return to guestbook link sends the viewer to the php file, not back to my guestbook page. I am a php neophyte, so know nadda about php.

    My relevant page is: http://www.ccdconline.org/george/remembrances.htm

    Thanks for your help, and thanks for creating this great script.

  287. Dave: You can try adding a new parameter to the mail function, like this:

    mail('user@domain.com', 'Subject', 'Message', "From: webmaster@example.com\r\n");

    That will pass the proper header to the server. Be sure to use doublequotes for that or else the return and newline characters will not be handled properly.

  288. -> Admin
    Nice feature, the email notification.
    But the ‘from’ in the recieved email in my mail client contains ‘Apache server’
    Is it possible to edit this into ‘Mail from my site’ or what ever?

  289. Jon: Yes, there are instructions above on including the guestbook in another page, but you will need a separate set of files for each instance of it though.

    Beno: It is really hard to say. Lots of things might be causing the issue. It sounds like GD is fine, but it could be a problem with sessions passing properly, or the settings not configured properly, etc.. you may want to look through the comments for common problems.

  290. Hi

    I have successfully installed it, and it looks great!

    One quick question – is there a way to install it on any page? i.e. use it as a article/page comments?

    Cheers

    Jon.

  291. 320
    Beno

    BTW: I forgot to mention. I’m running WAMP5 v1.6.6 so you might get the same results if you install it for a short period to test it out.

  292. Hi

    I notice on the guestbook test page that the user email reads as
    [at] yahoo [dot] co [dot] uk
    Is this definitely spam bot proof?

  293. 318
    Beno

    I do not have a link since I run this on my local machine. I could send you the php files or if you have msn/icq when you’re online I can bring the server live for you to have a look at.

    I don’t wish to keep it live for hours since I don’t have it properly secured.

    Regards,
    Beno

  294. Beno: Link?

    Ryan: That is not a bad idea. Making the forms more dynamic would be a big update, but I will keep it in mind :)

  295. Unlimited custom questions would make this the most awesome guestbook on the planet.

  296. 315
    Beno

    Hi,

    I really like this guestbook and I have looked at many. It’s good to know that the guestbook is still being worked on and improved.

    I have configured the script properly but the image varification isn’t working, I’m not sure why. I see the box but the text is missing. My test server is setup properly and GD is installed and enabled.

    Any ideas what might be causing this propblem?

    I also have a suggestion that in my opinion would make the guestbook perfect. It would be nice if the Admin could post comments / reply to entries.

    Regards,
    Beno

    P.S. If its of any help phpinfo() returns the following:
    GD Support – enabled
    GD Version – bundled (2.0.28 compatible)
    FreeType Support – enabled
    FreeType Linkage – with freetype
    FreeType Version – 2.1.9
    T1Lib Support – enabled
    GIF Read Support – enabled
    GIF Create Support – enabled
    JPG Support – enabled
    PNG Support – enabled
    WBMP Support – enabled
    XBM Support – enabled

  297. Chrisathome: If you would like to use the contact form to email me a link, it may help. It will be confidential of course.

    One thing though – I recommend trying with and without the www prefix to see if the code shows up.

  298. Admin

    just to add to my last post, have checked the host server versions and it is running apache 1.3.33 with php 4.4.1 on a linux server with the same gd version.

    Christopher

  299. Admin

    The hosting company’s server is behaving ok with the guestbook(I’m still testing so there is a redirection on it) and I can’t give a link to my local server as it isn’t visible outside my network. I can email you the link to the hosted site if you think that would help.

    The code is identical on both, the “live” web server shows the verify text the local one doesn’t. I can disable verification locally just so I can develop the css & html to integrate it in to my site but it’s inconvenient, and I’d like to know why (as this is all new to me…)

    Christopher

  300. Dave: If your entries are showing up properly already, you do not really have to worry about it. If you do want to change it, just look for a section of code near where the entries are displayed. The code block starts and ends with a double forward slash. They were supposed to be start and end comment tags ;) Which is why the bug happened. That code was supposed to be commented out.

    Chrisathome: Can I see a link?

  301. sorry about this…

    My knowledge of apache/php config is very limited (less than1 day!) so I would appreciate guidance as to why this might be occurring. I have been through php.ini & httpd.conf but cannot see what to do.

    The GD library – a bundled (2.0.28 compatible) version is active and a var dump of gd_info() shows true for gif jpg & png

    Now I’m lost!

    Christopher

  302. Rest of my post, this got lost!…

    My knowledge of apache/php config is very limited (

  303. Hi I have a question re the verify code.

    I am testing the very nice guestbook v2.40 on my host server and locally on my xp pro pc using apache2.2 & php5.2.0

    The host server displays everything correctly and works fine.

    My local server does not show the text in the verify box although everything else seems ok. Annoying, as I want to integrate the gb into my site design and it’s easier to work locally.

    My knowledge of apache/php config is very limited (

  304. -> Admin
    Sometimes i’m surprised that there are still people who don’t give them selfs the time to explore the script. Sure there are people who really doesn’t have php knowledge. For example, the ‘website’ link in the entry. Just add target=”_blank” into the url ine in the script and your ready to go.
    That is no hard deal. Well, i guess it’s probably not my day. ;)

    By the way, do you know what the update was in the latest version? I customized my ddgb file that the new version probably mess up my guestbook(s). Otherwise i leave it this way and stick to the old version.

  305. Bill: Most FTP clients use the ‘ls’ command to get a list of files on the remote server. Often times they will let you add extra parameters, such as ‘-a’ to show the hidden files. As far as your scroll bar stuff, if I remember correctly, custom scroll bars are not supported by all browsers – you might try checking in another.

    Joe: Glad to hear :)

  306. Thank you for your help admin,
    it turned out that due to the include function the filepath to the “entries” file was messed up. It now works fine, thx again.

  307. 304
    Bill

    Hello, an other question.
    Tried to add, in ddgb.css:
    BODY {
    scrollbar-face-color:#FFFFFF;
    scrollbar-highlight-color:#000000;
    scrollbar-3dlight-color:#FFFFFF;
    scrollbar-darkshadow-color:#FFFFFF;
    scrollbar-shadow-color:#000000;
    scrollbar-arrow-color:#FF0000;
    scrollbar-track-color:#FFFFFF;
    background-repeat: no-repeat;
    background-image: url(../pics/assen-achter-3-20p.jpg);
    }
    Doesn’t work.
    Have entered it in header.php
    Background is shown, but not fixed, fixed it with:

    But cant get the scrollbar, it still shows the standard windows scrollbar.

    Thanks.

  308. 303
    Bill

    1. Hello, didn’t see the option !!
    Changed it and works perfect.
    2. In options I did set Show hidden/system files but it is not shown, will ask Total Commander
    3. Maybe in config.php ?
    Thanks for you quick reply.

  309. Bill: I am not sure what you are asking with #1, but there is an option in the config that sets whether or not email addresses are displayed like that. As for #2 that is normal, because on most servers, files starting with a period are hidden. Most FTP clients allow you to set them to show hidden files. For #3, I may add an option in to allow that soon.

  310. 301
    Bill

    Hello, have 3 questions.
    First script is now working regarding first message, as I also had that problem testing it last week.
    Like your script so far.

    1. in the message, the email link is printed with [at] and [dot] in the address, whith spaces, so
    2. when I copy the dat files with a dot in front of it, so .banlist .entires and .htaccess, Total commander doesn’t show the files, the directory then is blank.
    So I couldn’t change it to 666
    Solved it to copy it without the dot, then change it to 666 and then change the name with a dot in front.
    Immediately the files dissapeared.
    Cant find anywhere to see the files.
    Or is this the way it should be?

    3. the website link has no target, can that be added somwhere, like target=_blank ?

    Thanks,

    Bill.

  311. After looking through this script again, I found a small bug which I believe was the reason some of you were still having trouble getting all the entries to display. I just uploaded version 2.41 – let me know how it works for you :)

  312. Jeff: Thanks for reminding me – I just added the information on email notification to the end of the article. I also added some info on how you can use the form data in the email, which should answer your question :)

  313. 298
    Jeff

    The email notification thing seems to be popular. You should have a sticky for entry #70 (that’s now waaaay down the list).

    I have the email notify working, but was wondering if any of you PHP wizzes out there could tell me how to insert code to send one or all of the fields from the entry in the email. You know: “You have an email entry from user@spambot.com awaiting approval.” Something along those lines.

    Thank you for all your hard work. I’m hoping this will do away with the SPAMbots…

  314. Dave: Yes, the comment system has been acting up lately. That is my next task for tonight ;)

    Laurel: No problem – glad you found what you needed.

    Joe: I am sending you an email.

  315. Hi again,
    Please ignore my earlier suggestion. I checked the previous comments and discovered that you had already created a way to send an email when a entry is made.
    Thanks

  316. Appologies, I forgot adding the link:
    http://tksv.de/rockalternative/gb.php

  317. Hello Admin. I already installed your guestbook once on another site and was very happy with it. Now I am creating another page and included it again. When I’m trying to post a comment, I get the following message:

    Error – file could not be locked!

    I found where the errormessage is called in the code, but didn’t really understand what’s wrong, since I’m rather new to php. I’d highly appreciate your help.

    Joe

  318. Hi, I added your GB to my son’s band’s website and we are very happy with it: http://thenoisyneighbors.net/ddgb/feedback.php
    It is a relief to not have to deal with the tons of spam that the previous GB allowed. Have you considered adding an automatically generated email to inform that an entry has been made? I am not very proficient in php or I would try to add one to the script. Thank you so much for the use of your script.

  319. -> Admin
    That’s odd.
    I just made a comment here for Ashley and i coded it with the right tags. But it’s not shown.

    -> Ashley
    Go to my website and send me an email. I can help you further from there as the comment wont show the codes. Sorry.

  320. -> Ashley
    Hi, you could try this one. Open ddgb.php
    Find this line:
    <a>' . _LOGIN . '</a>

    Replace it with this one:
    <a></a>

    Make your own image(s) and set the height and width.
    That should do it for ya. Backup your ddgb.php just in case it might not turn out what you expect.
    You could do this the same with the logout. It’s above the login line in the ddgb.php file

    Good luck.

  321. 290
    Ashley

    I would like to change the “[Login]” link at the bottom left of the guestbook to a small image instead of the word “Login.” I’m not familiar enough with PHP to know how to do this. Any help would be greatly appreciated!

    Thank you,

    Ashley

  322. Hi Admin

    Thanks for the reply, that indeed seemed to be the problem, people where automatically putting www. before the domain name which wasn’t required, and now I’ve changed the ‘config’ file everything seems OK.

    Regards

    Leon

  323. There was a big problem with this with an earlier version of the script, but after the updates and a lot of testing, it looked like it was all resolved. One fix that has helped many is to download the data file, and re-upload it to your server, making sure it transfers it in ASCII mode.

  324. -> Admin:
    The problem is indeed within the first entry.
    If you navigate to Robert’s guestbook, you’ll see that my entries are shown on the front end and not only when you’re logged. I don’t know why all other entries are visible and the very first one is not. But that’s the bug i’m talking about. Or it’s a dutch server/hosting issue :P

  325. -> Robert:
    That is exactly the same issue i am talking about here.
    Read my comments here below. Try to NOT delete that first entry you make. Leave it in the .entries file. Post another one and you will probably see this one on the guestbook.

  326. Hi admin,
    I’d found something interesting. I guess i think…
    On that particulair guestbook i was talking about, i added myself the first entry. This one didn’t show up in the guestbook. I added a second entry and the second entry did show up in the book.
    After placing those two entries i logged in as an admin and there i saw the first entry too.
    I deleted the first entry and logged out.
    Went back to the guestbook and nothing showed up!
    I went back to the by clicking the Previous button on my browser to the admin section, to the page where i placed the second entry. All field were still filled like i did by adding the second entry. So i only pushed the Submit button and the entry is placed again. I logged out again, went to the front and the entry is shown. For verification i logged in again and there it was. Both entries are there. Now… conclusion is: When i delete the first entry (wich is NOT shown on the front page) no entry is shown. So i have to leave the first entry in the .entries file.
    This is weird, don’t you think?
    If you’re curious i could give you the logg data for the guestbook, so you can look by your self.
    This is a very strange issue…

  327. Hi.
    I have installed the DDGB but I have a problem.
    When I enter an entry in my guestbook it does not appear. Only when I login as admin I can see the message.

    Entry approval is NOT enabled

    Can someone help me?

  328. We have had problems with spamming our feedback page. I would like to require image verification instead of required fields like it is set up now in order to stop the spamming. But I do not understand where I am supposed to give write-access to /dat/.entries and /dat/.banlist (chmod 666 or 777)? Is this somehow done in config.php?
    I am using Front Page 2000 and I understand how to create the directory with your files and upload them to the site. Do I edit config.php with these chmod commands somehow and then upload it?
    Sorry if I sound stupid but I am lost. If someone with expertise could explain that to me I would be very grateful. I am by no means proficient in this.
    Thanks in advance.

  329. Dave: Glad that version is working for you at least. Interesting situation though. Perhaps I will think of something next time I work on it :) I will also take your suggestions into consideration. The session issue (www vs no www) is something I certainly want to figure out as my form mailer scripts also use the system. :)

  330. This is not spam, but i forgot to include the url to the guestbook wich i was struggeling with. Here it is [url=http://www.caritalanina.com/] website [/url}

  331. *Back.
    Admin…
    Shoot me! Right now!
    …i downed the entries file and yes, the entries were stored in .entries But it just would’nt appear on the guestbook.
    So, i deleted everything including the guestbook directory. I made a new folder and placed all original from your ddgb.zip
    I changed the config, chmod the .entries and .banlist to 777 and went to my browser to view the guestbook.
    I added an entrie myself and it wont show up on the guestbook.
    I included the guestbook into a page on the website so i had to change some config settings. For instance: guestbook/.entries
    guestbook/.banlist etc
    Still the entries wont show on the front.
    I had a customized ddgb.php i used earlier and i copied this one again and overwrite your original one… and gues what?
    The entries are readable. I definately don’t understand what was the problem and where i might have been or in wich file.
    I am a bit sad that this discussion doesn’t have the sollution we discovered. The guestbook wich i’m talking about is located here. Maybe you wanna have a look and maybe you can find some code errors or something. But for now, it seems that the guestbook is working.
    I want to thank you for your time and being helpfull.
    Maybe for the future… some features:
    the www and without www problem solved for the caption image. Easier coding for friendly including in pages.
    Option to give reaction as admin and that the reaction appears below the entry in a different table with a different text color for instance.

    Sorry for the long message ;)

    It’s a very nice script though.
    Happy new year!

  332. I’m glad you found some time to answer…
    I’ll check it right now… but… i think their in it.
    Be right back to give report…

  333. Dave: Are the entries still in the actual data file? You might want to try downloading and re-uploading the data file in ASCII mode.

  334. Hi Admin,
    I was just finishing a website wich contains your GB also, then suddenly i discovered that the entries are not visible anymore.
    When i login all entries appears and after i logout all entries disappear again on the front-end. The only thing is shown is ‘No entries yet…’
    The rights on .entries and .banlist are 777.
    Is there a way to solve this soon? Because the site must be online tomorrow and it seems that this is the only thing that needs an answer.
    Thanks.

    Dave

  335. Bart: There is no background color set for the main script – only a few form elements, so technically it should be transparent and just use whatever your page background is set to. As far as semi-transparency on form elements, not all browsers support opacity levels, and even some of the ones that do, will not always apply it properly to form elements, as often times form elements are defined more by the browser/OS than the CSS, which is why it can be difficult to make forms always look exactly the same. So no, there is nothing currently in the CSS for this script that should be doing this.

    Leon: One possible issue I see, is that when viewing your site with the ‘www’ prefix, the image will usually not show, because the path to the verification image does not have the www in it. On most servers, http://www.example.com and example.com are seen as two different domains, and sessions will generally not work across domains. If this is not the cause of all your errors, you might want to look through your error logs to see if any errors are being generated.

  336. 275
    Bart

    Very nice piece of PHP. I have a question though. Is it possible to get the background 100% transparant and the commentboxes 50% transparant? I assume it is somewhere in the CSS file, but I can’t fond it anywhere.

  337. Nice script, it’s just that it’s tempremental, one minute it works, next minute it doesn’t, it of course could and most probably be server side stuff, but ……the image verification works when I initially set it up then later on it doesn’t show up ? and no-one can post.

    Tried it with Safari, Firefox and Camino same problem with all browsers, strange !

    Unix Server, Mac Panther (10.3.9)

    Here: http://www.eyepl.co.uk/danny/guest/ddgb.php

    Leon

  338. 273
    trQ

    thxx. now we r waiting for new features form you :)

  339. This script now includes a Turkish language file :)

  340. trQ: I am always happy to get new translations. Glad you like the script :)

  341. 270
    trQ

    Really good script in terms of both image verification and default css design, and be able to understand config and index page coding. If it requires , I can right now translate a turkish copy for you.thx

  342. Wayne: That error means that something was output (even just white space) to the browser before the session_start line was executed. Since it says line 1 of the config file, it sounds like there is an extra line at the top of the config file that does not need to be there. The very first thing in the file should be the start of the PHP declaration.

  343. Hello,

    I installed v.2.4 of the GB, put in the path to the gb and verify php files, created, uploaded and set the permissions of the .entries and .banlist files, and this is what I got when trying to access the GB –

    Warning: session_start() [function.session-start]: Cannot send session cookie – headers already sent by (output started at /home/gwebwor/public_html/ddgb/guestbook/config.php:1) in /home/gwebwor/public_html/ddgb/guestbook/config.php on line 184

    I also do not see the verification graphic so i cannot make a post.

    Please advise,

    Wayne

  344. Hugo: Thanks :) Glad it worked out for you.

  345. Hi Admin,

    Today I installed the script and it works perfectly. Thank you very much. I will Paypal a donation shortly.

  346. okmrin: Can you post a link?

  347. 264
    okmrin seis

    buddy … am trying to use your guestbook in my site …but its not showing varification code. first there was a problem with GD, but now i have solved this one ..though its not working ..any idea where can be fault.
    inspite of this …this is really a simple and gr8 guestbook. i like it vary much.
    keep it up on ur work.
    cheers to you !!

  348. nice work tghx

  349. HÃ¥vard: I made another small modification. It should have been skipping some of the loops when no entries exist – it should be ok now, but let me know :)

  350. http://www.elisabethoghaavard.no/gjestebok/ddgb.php

    Warning: Invalid argument supplied for foreach() in /home/elisabe/public_html/gjestebok/ddgb.php on line 1102

    When I log in, it disappears, but it doesn’t look good when everyone can see the error information when they visit it.. :/

  351. 260
    Ronald van Doorn

    Tried the new version. No luck to day! Same error.
    But thanks for the quick respons.
    I’ve made some modifications in the layout, I like login to the left etc.
    I’m not gonna make money out of it, its for a music band. the Fans are driving me crazy with the current GB.

  352. Ronald: I just uploaded a new version with a small change – please let me know if it works for you :) The only file changed is ddgp.php (I did not change the version number)

    As far as what you can do with the script – I have not actually given it a ‘proper’ license, but feel free to make modifications. Just do not remove the credits, and if you post it to your site, be sure to mention where it is from :) Aside from that, the script is free to do with what you will – although making money off of it is highly frowned upon :)

  353. 258
    Ronald van Doorn

    Thanks for this great guestbook. I was searching for a GB without SQL, but with IP-ban and couldn’t find any that was simple enough. I like the language-files to edit the dialogs. One minor problem. When the GB is empty and i’m not logged in i get this error.
    Warning: Invalid argument supplied for foreach() in /www/hosts/www.normaal.nl/html/hb/ddgb.php on line 1096

    When i have entries or i’m logged on the error goes away. So it isn’t a showstopper. just something for the minor buglist ;)

    What can i change in the code? eg what Licenses (GNU, GPL etc) has it? Can i change everything i want?

  354. Glad it is working nicely for everyone :)

    As a side note, It is safe to keep your old config file if you are upgrading from the previous version (this is not always the case of course – sometimes things get changed in it).

  355. 256
    Suss

    Nice work Admin!
    Thanks for the clickable smilies!
    I have added some more smilies, and it worked fine. :)

    I have a tips for everyone who want to paste old entries from another guestbook and have problem whith date/time.
    Use this date-to-epoch-converter at http://esqsoft.com/javascript_examples/date-to-epoch.htm

    Thanks
    Suss, Sweden

  356. Me too – thanks Admin.

  357. Hi, I replaced config.php, ddgb.php, and ddgb-verify.php and now it works perfectly. GOOD JOB :)

    Dave

  358. If you’re upgrading… which files need to be replaced?

    Thanks!

  359. Version 2.4 has been released!

    The issues some of you were having with posts not being displayed properly (when comment moderation was enabled) should be 100% fixed now. Also, smilies are now clickable (you can simply click on one to add it to your comment). A few other bugs have been fixed as well.

  360. Paul: Those issues are currently being looked into :) I am hoping to have the next revision out soon which will fix a few little things.

  361. Re posting 249 – extra info

    * Moderation is TRUE but modnotice does not show.
    * When new item posted, return page shows _INTRO
    * When return to guestbook – some of previous posts show but not all
    * Login as Admin – approve entry – everything great.

    Ideas appreciated.

  362. Hi

    Getting same problem as Ernesto – just downloaded from site, so guess its the latest.

  363. Hi Admin,

    Any chance you could email the zip file for the 1.31 version release? Thank you!

  364. Pam: Since this script does not send mail, unless you add code in yourself, I could not say.

  365. Hi Admin,

    I’m having an interesting thing happening… I had a new entry (which turned out to be spam, ugh) and received an email verification for it. Since the receipt of the first one, I’ve gotten that email 5 more times. That’s never happened before, never with the old script anyway. Do you have any idea what might be causing this to happen?

    Thanks!
    Pam

  366. I’m not using the image-verification. It’s weird because every now and then I don’t get the error and I can edit the existing posts—and can continue to until I launch a new browser. Then the problem repeats and I receive the “Do not try to edit entries unless you are logged in!” error again. Any idea what in the config file may be causing the strife?

  367. Matt: You may want to double-check your config files – it does not suond like you are doing anything wrong though. Does the verification image give you any problems at all?

    Ernesto: Sure.

  368. Love this script. One question–when I log in as admin, it allows me to see the posts and gives me links to edit, delete, ban. However, when I click on any of the links, it gives me an error: “Do not try to edit entries unless you are logged in!” Did I do something wrong????

  369. 242
    Ernesto Guzman

    Aliester, Yes, I am using the latest version, 2.31. Should I email u my site?

  370. Ernesto: This was a bug in the previous version. Are you running the latest release?

    Suss: That is a good idea – I will look into that :)

  371. 240
    Suss

    Hi Admin
    I found this script nearly a week ago. No problem at all! I’m have no problem configure it so it works with my sites background and so on… But I must ask you about smiles… Is it possible in any way to configure smiles so they are clickable = so they atomaticly shows in textarea whitout having to copy the smile-code? I’m trying with javascript but I get a major error. Please give me a hint how to do.

    Sorry my writing-English is bad, hope you now what I mean.

    Suss

  372. 239
    Ernesto Guzman

    Whenever a new post is made, all the guestbook entries aren’t visible. When I go approve/delete newest entry in the guestbook, then the guestbook entries are visible. This is wrong, correct? What can I do to fix this?

  373. Thanks for all of your help Admin! I fixed the email function (from comment 70) and everything is working perfectly now! Thanks again!

  374. Tommy: It can be tricky to write scripts that will work on 100% of the servers out there without requiring any modifications at all :) If you are interested, I can help you get it installed for a small fee. Email me if you are interested.

  375. Yes – that code is in there, on the first line of the html.

  376. Tommy: Did you add the session_start code to the top of the page you are calling the script from? Is this the latest version? 2.31?

  377. Just got the script installed and the Verify image does not display. Any idea why not?
    http://www.tommyandcindy.com/guestbook.php

  378. Pam: There is info on both these topics further down in the comments :)

  379. Ok, that’s fixed and upgraded now! I have one other question, is there a way to get website links to open in a new window? Also, is there a way with this new script to be notified via email when a new entry has been added? Thanks!

  380. Thank you very much Admin! It’s working great now!!

  381. I just sent you an email Admin. Thanks for your help!

  382. Version 2.31 has been released – this should hopefully take care of the rest of the session issues some of you have been having (especially those of you on Windows servers).

    This version now has a separate verification image file, and a new option in the config, to point to it.

    Pam: If you want to try this new update, if it still does not work for you, email me.

  383. When I attempt to upgrade to the new version, I get the following error.

    Warning: require_once(language/english.php) [function.require-once]: failed to open stream: No such file or directory in /home/billrin5/public_html/chatterbox/config.php on line 169

    Fatal error: require_once() [function.require]: Failed opening required ‘language/english.php’ (include_path=’.:/usr/lib/php:/usr/local/lib/php’) in /home/billrin5/public_html/chatterbox/config.php on line 169

    The script is running here; http://www.chatterboxquartet.com/guestbook.php

    I’m stumped. Would you lend some assistance please?

    Thank you!

    P.S. I’ve reset it to the original code until I can figure out how to fix it.

  384. Wesley: I am emailing you.

  385. Just redownloaded it and I’ve noticed that the $site_domain line is no longer there. I guess you are parsing it from the script_path. Anyway, still the same error. :(
    This is the only line I’ve updated from the download:
    $script_path = “http://www.wesley.net/ddgb/ddgb.php”;

  386. Wesley: On second thought, re-download the script – I just made a tiny change :)

  387. Wesley: Did you enter your base domain name in the config file? It is used for session processing.

  388. The script works fine without the image verification, but once I have the image verification on, i get “No verification code generated!” on both IE 6 and Firefox 1.5.0.7. I even have the entire ddgb marked as writable on the W2K server both on the site config and file directory rights. I have vBulletin running on the same server with image verification on as well and it’s running fine. So i know the image engine should work fine. Please help.

  389. I have upgraded to v2.3 and its working fine as usual. :)

    I am NOT using the moderate feature so I cannot tell the difference.

    Thanks Admin! :D

  390. Hi Admin,
    You can ignore my email — I was finally able to get the new version — Had to go to IE and download it — I don’t know why FF would not release the cache – Will test it now — Thanks!

    Dave

  391. woot works no to figure out how to change to color and other things !!!

    thanks a tond for your help

  392. ahh hold sec had two ‘

  393. okay set it back to defualt difernt error now
    Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/turbov6c/public_html/guest/config.php on line 72

  394. Andrew: The path needs to be left as default, unless you rename the data directory. You cannot use a full URL to the file, it needs to be a relative path. I would try the setting it came with.

  395. Dave: Yes. I just downloaded it from the link above to test, and it shows 2.3 – maybe it is downloading a cached version from your browser? If it does not work, let me know and I will email it to you.

  396. Hi Admin,
    Have you posted v2.3 yet? I downloaded and tested without checking and I got the same thing — then I did check and the script (ddgb.php) still says that it is v2.2.

    Dave

  397. okay i fixed my typo……. but still not working…… any other ideas? huge thanks for the help !!!!

  398. i set to 777 on the folder and 666 for the file……

    its in there but its says 0kb was i suppose t leave the path to it default? i changed it to web link

  399. Andrew: Actually, it looks like you have ‘entries’ mispelled in your config file – this is why it cannot find your file.

  400. Andrew: That is not the error I see when I pull up your guestbook. It looks like you are missing the .entries file. Maybe it did not get uploaded? Did you set the permissions on it?

  401. sorry forgot the error

    Parse error: parse error, unexpected T_STRING in /home/turbov6c/public_html/guest/config.php on line 56

  402. hello how do i do this? i’m new to code but the bots are pissing me off. i can’t get this to diplay

  403. Version 2.3 has been released! It fixes a few little bugs, including the problem of some entries not displaying when using the moderation feature, as well as some session improvements.

    If you are upgrading from 2.2, all you need is the updated ddgb.php and config.php

    Dave: Fixed ;)

  404. Hi Admin,
    Thank you for such a quick reply. I redownloaded the package and reconfigured it, then re uploaded all the files including the blank .entries file. I started testing by adding an entry, approving and then adding another. As I went on, up to seven entries, it seems that only the first entry disappears. This happens even when using the script standalone. It must be someway that my server is writing the .entries file — maybe the blank line at the end? I have tried to eliminate it but the pesky thing seems to keep coming back. I will just add my own entry as a “first” entry and let it go away from time to time.

    I want to commend you on a great product and on superb support. I have not seen such good or quick support on paid products. I will be sending you some support soon.

    Thanks
    Dave

  405. The guestbook script now includes a Dutch language file!

  406. Dave: I just tested the option with my copy, since I generally have my demo guestbook set to auto-approve, but I could not re-create the problem.

    You could always try a fresh copy of the script just to make sure something did not happen to the code. I am not sure what else it could be.

  407. Hi Admin,
    First, Thank you for such a great product. I am also using your contact script on my website. I do have a problem though. The script (v2.2) is installed and working called from another page, I have implemented the approval option and the email notification code, according to instructions I found here. My problem is that when an entry is submitted for approval, the other entries disappear, until I approve the entry. Right now the .entries file has 2 entries in it #1 is approved and #2 is pending but when you look at the guestbook it is blank (http://www.fryplace.com/ddgb/fryplacegb.php). If I dont require approval everything seems to work okay (although I did not test that extensively).

    Thanks.

  408. Richard: I am sending you an email.

  409. I have put up a fresh copy of the guestbook, with no modifications, at http://www.oakes.org.uk/ddgb/ddgb.php
    It still doesn’t work with internet explorer, but does with firefox. Hmmm… any thoughts?
    Cheers

  410. Yes, in the setting it reads $standalone = TRUE;

  411. Richard: Do you have it set to run as a stand-alone script in the options?

  412. Hi!
    When I sign the guestbook in Firefox, I fill out the form, hit the button and it works fine. But using internet explorer I hit the button and get an error “No verification code generated!” even though the image is there and I’ve entered the characters.
    Any thoughts?
    Many thanks

  413. A new copy of the script has been uploaded. The version is still the same, but two new language files are included – Swedish and Portuguese!

  414. Rune: Windows does not like files without prefixes, so you cannot create the files there. You should still be able to upload them though. Keep in mind that files with no prefix are considered ‘hidden’ on most FTP servers, so you may not see them after you upload them. Most FTP clients will let you view hidden files though (check the options). If not, try a different FTP client :)

  415. Hi Admin

    Concerning entries 187 190 191 and 193: Dont’ worry anymore, I have found a workaround myself.

    Cheers, m@

  416. 195
    Rune

    I cannot upload the files in the dat folder (those missing file names, they have only file extensions). I cannot even make such files myself on Windows XP. I don’t know anything about PHP, but I’ve seen it work fine on my PC many times, though I haven’t used it myself.

    I thought maybe it because the server doesn’t support files without names. Do you have any clues to what causes this problem?

  417. I ve just came across your Web site and wanted to pass on good wishes to you and your team on putting together such an extraordinary resource.
    ————————————————————————-

  418. Hi Admin

    Since I have not yet received any email, I think I gave a false adress. Please resend to the mailadress given here-by.
    Thanks in advance.
    m@

  419. m@: Please see my email.

  420. Hi Admin,
    I sent you a french variant of your language file. Maybe you want to itegrate it in upcomming releases. You have really done a great job!
    Keep on!
    m@

  421. … sorry for the buged entry! Again:
    Witht the $script_path set to the actual ddgb.php-file (in the subdirectory), I get the following error message, when forcing to show the image behind the broken link (http://…/de/guestbook/ddgb.php?v=1):

    
    Warning: main() [function.main]: open_basedir restriction in effect. File(/usr/share/pear/guestbook/config.php) is not within the allowed path(s): ([...]/httpdocs:/tmp) in [...]/httpdocs/de/guestbook/ddgb.php on line 25
    
    Warning: main(guestbook/config.php) [function.main]: failed to open stream: Operation not permitted in [...]/httpdocs/de/guestbook/ddgb.php on line 25
    
    Fatal error: main() [function.require]: Failed opening required 'guestbook/config.php' (include_path='.:/usr/share/pear') in [...]/httpdocs/de/guestbook/ddgb.php on line 25
    

    hope that shows the problem.
    Thanks in advance,
    m@

  422. 189
    Kris

    Thanks Admin, works like a charm!

  423. Kris: Take a look at the language file to see where that text is found – then search for the keyword it uses to replace with the text – that will show you the location.

    m@: The verification image is output by the verification file. It does not actually save the image anywhere – it generates it and outputs it to the browser on the fly. It sounds like you need to make sure it is pointing to the correct place for the verification image.

  424. Hi Admin,
    I modified your code (NOT standalone) to have all the code-files and -subdirectories in a seperate subdirectory called “guestbook”: I added guestbook/" to all the links in the config file and everything works just fine but the verification image doesn’t show up anymore in both forms (”entry” and “login”).

    where are the generated verification images stored / from where are they integrated?

    Thanks in advance,
    m@

  425. 186
    Kris

    Hi Admin,
    Way back up in message #70 you gave some instructions in receiving an email after the guestbook has been signed. I’m having trouble finding the exact line you mentioned:

    echo ‘Entry added!’;

    I’m assuming it’s gone with the latest update of the script?
    Can I still add:

    mail(’user@domain.com’, ‘New Guestbook Entry’, ‘A New Guestbook Entry was added!’);

    and where would I add it?

    Thanks for your time,
    Kris

  426. scratch all of that, it’s working fine…just a dumb mistake by me…sorry

    Keep up the great work!!

  427. Hi Admin,
    I’ve just installed your guestbook script (which was so simple to do and easily configurable…thank you!!) and I’m having trouble getting the verification image to show up. I’ve checked my server for GD support and it passed. I’ve tested in Firefox, IE and Opera and all three show broken image or just nothing at all. If I disable verification, the guestbook functions perfectly. What am I overlooking or doing wrong?

    Thanks for your time,
    Kris

  428. Thanks

  429. Thanks for a nice work

  430. A new language file has been added: Swedish. It will be included in the next release, but for now you can download it separately in the ‘Additional Language Downloads’ section above.

  431. DYPHASE: Just remove this line in header.php:

    <link href="<?php echo $css_file ?>" rel="stylesheet" type="text/css" />

    And then remove this code from ddgb.php:

    	echo "<style type=\"text/css\">\n<!-- ";
    	include ($css_file);
    	echo "-->\n</style>";

  432. Hello,

    nice script. It works without any problems on my site. But I have one question. Can you make an option to disable css-import (ddgb.css) ? I want to use my-own-css+guestbook-cms (imported from ddgb.css) ONLY IN THE HEAD of my site. Even if I delete “ddgb.css” in the config file of your script, your script sends something like:

    
    --style/css
    can´t find file xxx
    style/css --
    

    But I don´t want to have ANY CSS-Lines in the body of my document.

    Maybe the following will explain it:

    ——— my website structure ———-

    - php sessionstart
    - doctype
    - html
    - head
    - css (of my site)
    - /head
    - body

    - my content with logo and navbar and description

    - php guestbook include
    (unfortunately this also inserts the guestbook-css-code here, but i would like to have css-code only in the header of my document)

    - /body
    - /html

    —————————————–

    Sorry for my bad english. I hope you understand what I mean.

  433. wesley: I will consider that for the next update :)

  434. 177
    wesley

    great script! is t possible to include something that when somebody entered a comment that i will recieve an email on my email adress????

  435. 176
    Bill

    Thanks very much for the GMT code Vinaay :)

  436. Vinaay: Ah I see what you mean. It just needs to re-generate a new code when the form is submitted. I will also add in an option for numbering the guestbook posts with the next update :)

  437. Hi Admin

    1.
    This does not happen in your Form mailer. With the Form Mailer, if you refresh the page it gives an Error! Invalid verification code!

    Can this feature not be made available on the Guestbook Script?

    2.
    You responded to my Post No. 172 and now you would be responding to probably my Post No. 174. Can such Post Nos. be displayed with each message posted in the Guestbook?

    Cheers

  438. Vinaay: Refreshing the page and having the form re-submit is a pretty standard ‘feature’ of 99% of html forms unfortunately.

    Also, to split up the guestbook into multiple pages, just set the option to show X posts on each page, and it should split up automatically.

  439. In Response to #144 & #145

    Hi Bill

    To display my local time, I have modified this line (ddgb.php),

    date(_FORMAT_DATE, $data['timestamp'])

    To

    gmdate(_FORMAT_DATE, $data['timestamp']+19800)

    “gmdate” is for the date and time AT GMT (Greenwich, London). It remains same in summers and winters. Time in India is always 5.5 hours ahead (one time zone for the whole country and no daylight saving changes). 5.5 hours = 19800 seconds.

    As you can see, I have added 19800 seconds to GMT and my pages always display time correctly.

    You can add (+) or subtract (-) seconds as per your local time. Remember, this does not take care of Daylight Saving Time.

    Admin, I have put your guestbook at http://petition.gayrights.in. After submitting the form, it displays, “Entry added. Return to …”

    Now, at this stage, if we press F5 / Refresh the page, the message gets posted again. Press F5 and it is posted again. This will keep on repeating as long as the page is refreshed again and again.

    Whats the remedy? Did I overlook something or have I fiddled with the script or is this a bug?

    Moreover, how can we display the Post No. like 1, 2, 3, etc.. in the messages as can be seen on your pages?

    Cheers

    Vinaay Sharma

  440. Hola compas felicidades a todos los tepo hackers del mundo

  441. Just wanted to say hi and nice job on your website.

  442. Dirk: Glad to hear it. And no, it is not possible to read the password file. PHP is a server-side language, so the contents of the config file never even get sent to the user’s browser.

  443. Hello,
    forget about my last post – got it configured :)
    Is it impossible to read out the password from the config file even though it is not encrypted?

  444. Hello,
    I have installed your guestbook php pages under http://www.frantzen.de/guestbook/ddgb.php but I cannot even open the config.php – I get an empty screen!
    On the ddgb I cannot see the verification image.

    Can you help?

    Cheers
    Dirk

  445. Tommy: I will take a look at the log-out code again :) It should not be anything too serious though.

  446. 165
    Tommy

    Thanks, that fixed it :) Another thing that seems a bit odd, not sure if there is a bug or not but:
    After being logged in as administrator, and then logging out. It logs out, but when I re-enter the page again I am logged in again (without going to the login page).

  447. Tommy: Thanks for catching that ;) I just uploaded version 2.2 – it fixes the issue of the verification image not always showing up when running the script in non-standalone mode.

  448. Tommy: I will check it out when I get home today. It might be a bug.

  449. 162
    Tommy

    the verification image does not show up in the login page, but it shows up when adding a new comment.
    I use the non-standalone method. When right-click show picture on it say something like this “Picture “http://…gbok.php?v=1″ contents error and can therefor not been shown” (Displayed in my language, therefor freely translated into English.

    When I try to use standalone, it works also on admin.

    What might be the problem here?

  450. Joris: In your configuration, you need to point the new option to the actual path of the script itself (ddgb.php) – not the path to the file calling it. Try this:

    http://www.jtm-events.nl/guestbook/ddgb.php

  451. 160
    Joris

    thanx Admin, my last question :) . I tried to fix the Guestbook in my own site but now it doesn’t generate a vertification code anymore. what to do???
    http://www.jtm-events.nl/guestbook/index1.php

  452. Version 2.1 has been released.

    This is a relatively minor updated. If you are having problems running this script from another page you should download this. Otherwise it will not really affect you much.

    The script also now includes a Norwegian language file! :)

  453. Joris: You do not have the path set correctly. You are missing a sub-directory.

    Roncho: I cannot get that link to work. It sounds like some of the site’s CSS (for form elements) is taking precedence over the form’s own CSS.

    Mark-io: Always nice to hear from a happy user :)

  454. My guestbooks were being flooded by spambots at least 100 times a day. Now the level of abuse posts has dropped to zero (0!) thanks to your nifty little verification script… many many thanks for saving my sanity!

  455. Help! This is driving me crazy. I just can’t get the verification image to align with the input field on the contact page for a site I’m designing. Aaaaaaargh! If anyone can solve this, I’d be eternally grateful. The site is here http://www.ianmscott.com
    Thanks, in anticipation.

  456. 155
    Joris

    OK I changed it but now the picture with the vertification code isn’t displayed anymore. any idea???

  457. Joris: You need to set your script options – the reason the code is not working is because it is still pointing to my verification file on my server! :P

  458. 153
    Joris

    http://www.jtm-events.nl/guestbook/ddgb/ddgb/ddgb.php this is the link but I already set the chmod to 777.

  459. hay “Joris Says” it sound like you do not have the 666 or 777 on the entries and baned files that is what i got before i set those.

  460. <