[SOLVED] html code in the language file does not work

5 years 10 months ago - 5 years 10 months ago #305259 by GorYa
I'm trying to create a go to link button [confirm], but it does not work most likely because of an extra space in the end. Sample Code: <a href="[confirm]" target="_blank">Confirm e-mail address</a>. As a result I get the following:
<a href="link
" target="_blank">Confirm e-mail address</a>
Please tell me where to fix the error, since it is more likely that some character at the end of the line will move the line and does not allow the code to work. Sorry for my English

Please Log in to join the conversation.

5 years 10 months ago #305275 by krileon
Replied by krileon on topic html code in the language file does not work
Don't use [confirm] use [confirmlink] as [confirm] will add linebreaks.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in to join the conversation.

5 years 10 months ago - 5 years 10 months ago #305281 by GorYa
Thanks for the quick response. This solution really helps to get rid of the line break, but when I try to write
<p class="button"  style="text-align:left;"><a href="[confirmlink]" target="_blank" style="cursor: pointer; font-size:15px;  text-decoration: none; padding:7px 15px; color:#ffffff; background-color:#0079C1; border-radius:7px;">Confirm e-mail address</a></p>
the button with the link does not appear in the letter, only the html code is complete and of course the text.

This code is completely working. In what there can be a reason why in the letter it does not work?

Please Log in to join the conversation.

5 years 10 months ago #305305 by krileon
Replied by krileon on topic html code in the language file does not work
Be sure "Registration Email HTML" is set to "Yes" in CB > Configuration > Registration or the HTML will be escaped. Beyond that it's entirely up to your email client whether it wants to parse out HTML.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in to join the conversation.

5 years 10 months ago #305311 by GorYa
Thank you, everything works fine, I missed this item in the registration settings
The following user(s) said Thank You: krileon

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.203 seconds

Facebook Twitter LinkedIn