Skip to Content Skip to Menu

🎃 Happy Halloween! Treat yourself with an awesome discount on memberships! Get 20% off now with code SPOOKY-2024!

[SOLVED] Auto actions conditional settings

  • andrew432
  • andrew432
  • OFFLINE
  • Posts: 72
  • Thanks: 8
  • Karma: 2
11 years 2 weeks ago - 11 years 1 week ago #235426 by andrew432
I have set up auto actions to redirect non registered users who click a link to a CB Subs protected page to a Joomla article (pre-registration page), and not the CB registration page using onBeforeRegisterForm.

After doing this I can't find a way to get to the registration page without the trigger redirecting the user to my pre-registration page.

In auto actions, there's Conditional, I tried a few options including
htmlentities
does contain
member-registration.html

but can't get this to work, is there a method of doing this?

regards,
Andrew

Joomla 2.5.14, standard SEF URL's with suffix
CB 1.9
CB Subs 3.0.0
Last edit: 11 years 1 week ago by krileon.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48473
  • Thanks: 8281
  • Karma: 1443
11 years 2 weeks ago #235442 by krileon
Replied by krileon on topic Auto actions conditional settings
You're using a trigger that always fires on CB registration form display. You've basically locked your site from registration doing this. I'm guessing you want to prevent CBSubs individual plans registration pages? If so you can condition for the plans variable being in the URL as follows.

Conditional: [get_plans] Is Empty

This should work for all plans registration pages as you should be sent to a page with a URL similar to the below.

index.php?option=com_comprofiler&task=pluginclass&plugin=cbpaidsubscriptions&do=displayplans&plans=2


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.

  • andrew432
  • andrew432
  • OFFLINE
  • Posts: 72
  • Thanks: 8
  • Karma: 2
11 years 2 weeks ago #235448 by andrew432
Replied by andrew432 on topic Auto actions conditional settings
Thanks, I only have one plan but need to get the users to a pre-registration page, then click a link to get to to the registration.

The members part of the site has a members homepage menu item on a members menu that's protected with cb subs, the public part of the site has a menu alias to the members homepage.

On the public access part of the site using the trigger onBeforeRegisterForm I can send them to the pre-registration page index.php?option=com_content&view=article&id=8&Itemid=214 which is fine.

I tried adding Conditional: [get_plans] Is Empty but then my original fix doesn't work and goes to a registration page insted of pre-registration.

regards,
Andrew

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48473
  • Thanks: 8281
  • Karma: 1443
11 years 2 weeks ago #235461 by krileon
Replied by krileon on topic Auto actions conditional settings
Whoops, try Is Not Empty operator for that conditional. Basically you're checking if the plans variable exists in the 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.

  • andrew432
  • andrew432
  • OFFLINE
  • Posts: 72
  • Thanks: 8
  • Karma: 2
11 years 2 weeks ago #235467 by andrew432
Replied by andrew432 on topic Auto actions conditional settings
I tried Not Empty with the following three variations but it's still the same, after the initial redirect it still redirects to the original page.

1. With the sef url memberr-registration.html which links to index.php?option=com_comprofiler&task=registers

2. With index.php?option=com_comprofiler&task=registers

3. With the plan url using index.php?option=com_comprofiler&task=pluginclass&plugin=cbpaidsubscriptions&do=displayplans&plans=1

Is there any documentation for all of these conditional settings anywhere?

regards,
Andrew

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

  • andrew432
  • andrew432
  • OFFLINE
  • Posts: 72
  • Thanks: 8
  • Karma: 2
11 years 2 weeks ago #235470 by andrew432
Replied by andrew432 on topic Auto actions conditional settings
I set my menu item member-registration.html to external url and used index.php?option=com_comprofiler&task=pluginclass&plugin=cbpaidsubscriptions&do=displayplans&plans=1

I then put [get_plans] does not contain 1 and it now works

All I now need to do is get rid of the message at the top of my registration form.
"If you already have an account, please login first. Otherwise you need to register using this form. We suggest subscribing to following subscriptions:"

regards,
Andrew
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