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] Redirect non logged in users to a fixed registration page

  • andrew432
  • andrew432
  • OFFLINE
  • Posts: 72
  • Thanks: 8
  • Karma: 2
11 years 2 weeks ago - 11 years 2 weeks ago #235213 by andrew432
I'm having a problem with the registration page, I need all registrations to be directed to a specific URL which comes from a hidden menu item which defines the template, and allows me to display my re-styled registration form, and CB-login module on the page.

At the moment I just get the standard registration form, displayed with a template for the members area which non members should not see. (This site has 2 templates, 1 for members, and 1 for non members)

The menu link is member-registration.html ,index.php?option=com_comprofiler&task=registers and displays the re-styled registration form in the correct template.

I installed CB Core Redirect which seems to have no effect with CB Subs so I unpublished it.

I installed auto actions and have tried the triggers onBeforeUserRegistration, onBeforeRegisterFormDisplay, and onBeforeRegisterForm but can't make it redirect to my page
I tried the following in URL
index.php?itemID=247 (247 is the menu item)
index.php?option=com_comprofiler&task=registersindex.php?&itemID=247
index.php?option=com_comprofiler&task=pluginclass&plugin=cbpaidsubscriptions&do=displayplans&plans=1&itemID=247

I can't make it redirect to the correct page and some help with this would be greatly appreciated.

regards,
Andrew

Joomla 2.5.14, standard SEF URL's with suffix
CB 1.9
CB Subs 3.0.0
Last edit: 11 years 2 weeks 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 #235224 by krileon
Create a Joomla menu link to CBs registration page. Then assign your template to this new menu link. Ensure your normal template is assigned to CBs profile menu link. This should give you the desired affect. Template assignment is purely based off Itemid, which is established by creating Joomla menu links. CB will use the registration menu link for its Itemid if it exists instead of the profile menu link Itemid.


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: andrew432

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 #235332 by andrew432
Thanks, simple, works great.
regards,
Andrew

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

Moderators: beatnantkrileon
Powered by Kunena Forum