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: 473
  • Thanks: 40
  • Karma: 3
  • Add-ons
2 days 16 hours 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: 49802
  • Thanks: 8513
  • Karma: 1465
2 days 16 hours 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: 473
  • Thanks: 40
  • Karma: 3
  • Add-ons
2 days 16 hours 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: 49802
  • Thanks: 8513
  • Karma: 1465
2 days 13 hours 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: 473
  • Thanks: 40
  • Karma: 3
  • Add-ons
2 days 6 hours ago - 2 days 6 hours 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: 2 days 6 hours ago by liaskas. Reason: Replaced wrong character.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 49802
  • Thanks: 8513
  • Karma: 1465
20 hours ago #342538 by krileon
Replied by krileon on topic Registration related question.
The only way to conditionally display content like that is with substitutions. You won't be able to do this from CB Content Module because it has no user to act on since they're not logged in.

The best I can suggest is to just replace the confirmation page entirely and redirect them away to language specific pages. That is doable with CB Auto Actions. The below should work.

Global
Triggers: onAfterUserConfirmation
Type: Redirect
User: Automatic
Access: Everybody
Conditions
Condition 1
Field: Custom > Value
Custom Value: [confirmed]
Operator: Equal To
Value: 1
Condition 2
Field: Custom > Value
Custom Value: [cb_country]
Operator: Equal To
Value: DE
Condition 3
Field: Custom > Value
Custom Value: [cb_gender]
Operator: Equal To
Value: female
Action
URL: YOUR_ARTICLE_URL_HERE

Replace YOUR_ARTICLE_URL_HERE with your language specific article so you can display whatever language specific content you want. I don't know how you're handling age so I didn't add that condition so you'll need to add that yourself.

I suppose another option is to auto login after confirmation. CB Auto Actions includes a system action for this already, but it requires their account to be fully confirmed and approved before it'll auto login. Then you could display whatever you like since they'll be logged in.


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.
The following user(s) said Thank You: liaskas

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

Moderators: beatnantkrileon
Powered by Kunena Forum