Dedigeeks-Sean Posted January 28, 2017 Share Posted January 28, 2017 Hello, I am trying to use for example: {$client_email_verification_link} I want to enclose it in a enclosed kind of space as a common link, however, when you try and do this the link always becomes exaggerated to it's full length. How exactly do I enclose {$client_email_verification_link} in to a standard URL so it can be seen as "Confirm Email Address" without showing the entire link? 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted January 28, 2017 Share Posted January 28, 2017 Hi Sean, How exactly do I enclose {$client_email_verification_link} in to a standard URL so it can be seen as "Confirm Email Address" without showing the entire link? as the email templates use Smarty, you should be able to tweak it using some Smarty code... e.g if you strip out the html tags, you'll just be left with the link URL - which you can then use in a normal href link, image, button etc <a id="VerificationLink" href="{$client_email_verification_link|strip_tags:false}">Confirm Email Address</a> btw - you might not need the id= part depending on your email css. it is important to note, in v7, that in order to use the strip_tags function in an email template, you'll need to add 'strip_tags' to your Smarty Security Policy. 0 Quote Link to comment Share on other sites More sharing options...
Dedigeeks-Sean Posted January 28, 2017 Author Share Posted January 28, 2017 Thanks Brian, This actually works, I've never been good with these types of things, editing e-mails for example and using smarty tags was never something I dove in to. Though, have to admit, it works, and I am super happy as I can now go over all my links now and make these changes, it is so handy because it looks cleaner and far more professional than the long winded link. Hi Sean, as the email templates use Smarty, you should be able to tweak it using some Smarty code... e.g is you strip out the html tags, you'll just be left with the link URL - which you can then use in a normal href link, image, button etc <a id="VerificationLink" href="{$client_email_verification_link|strip_tags:false}">Confirm Email Address</a> btw - you might not need the id= part depending on your email css. it is important to note, in v7, that in order to use the strip_tags function in an email template, you'll need to add 'strip_tags' to your Smarty Security Policy. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.