WordPress Guestbook Generator Plugin

I created a couple of posts that demonstrated how to make a WordPress Guestbook. Some of you might have found it a bit daunting, so here’s a plugin that will do everything for you!

Plugin Name: Guestbook Generator
Description: Generates a guestbook for WordPress blogs. Once activated, click on Options > Guestbook Generator.
Version: 0.8
Author: Andrew dela Serna
Notice: Compatible only with WordPress 2.1. Support for older versions will continue but updates/upgrades will be focused on the newest versions of WordPress. Scroll down to download Version 0.7 which is designed for Wordress 2.0.X.

Features:

1. No files to edit. Just upload the plugin, activate it then run the generator.
2. Guestbook template seamlessly integrates with your current theme.
3. When changing themes, simply run the generator to create the necessary files.
4. Like a true-blue guestbook, entries are arranged from newest to oldest.
5. Remember the time when guestbooks were the “in” thing? Hopefully this plugin will bring back the ol’ days. Hehe.

Installation:

1. Download the plugin from http://www.alleba.com/blog/wp-downloads/guestbook-generator.zip. If you don’t want paged comments, download this one instead.
2. Extract and upload the contents of the archive to ‘yourserver.com/wp-content/plugins/guestbook-generator/’
3. Login to your WordPress admin panel and browse to the Plugins section.
4. Activate the Guestbook Generator plugin.
5. Go to Options > Guestbook Generator to create your guestbook.
6. That’s it!

On a side note, if you already followed my instructions from my previous posts, you have to delete your current guestbook page and guestbook template files (guestbook.php, guestcomments.php) for the plugin to work. However, I suggest that you stick to your guestbook if you already have a lot of people who signed it. You may use this plugin if you’re switching themes.

I have tested Guestbook Generator on a lot of themes. Some still required a little tweaking especially on the wording. You might want to check out my reloaded instructions if you decide to edit the files in the Theme Editor.

Lastly, since this is the initial release, I would love to hear your comments, complaints or suggestions. Hope you like it.

Update: There is an issue with the guestbook not being found/viewable right after generating it. I’ll fix this tomorrow. In the meantime, you can edit the guestbook and save it. That should do the trick.

0.2 Update: The above issue has been resolved and so far the plugin works perfectly in all the blogs I tested it on.

0.3 Update: Cleaned up some coding.

0.4 Update: Added better error handling. Reversed the order of comments from newest to oldest (Thanks Ulaan B.)

0.5 Update: Even more error handling. Noted issues with the older Default theme and K2 theme.

0.6 Update: Corrected to avoid errors with K2 theme.

0.7 Update: Fixed some replacement mechanisms that will avoid errors with any theme.

0.8 Update: Solved compatibility issues with WordPress 2.1.

0.9 Update: Added paged comments functionality. Requires the Paged Comments plugin.

Version 0.7 for WordPress 2.0.x
For those experiencing problems with chmoding your theme folder, please download this version (WordPress 2.0.x)

