I started using Advanced Guestbook in my gallery a few months ago, thanks to
this post from
TranzNDance, but soon I got unsatisfied with that raw integration with my CPG theme.
So, I modified guestbook core and template files to achieve a full visual integration (actual CPG theme applies to guestbook too, without specifying styles in guestbook admin panel), and an easier installation (no more need to manually create an integration file, enter DB settings etc.): actually, only admin panel runs still "stand-alone" (but opening in a separate window).
Tested with all default themes plus Connections and Greenflower
Demo:
http://vanrokken.altervista.org/guestbook.php?theme=paesaggiInstallation:
- Extract attached archive to your CPG root directory
- Give write permissions (at least 775) to these directories:
- /guestbook/public
- /guestbook/tmp
- Run /guestbook/install.php in your browser and follow configuration instructions
- Open /lang/your_language.php and add this code at the end of file (before ?> ):
// ------------------------------------------------------------------------- //
// File guestbook.php
// ------------------------------------------------------------------------- //
if (defined('GUESTBOOK_PHP')) {
$lang_guestbook_php = array(
'guestbook' => 'Guestbook', // "Guestbook" in your language
'contact' => 'Contact us', // "Contact us" in your language
);
}
- Now you can access guestbook from /guestbook.php (i.e. http://www.yourcpg.tld/guestbook.php) and admin panel - if logged in as Gallery admin - from the link on right top corner of guestbook area.
- Either custom link option in CPG configuration or mod suggested by calvinite are good ways to place a link in the Gallery submenu
- Since v. 1.0.3, you can have your guestbook act like a contact form, by placing in your sys or sub menu a "Contact us" link to
/guestbook.php?file=addentry&private=1
"Private message" flag in the "add entry" page will be automatically selected, so that message sent by user will appear only in admin panel "Private messages" section and in your mailbox (if private messages notification by email is enabled). A convenient header is displayed on top of the form (English and Italian only, other languages need adapting translation).
Upgrade: extract attached archive to your CPG root directory, replacing existing (old version) files
Changelog:
- 1.0.4 (11/5/2010)
- fixed bug in opening full size images attached to messages (thanks to Forty2)
- fixed admin panel footer
- 1.0.3 (27/5/2009)
- added check for "Private message" flag automatic selection (so Guestbook can act like a contact form)
- 1.0.2 (27/3/2009)
- fixed credits text in admin footer
- now guestbook language follows selection (or default one) in Coppermine
- fixed a bug with admin login (thanks to calvinite)
- 1.0.1 (26/3/2009)
- fixed a typo in readme file (thanks to calvinite)
- guestbook code updated to v. 2.4.4
- 1.0.0 (14/11/2008)
Feel free to post support requests, comments and suggestions in this thread