Guestbook 1.0 RC2 released

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
Dee
Power Poster
Power Poster
Posts: 1197
Joined: Sun Mar 19, 2006 8:46 pm
Location: the Netherlands

Guestbook 1.0 RC2 released

Post 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.
Last edited by Anonymous on Tue May 30, 2006 2:17 am, edited 1 time in total.
User avatar
singha
Forum Members
Forum Members
Posts: 50
Joined: Tue May 23, 2006 7:52 am

Re: Guestbook 1.0 RC2 released

Post by singha »

Hi Dee,

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

Thanks a lot . . . .
Dee
Power Poster
Power Poster
Posts: 1197
Joined: Sun Mar 19, 2006 8:46 pm
Location: the Netherlands

Re: Guestbook 1.0 RC2 released

Post 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.
Last edited by Anonymous on Wed May 31, 2006 11:20 am, edited 1 time in total.
User avatar
singha
Forum Members
Forum Members
Posts: 50
Joined: Tue May 23, 2006 7:52 am

Re: Guestbook 1.0 RC2 released

Post by singha »

Thanks Dee,

i've made the easy way and it works  ::)
Dee
Power Poster
Power Poster
Posts: 1197
Joined: Sun Mar 19, 2006 8:46 pm
Location: the Netherlands

Re: Guestbook 1.0 RC2 released

Post 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...
Dee
Power Poster
Power Poster
Posts: 1197
Joined: Sun Mar 19, 2006 8:46 pm
Location: the Netherlands

Re: Guestbook 1.0 RC2 released

Post 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('');
Post Reply

Return to “Modules/Add-Ons”