Skip to Content Skip to Menu

How to set up CB so a new user created from a membership manager is synchronized

1 day 1 hour ago #340401 by STUCKSHUTTER
We use a membership manager plugin that creates a new user after subscribing. Our question is how best to configure "Allow User Registration" so the CB User Profile is synchronized. I don't think we'd want to have anyone create an account using CB.  Should the field be set to "Yes, Independent of CMS..." or something else?
As a follow up question, ar the Joomla and CB user tables synched automatically or if not, what should we do to have that happen as soon as possible once the CB profile is created?
Thanks for any help and insights.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48844
  • Thanks: 8347
  • Karma: 1449
1 day 1 hour ago #340402 by krileon
If possible I would recommend overriding the registration process in that extension to use CB API. The API to do this is documented below.

www.joomlapolis.com/documentation/127-community-builder/279-tutorials/18362-registering-a-user-through-cb-api

As a follow up question, ar the Joomla and CB user tables synched automatically

No, they are not synchronized automatically.

or if not, what should we do to have that happen as soon as possible once the CB profile is created?

You'd basically need to act on whatever event they have available for user registration, load the CB user object, the immediately store it. That would synchronize them. This can be as simple as doing the below CBs API has been loaded.
Code:
$user = new \CB\Database\Table\UserTable(); $user->load( USER_ID_HERE ); if ( $user->getInt( 'id', 0 ) ) { $user->store(); }

You'd probably be able to synchronize them using CB Auto Actions easily. Depending on the event though you'd need to be careful. CB user store runs normal Joomla user store events. So you don't want to accidently cause an infinite loop due to events.

Worth noting we've big changes coming regarding this with CB 3.x. We'll have more details when the time comes, but in short there won't be 2 profile storage logics anymore. CB having its own storage is a product of Joomla 1.x days when profiles couldn't really be extended. Now that they can be we'll be going in that direction.


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.

1 day 32 minutes ago #340404 by STUCKSHUTTER
Thanks a million Krileon, your recommendations are very comprehensive and we're excited to hear about the upcoming CB3.
Much appreciated!

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

1 day 1 minute ago #340405 by STUCKSHUTTER
Unfortunately, we are unable to override the user registration process in the plugin we're using.

Given that, what should the setting on the CB configuration field "Allow User Registration?"  We don't want to have anyone create an account using CB.  Should the field be set to "Yes, Independent of CMS..." or something else?
Thank you for your help.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48844
  • Thanks: 8347
  • Karma: 1449
23 hours 39 minutes ago #340406 by krileon
Are you using Joomla's registration or another 3rd party plugins registration? Normally to disable registration you'd set that setting to be same as the CMS then disable Joomla's registration. We don't have an option to explicitly disable CBs registration while keeping Joomla's as from the context of CB that's a non-functional CB install. If that's the case you'll probably just need to use CB Auto Actions to redirect away from CBs registration to Joomla's.

To be honest your life might be exceedingly more simple to use CB Paid Subscriptions if you need subscriptions. Is there a feature we're missing?


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.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48844
  • Thanks: 8347
  • Karma: 1449
23 hours 21 minutes ago #340407 by krileon
Maybe another option is if you don't need to collect payment at registration time you could use CBs registration then after they register or on first login send them to subscribe?


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