Skip to Content Skip to Menu

CB Trigger to display modal dialogue box during login (onDuringLogin)

  • lylejover
  • lylejover
  • OFFLINE
  • Posts: 30
  • Thanks: 3
  • Karma: 1
10 years 5 months ago #245473 by lylejover
Hi,

We want to display a modal form asking for information from the user as soon as he/she is logged in (confirmed user existing) but before he/she is redirected to a page after login (e.g. My Profile). I'm looking at working with the CB Trigger onDuringLogin, but I do not understand how to use it. The documentation works well in defining the instantiation of the trigger, but how does it work?

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48478
  • Thanks: 8282
  • Karma: 1443
10 years 5 months ago #245474 by krileon
Login triggers are during PHP processing. You can't do any jQuery on them because there's nothing to output. You'd need to do the jQuery on a landing page of some sort.


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.

  • lylejover
  • lylejover
  • OFFLINE
  • Posts: 30
  • Thanks: 3
  • Karma: 1
10 years 5 months ago #245476 by lylejover
Hi krileon,

If my landing page is the user's profile, can I do the modal form on that then? What trigger would that require?

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48478
  • Thanks: 8282
  • Karma: 1443
10 years 5 months ago #245517 by krileon
Yes, you'd need to use CB Auto Actions and its Code action with Method set to jQuery then set the trigger to after profile display. You'd then need to write the needed jQuery to open a modal window.


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.

  • lylejover
  • lylejover
  • OFFLINE
  • Posts: 30
  • Thanks: 3
  • Karma: 1
10 years 5 months ago #245733 by lylejover
Hi krileon,

What if we're using something like no numbers to display it? NoNumber's Modal works simply if you use echo '{modal <link>}' .. What should be the correct Method? jQuery doesn't work.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48478
  • Thanks: 8282
  • Karma: 1443
10 years 5 months ago #245748 by krileon
You'd need to set the Method to HTML and the Return probably to Echo, but I've no idea if your plugin will pick this up or not.


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