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!

Registration related question.

  • liaskas
  • liaskas
  • ONLINE
  • Posts: 471
  • Thanks: 40
  • Karma: 3
  • Add-ons
23 hours 46 minutes ago #342521 by liaskas
Registration related question. was created by liaskas
Hello...

After registration, the user confirms his e-mail by clicking on a link that leads him to a webpage with a welcome message and the following url.

.../profile/confirm?confirmcode=....

Is there a way to get some of his profile info on that page so that we can display a module according to the country and state he selected during registration?

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 49797
  • Thanks: 8512
  • Karma: 1465
23 hours 1 minute ago #342522 by krileon
Replied by krileon on topic Registration related question.
The confirmation message can be edited easily, but it is not passed through substitutions for personalization. For that you could use CB Auto Actions acting on onAfterUserConfirmation to inject or override the messages displayed to the user or use that trigger in a Redirect action and redirect them to a custom confirmation page displaying whatever you like. var5 of that trigger contains all the messages displayed to the user.


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.

  • liaskas
  • liaskas
  • ONLINE
  • Posts: 471
  • Thanks: 40
  • Karma: 3
  • Add-ons
22 hours 54 minutes ago #342523 by liaskas
Replied by liaskas on topic Registration related question.
Thank you for your reply.
If i redirect the user that is now confirming his email account to a custom page, will i be able to get info from his profile fields on that page?
If yes, can you please guide me?

Thank you in advance.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 49797
  • Thanks: 8512
  • Karma: 1465
20 hours 8 minutes ago #342525 by krileon
Replied by krileon on topic Registration related question.
Probably the easiest option is to just loop through the user messages and pass them through substitutions so you can just use substitutions in the language override. The below should work.

Global
Triggers: onAfterUserConfirmation
Type: Code
User: Automatic
Access: Everybody
Action
Method: PHP
Code:
Code:
if ( ! $variables['var5'] ) { return; } foreach ( $variables['var5'] as $i => $msg ) { $variables['var5'][$i] = $autoaction->string( $user, $msg ); }
Parameters
Reference Variables: Variable 5

Now all you should need to do is user language overrides and add your substitutions to the confirmation message strings.


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.

  • liaskas
  • liaskas
  • ONLINE
  • Posts: 471
  • Thanks: 40
  • Karma: 3
  • Add-ons
13 hours 10 minutes ago - 13 hours 9 minutes ago #342535 by liaskas
Replied by liaskas on topic Registration related question.
Thank you Krileon for your reply and the auto action example.

But this is not what i want. I want on (/profile/confirm?confirmcode=...) page, to get the confirming user country and age from his profile and show a module depending on his age and country.

Example:
User is from DE, age < 30 and gender = female -> Show module "module_1" on page /profile/confirm?confirmcode=...
User is from BU, age < 30 and gender = male -> Show module "module_2" on page /profile/confirm?confirmcode=...
User is from DE, age > 30 and gender = female -> Show module "module_1" on page /profile/confirm?confirmcode=...
User is from BU, age > 30 and gender = male -> Show module "module_2" on page /profile/confirm?confirmcode=...
...

We need to have access to the confirming user profile fields on page /profile/confirm?confirmcode=...

Maybe i was not clear on my previous post and i am sorry.

Is what we ask here possible and how?
Last edit: 13 hours 9 minutes ago by liaskas. Reason: Replaced wrong character.

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

Moderators: beatnantkrileon
Powered by Kunena Forum