Page 1 of 1

format of e-mail address displayed in guestbook

Posted: Tue Jan 09, 2007 8:26 pm
by meulenb
Hi,

after installing the latest version of the guestbook and giving it all the default settings (page, guestbook-stylesheet, etc) and making a test entry I notice the following:

in the entry-form I've added an e-mail address "firstname.lastname@email.com"

in the entry-list the address then appears as: "firstname lastname email com" so that's not quite nice.

How to overcome this?

Re: format of e-mail address displayed in guestbook

Posted: Tue Jan 09, 2007 8:31 pm
by Dee
Use $entries[entry].e_mail instead of $entries[entry].e_mail_cloaked.
In the Entry List Template change

Code: Select all

{if $entries[entry].e_mail}
	<span class="cms-guestbook-entry-email">
		{mailto address=$entries[entry].e_mail encode="hex" text=$entries[entry].e_mail_cloaked extra="title=\"`$titles.e_mail` `$entries[entry].sender`\""}
	</span>
{/if}
to

Code: Select all

{if $entries[entry].e_mail}
	<span class="cms-guestbook-entry-email">
		{mailto address=$entries[entry].e_mail encode="hex" text=$entries[entry].e_mail extra="title=\"`$titles.e_mail` `$entries[entry].sender`\""}
	</span>
{/if}
Regards,
D

Re: format of e-mail address displayed in guestbook

Posted: Wed Jan 10, 2007 6:54 am
by meulenb
Ok thanks!