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

The place to talk about things that are related to CMS Made simple, but don't fit anywhere else.
Post Reply
janaf
Forum Members
Forum Members
Posts: 183
Joined: Sun Jan 10, 2010 7:02 pm

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

Post 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
Last edited by janaf on Sat May 08, 2010 11:12 am, edited 1 time in total.
janaf
Forum Members
Forum Members
Posts: 183
Joined: Sun Jan 10, 2010 7:02 pm

Re: Need smarty REPLACE help for the FEU email notification

Post 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).
Post Reply

Return to “The Lounge”