Page 1 of 1

Guestbook 1.0 RC2 released

Posted: Tue May 30, 2006 1:24 am
by Dee
The Guestbook module now also works on websites running CMS Made Simple with a PostgreSQL database.
The second 1.0 Release Candidate can be downloaded here: http://dev.cmsmadesimple.org/frs/?group ... ase_id=479

To enable PostgreSQL the dateformat function/parameter had to be changed.
It no longer uses MySQL format, but uses PHP format now (mostly the same, but without %, see http://www.php.net/manual/function.date.php).

When you upgrade from RC1 and use dateformat with with the {cms_module} tag you'll have to change the format. When using a page of the Guestbook Content Type, simply open the page for editing and push the apply or submit button.

Also a new variable $e_mail_cloaked is assigned to the (database) guestbook entry template. This is the E-mail address with @ changed to and . to . If you use the default template, make use of it by restoring the template to default after upgrading.

Changes were made to the SQL code to solve some cases where it would be impossible to post any guestbook entries.

Changes:
  • The module now also works in combination with a PostgreSQL database.
  • Changed the input format for the dateformat parameter from MySQL format to PHP format.
  • A new variable is assigned to the (database) guestbookentry template: $e_mail_cloaked.
    This is the E-mail address, with @ replaced by and . by .
  • Extended the notification E-mail, it now sends the new guestbook entry in the notification message.
  • New Finnish translation and updated Dutch and Norwegian translations from the translation center.

Re: Guestbook 1.0 RC2 released

Posted: Wed May 31, 2006 9:35 am
by singha
Hi Dee,

how can i add a horizontal line between the displayed messages?

Thanks a lot . . . .

Re: Guestbook 1.0 RC2 released

Posted: Wed May 31, 2006 11:03 am
by Dee
The easiest way would be to add a horizontal ruler

Code: Select all

<hr width="100%" size="1" style="display: block" />
at the end of the message template.

For some reason hr is set to display: none in the default stylesheet, so you have to include style="display: block" (or use the stylesheet to show it).

The "neat way" would be something like adding

Code: Select all

<hr class="cms-guestbook-hr" />
at the end of the message template and add

Code: Select all

hr.cms-guestbook-hr { display: block; }
to the stylesheet.

Re: Guestbook 1.0 RC2 released

Posted: Wed May 31, 2006 12:39 pm
by singha
Thanks Dee,

i've made the easy way and it works  ::)

Re: Guestbook 1.0 RC2 released

Posted: Wed May 31, 2006 1:05 pm
by Dee
No problem. You did discover the installed Guestbook example stylesheet and attached it to the page template used? Without it (unstyled) the guestbook looks horrible...

Re: Guestbook 1.0 RC2 released

Posted: Wed May 31, 2006 4:46 pm
by Dee
It was brought to my attention that the Guestbook module 1.0 RC2 gives an error when PHP4 is used (not on PHP5):

Code: Select all

Warning: uniqid() expects at least 1 parameter, 0 given in classes/module/class.Guestbook.php on line 355
This can be fixed by changing the code on line 355 (will be changed in the next release) from

Code: Select all

$uid = uniqid();
to

Code: Select all

$uid = uniqid('');