Skip to Content Skip to Menu

[SOLVED] Redirect on registration

  • carin
  • carin
  • OFFLINE
  • Posts: 417
  • Thanks: 18
  • Karma: 0
8 years 8 months ago - 8 years 8 months ago #288637 by carin
[SOLVED] Redirect on registration was created by carin
Where do I specify the redirect after the registration form was submitted? I would like to display a welcome article surrounded by certain modules.

CB 2.0
Last edit: 8 years 8 months ago by krileon. Reason: Added [SOLVED] tag to subject

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 49447
  • Thanks: 8467
  • Karma: 1465
8 years 8 months ago #288656 by krileon
Replied by krileon on topic Redirect on registration
Redirect action in CB Auto Actions acting on onAfterSaveUserRegistration trigger.


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.

  • carin
  • carin
  • OFFLINE
  • Posts: 417
  • Thanks: 18
  • Karma: 0
8 years 8 months ago - 8 years 8 months ago #288682 by carin
Replied by carin on topic Redirect on registration
Thanks. Now I decided to have the registration/login form in a modal without an iframe (which works pretty well thanks to RegularLabs Modal extension) except for the redirect. How do I put the current url in that auto action? I tried "reload" which reloads the registration/login form instead of the current url that is visible in the browser, "return" looks for a module that does not exist, "goback" reloads the reg form which results in "no access".

I cant put the reg form in an iframe because then the main frame would not know about the login/registration and I would somehow need to reload the main frame manually.

CB 2.0
Last edit: 8 years 8 months ago by carin.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 49447
  • Thanks: 8467
  • Karma: 1465
8 years 8 months ago #288699 by krileon
Replied by krileon on topic Redirect on registration
You aren't going to be able to return to the previous page unless you send the return URL with the POST data. Your action is being performed after a PHP operation so the URL it sees is the saveregisters URL.


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.

  • carin
  • carin
  • OFFLINE
  • Posts: 417
  • Thanks: 18
  • Karma: 0
8 years 8 months ago #288702 by carin
Replied by carin on topic Redirect on registration
Ok, so how do I send the return URL with the POST data?

CB 2.0

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 49447
  • Thanks: 8467
  • Karma: 1465
8 years 8 months ago #288709 by krileon
Replied by krileon on topic Redirect on registration
You'd need to modify the registration form either by creating a custom fieldtype plugin that adds a hidden input with the current URL or you can try using CB Auto Actions acting on the registration form display trigger with a Code action then use jQuery to insert a hidden input with the current URL you'd then grab it in your action with [post_HIDDEN_INPUT_NAME].


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.

Moderators: beatnantkrileon
Powered by Kunena Forum