Skip to Content Skip to Menu

🎉 Black Friday sale — Last days! Great savings on Professional and Developer Memberships! Get 25% off now with code BLACK-FRIDAY-2025!

New user registration email and confirmation link [CONFIRM]

3 days 14 hours ago #342519 by researchware
We were using HTML in the "Pending Email Body" of the "Registration" tab of the Community Builder "Configuration" menu item that was using the [CONFIRM] substitution (for the user's email confirmation link) as follows"

<a href="[CONFIRM]">[CONFIRM]</a>

We now have a problem where the links (for exmaple fudgerpg.com/cb-profile/confirm.html?confirmcode=reg49aad41bf54f55922b1f11d983f0d2a901899b50 ) gets a
tabe beofre and after it. This created HTML of the form:

<a href="<br /> fudgerpg.com/cb-profile/confirm.html?confirmcode=reg49aad41bf54f55922b1f11d983f0d2a901899b50
">
fudgerpg.com/cb-profile/confirm.html?confirmcode=reg49aad41bf54f55922b1f11d983f0d2a901899b50


Which makes the link in the user's email unclickable. Of course then can still copy and paste it to their browser's URL bar. I am at a loss for how to get the CONFIRM url WITHOUT the leading and trailing <br /> tags? 

Can you advise on how to address this? I recognize that we're running an old version of CB at 2.11.0.

Thank you

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 49802
  • Thanks: 8513
  • Karma: 1465
3 days 14 hours ago #342520 by krileon
[confirm] includes HTML. If you want just the URL use [confirm_url]. That should solve your issue.


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 or Create an account to join the conversation.

3 days 10 hours ago #342526 by researchware
Thank you very much for the quick response!

Perhaps becuase we are still on Community Builder 2.11.0, unfortunately, the Substitution [CONFIRM_URL] does not perform any substitution. Using HTML of:

<p><a href="[CONFIRM_URL]">[CONFIRM]</a></p> produces the email HTML shown below (with a line before and after)

<p>Thank you for applying to become a member of the Fudge Community
  website. We have received your request and we will process it as soon
  as you confirm your email address by clicking on the following
  hyperlink:</p>
<br>
<p><a href="[confirm_url]" moz-do-not-send="true"><br>
    fudgerpg.com/cb-profile/confirm.html ?
    confirmcode=rega453f588fa6686508dddbb24938667f901899b52<br>
  </a></p>
<br>
<p>Once your email address is confirmed our moderators will be notified
  to continue the activation process. You will be notified by email of
  the progress of your registration process.</p>

<p><a href="[CONFIRM_URL]">[CONFIRM_URL]</a></p> which would be ideal, produces a link labeled [CONFIRM_URL]

I fear the issue may be that we're on CB 2.11.0 and the [confirm_url] is not present in that version.




 

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 49802
  • Thanks: 8513
  • Karma: 1465
3 days 10 hours ago - 3 days 10 hours ago #342528 by krileon
[confirm_url] has existed for quite awhile so your CB version is fine. Don't use [confirm] inside of an <a> element as it already inserts an <a> element. You're currently creating invalid HTML. The below should work fine for example.

Code:
<a href="[confirm_url]">[confirm_url]</a>


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.
Last edit: 3 days 10 hours ago by krileon.

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 49802
  • Thanks: 8513
  • Karma: 1465
3 days 10 hours ago #342529 by krileon
Ah, my mistake. The substitution is [confirmlink]. Sorry about that. The below will work.
Code:
<a href="[confirmlink]">[confirmlink]</a>


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 or Create an account to join the conversation.

3 days 10 hours ago #342530 by researchware
[confirmlink] Success! Thank you very much!
The following user(s) said Thank You: krileon

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum