format of e-mail address displayed in guestbook

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Locked
meulenb

format of e-mail address displayed in guestbook

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

Re: format of e-mail address displayed in guestbook

Post 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
meulenb

Re: format of e-mail address displayed in guestbook

Post by meulenb »

Ok thanks!
Locked

Return to “CMSMS Core”