329 comments

  1. Hi
    I tested your plugin and found it wonderful.
    But is there any option to moderate entries?
    Sometimes it creates spam..

  2. hey
    i just uploaded all the files from your guestbook-template. but now it says “The required template files were not found in your current theme. Guestbook cannot be generated.”. I now copied the index.php, like you said some posts before and pasted the single.php in the guestbook plugin folder… but it still does no work.. can you tell me why?

  3. Hi…great plugin, but I can’t get the comments to reverse. I tried the (reverse array) code and it still does not work.

    If you or anyone here can help me with this it would be much appreicated.

    Thanks

  4. hey hey
    i had the plugin working but now it doesnt work to write in the guestbook….there are no fields at all…..
    what is wrong????

  5. I’m getting this when I try to set up my guest book.

    estbook Generator

    Warning: chmod() [function.chmod]: Operation not permitted in /home/goingsou/public_html/wordpress/wp-content/plugins/guestbook-generator/guestbook_utility.php on line 26

    Warning: fputs(): supplied argument is not a valid stream resource in /home/goingsou/public_html/wordpress/wp-content/plugins/guestbook-generator/guestbook_utility.php on line 44

    Warning: fputs(): supplied argument is not a valid stream resource in /home/goingsou/public_html/wordpress/wp-content/plugins/guestbook-generator/guestbook_utility.php on line 48

    Warning: fputs(): supplied argument is not a valid stream resource in /home/goingsou/public_html/wordpress/wp-content/plugins/guestbook-generator/guestbook_utility.php on line 48

    Warning: fputs(): supplied argument is not a valid stream resource in /home/goingsou/public_html/wordpress/wp-content/plugins/guestbook-generator/guestbook_utility.php on line 48

    Warning: fputs(): supplied argument is not a valid stream resource in /home/goingsou/public_html/wordpress/wp-content/plugins/guestbook-generator/guestbook_utility.php on line 48

    Warning: fputs(): supplied argument is not a valid stream resource in /home/goingsou/public_html/wordpress/wp-content/plugins/guestbook-generator/guestbook_utility.php on line 48

    Warning: fputs(): supplied argument is not a valid stream resource in /home/goingsou/public_html/wordpress/wp-content/plugins/guestbook-generator/guestbook_utility.php on line 48

    Warning: fputs(): supplied argument is not a valid stream resource in /home/goingsou/public_html/wordpress/wp-content/plugins/guestbook-generator/guestbook_utility.php on line 48

    Warning: fputs(): supplied argument is not a valid stream resource in /home/goingsou/public_html/wordpress/wp-content/plugins/guestbook-generator/guestbook_utility.php on line 48

    Warning: fputs(): supplied argument is not a valid stream resource in /home/goingsou/public_html/wordpress/wp-content/plugins/guestbook-generator/guestbook_utility.php on line 48

    Warning: fputs(): supplied argument is not a valid stream resource in /home/goingsou/public_html/wordpress/wp-content/plugins/guestbook-generator/guestbook_utility.php on line 48

    Warning: fputs(): supplied argument is not a valid stream resource in /home/goingsou/public_html/wordpress/wp-content/plugins/guestbook-generator/guestbook_utility.php on line 48

    Warning: fputs(): supplied argument is not a valid stream resource in /home/goingsou/public_html/wordpress/wp-content/plugins/guestbook-generator/guestbook_utility.php on line 48

    Warning: fputs(): supplied argument is not a valid stream resource in /home/goingsou/public_html/wordpress/wp-content/plugins/guestbook-generator/guestbook_utility.php on line 48

    Warning: fputs(): supplied argument is not a valid stream resource in /home/goingsou/public_html/wordpress/wp-content/plugins/guestbook-generator/guestbook_utility.php on line 48

    Warning: fputs(): supplied argument is not a valid stream resource in /home/goingsou/public_html/wordpress/wp-content/plugins/guestbook-generator/guestbook_utility.php on line 48

    Warning: fputs(): supplied argument is not a valid stream resource in /home/goingsou/public_html/wordpress/wp-content/plugins/guestbook-generator/guestbook_utility.php on line 48

    Warning: fputs(): supplied argument is no

  6. I added the Guestbook but when someone signs the guestbook they get 404 – PAGE NOT FOUND error if you go back to the guestbook page the message was posted but still get error message which will probably cause people to double/triple post same messages…

  7. Hello there,

    I believe I installed your Guestbook on my website and accidentally deleted the plugin. The Guestbook was fantastic and did what I wanted, I have tried on numerous occassions to re-install the plugin and start again, but nothing is being displayed on the page and it keeps brining up statements saying things already exist. For example:

    Guestbook Template Already Exists!
    Guestbook Comments Template Already Exists!
    Guestbook Page Already Exists!

    I have deleted the Guestbook page, removed guetbook.php and guestcomments.php from the directory and deleted the plugin from the wp admin panel – then downloaded the plugin again and tried to generate another guestbook – but I keep getting stuck.

    I am relatively new at WP and would appreciate a minute of your time to help me on this matter.

    If you can, please converse with me via my email address at davidbowen1@yahoo.co.uk.

    Thank you for your time.

    Kind regards,

    Dave

  8. Hi,

    This Guestbook seems to be exactly what I’m looking for.

    I need to enter the details from a previous Guestbook, into this one. I’m happy doing this, but then the dates, etc. will be incorrect.

    Is there a way to amend this once it’s been input?

    Thanks,
    Spencer

  9. How do I change the automatic category that the guestbook uses? I have changed all general settings to automatically use “guestbook” as the category, but it’s still using “events”.

    ThankS!

  10. Is there any way to show the recent entries on the top? Thanks very much for your help in advance. I love your GUESTBOOK and VERY MUCH APPRECIATE IT!!! Have a wonerful day.

    Peter

  11. Hello!

    Great plugin!!

    How would one do if one wants to translate the header “Guestbook” to the swedish equivalent “Gästbok” .. ?

    Thanks in advance! 🙂

  12. yo Andrew,

    is it because of upgrade wp 3.0 that the comments are back in the order from old to new?

    Pls let me know if there is something to do about it.

    Cheers!

  13. does your guestbook generator work with the recaptcha plugin? i just installed recaptcha and the guestbook doesn’t seem to be working anymore.

  14. Hello Andrew,

    very nice and usefull Plugin! Big THX from Aachen/Germany!

    It seems that i am not the only one who has the problem of correct order of the comments. I would like to sort newest – oldest. (Newest on Top).

    Maybe you, or someone else, has an Idea.
    I am Using WP 3.0.1 & Guestbook 0.8

  15. Where can i go to change the text “please sign my guestbook. Thanks!” >> i want to change this sentence.

  16. Hi Friedrich,

    Open up guestcomments.php in your theme editor and look for this line:

    foreach ($comments as $comment)

    change it to:

    foreach (array_reverse($comments) as $comment)

  17. Hi, I installed this plugin on a previous blog, just fine, thanks!!

    I just installed it on another blog, but i’m missing something, can’t get to add comments / entries?

    The page allows comments, and the all the files, single.php. comments.php guestbook.php and guestcomments.php are present.

    The plugin said that it generated the files successfully, and cmmoded it to 777?

    This is the site: http://www.scootdr.co.za/guestbook/

    Many thanks

  18. Great plugin, I have a couple of issues though:

    1) It is adding a small link that takes people back to one of the filmography pages, I have no idea why it’s picking that up, since it is not hard coded into and phpfiles.

    2) I also have turned off comments on pages but this one is generating that and I want it off.

    Can you help me? Please.

    Thanks

  19. Hi Andrew
    Have a problem with your Guestbook plugin, is shows on the web page in the menu, but the page does not exist in the “pages list” ….. even if I uninstall the plugin the menu item “GUESTBOOK” is still there ….

    help please

  20. @Soren: You will have to delete the page manually. Go to Admin and click on Pages.

    @Madvelvet: I checked your site and saw no problem. Have you solved it?

  21. @Soren: You will have to delete the page manually. Go to Admin and click on Pages.

    Thats exactly the problem, the page “guestbook” does not exist in the admin pages!! And even if I try creating a page named “guestbook” it aoutmatically gets named “guestbook-2”

  22. hey there,

    GREAT PLUGIN! ..but how can I disable the comment moderation (approval of first time comments) for comments posted in the guestbook, while leaving it enabled for the usual wordpress comments?

    regards

  23. Thanks for this great plugin.

    I was just trying to figure out how to change the order of the comments and I found the answer. I thought I would post it here for everyone else who is asking the same question…

    In WP 3 go to Discussion Settings and change Comments should be displayed with the OLDER comments at the top of each page to be NEWER

    Done

Comments are closed.