Jump to content

Smarty/e-mail verification in styled link


Recommended Posts

Hello! I'm attempting to style my e-mail templates. I've gotten all of them working except those that already have an href that is generated in the smarty link. The standard link displays, breaking the current code and is not clickable. It shows as 'WEBDATA: *ALPHA-NUMERIC HASH*'. Any way to get it to display 'nicely'? Code and example below. Thanks!

<td align="center" valign="top" class="lh-1">
 <a href="{$client_email_verification_link}" class="btn bg-green border-green">
<span class="btn-span">Verify Me!</span>
 </a>
 </td>

 

Image 12-10-19 at 11.34 PM.jpg

Link to comment
Share on other sites

17 hours ago, Metahuman Network said:

Any way to get it to display 'nicely'?

you could try replacing...

<a href="{$client_email_verification_link}" class="btn bg-green border-green">

with...

<a href="{$whmcs_url}clientarea.php?verificationId={$client_email_verification_id}" class="btn bg-green border-green">
Link to comment
Share on other sites

On 12/12/2019 at 8:00 PM, string said:

<td align="center" valign="top" class="lh-1">
 <a href="{$client_email_verification_link|strip_tags:false}" class="btn bg-green border-green">
<span class="btn-span">Verify Me!</span>
 </a>
 </td>

"strip_tags:false" should work for you.

Thanks for sharing the code, Its a perfectly working.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated