Summary: Provide a simple guestbook.
Version:
Prerequisites: 2.??
Status:
Maintainer:
Categories:
Files
Notes and Comments
- Download and put guestbook.php in local/cookbook/
- Download and put guestbook-i18n-en.php or guestbook-i18n-nl.php in the cookbook folder.
- Add include_once("
$FarmD/cookbook/guestbook.php"); in your local/config.php file;
- Make a page for the guestbook (e.g., Guestbook.HomePage) and include the directive (:$Guestbook:) someplace on the guestbook page. The directive can be placed at the top or the bottom of the page. The dialog box opens at the position of the directive. Great guest book! Thank you all for this addition. Old Al.
Contributors
This was originally written by Zet (http://www.cube3d.de) for PmWiki v1 and kindly updated for PmWiki 2.x beta by Patrick Ogay at my request. I take zero credit for this addon and am only posting it here at Radu's request because Patrick seems to be busy.
The version posted above has been slightly modified from Patrick's version by:
- Changing the first line to <?php if (!defined('PmWiki')) exit(); (per the recommendation in the Module Guidelines).
- Commenting out the calls to TestLog (which caused errors).
- Certain minor stylistic changes.
Due to destructive spam attacks, this page is now password protected.
Comments
- The guestbook is translated in Dutch. Kenneth (02/24/2006)
- I've been having a configuration specific problem in pmwiki-2.0.beta48: Caspian (07/29/2005)
- I am using Guestbook, PITS, and Per Group Subdirectories. And there-in lies the problem. If I remove the Per Group Subdirectories option and make sure that Guestbook include_once('cookbook/guestbook.php'); is the first entry in the local/config.php it seems to work. However if I turn on the Per Group Subdirectories then Guestbook quits working. If I put Guestbook in after PITS include_once('cookbook/PITS.php');, PITS doesn't find its files correctly but Guestbook does work. pm did look at this a bit and said that he thought there was a problem in Guestbook and specifically with $pagename.
<SNIP> from an email from pm
The guestbook.php recipe takes some serious liberties with setting the value of $pagename -- in particular, it undoes any setting of $pagename that might've been done by a previous recipe or config.php setting. So, guestbook.php needs to be rewritten to not do this; in the meantime it means it must be loaded before anything else.
</SNIP>
Per Group Subdirectories being active is important to me and any help is appreciated.
- It works great for me, I'm very pleased with it. Oneida (03/18/2005)
- nice script :) but it looks like it doesn't work with Cookbook/CleanUrls. The form action wants to send the data to index.php/Forum/Guestbook -Uli
- Hmmm, I've had no problem with it working with CleanUrls. You might try posting your configuration on the mailing list, as people there are really great at helping to troubleshoot things like that. Oneida (03/23/2005)
- I just modified line 40 (use "?" instead "/"). Now it works. Holger (03/24/2005)
- Oddly enough, I had to modify line 40 to use "?n=" instead of "/", using v2beta51 - David A Spitzley (7/29/05)
- Could something like this be easily implemented now with AddDeleteLine? - Martin Fick
- Would you advise me what to change in the script to remove boxes "name" and "homepage" and to receive as senders name the $AuthId ? Jiri
- It is totally open for SPAM. I think there should be (at least) two additions: a Captcha as well as a possibility to not admit what Spammers like to post ... PKHG