Page 1 of 1

[SOLVED] Need smarty REPLACE help for the FEU email notification

Posted: Mon May 03, 2010 11:30 pm
by janaf
Hi,

Newbie needs help. I want to remove some html tags from a smarty tag (the $link of the FEU email confirmation template)

I guess I should use smarty "replace", but can not find the right syntax.

Something like:

Code: Select all

{$link=replace:'<a href=':'':$link}
{$link=$link|replace:'</a>':'':$link}

<p>Follow <a href="{$link}">this link</a> to complete the registration.</p>
(yes, I know the syntax is bad, that's why I need help)


The failure rate of signups wit the default full long URL has been very high (lots of complaints / emails like "I can not sign up, the link does not work").

I think the reason is that many email clients can not wrap a long URL properly co I´d like to try if this idea works better.

Thanks in advance

Re: Need smarty REPLACE help for the FEU email notification

Posted: Tue May 04, 2010 6:00 am
by Jos

Re: Need smarty REPLACE help for the FEU email notification

Posted: Sat May 08, 2010 11:11 am
by janaf
Thanks for the tip.

I changed the FEU registration email text to this:

Code: Select all

<p>Please click <a href="{$link|strip_tags}">this link</a>  to complete your registration.</p>
So instead of displaying the default 3-4 lines long link in the message, the HTML format email the registrant gets a message like

"Please follow this link to complete your registration"

This dramatically decreased the failure rate from somewhere around 50% (based on 150 registrations) to zero (from the latest 10 registrations).