as we know, enabling the SEBLOD User Bridge plugin, each time a User is created/modified (in case the bridge is activated in a second moment), an Article will also be added automatically, and both will be linked. A profile URL will be created for the "Article" (we can manage it through the "Default Title" plugin option that define how the profile article will be titled).
Now, I need to define a Registration process like:
1 - Guests can Register to the site with joomla default basic fields: Username / Name / password (using the SEBLOD User Registration form, but also doing it with Joomla Registration form should not create any problem)... and they become "Registered"
3 - Confirmed can buy a Subscription and they become "Member Club"
4 - When They are "Member Club" new empty fields will appear on their Profile, always playing with field restrictions, and they'll can complete again their profile. At this moment, only this one, the User Bridge will be activated and the Article and its profile URL will be created (as defined). Please, How to have it working ? Is the "Access" field plugin the case (Joomla! User Object Plug-in for SEBLOD) ?
- update #_cck_core.pkb "with id of associated article id" = this mean the article has yet been created, when ? No, you have to create it.
But, automatically create an "Article" for each user and its customized Article profile URL is the SEBLOD User Bridge plugin work. How? When created, associate the Article ID as you explaned.
Am I missing anything ?
Not being a programmer, I countinue to suppose that implement a "Joomla Group (following ACL permissions)" field to the User Bridge plugin is the most simple solution and useful for all user. In that way a new feature is added to the plugin: when enabled, it will be activated (it will begin to run) only from that usergroup/ACL...
I'd like to hear from you opinions, suggestions etc.
// Create an object for the record we are going to update.
$object = new stdClass();
// Must be a valid primary key value.
$object->id = $config['pk'];
$object->pkb = $idFromTheArticleYouCreated;
// Update their details in the users table using id as the primary key.
$result = JFactory::getDbo()->updateObject('#__cck_core', $object, 'id');
This way you create the bridge exactly when you want to, and with control over the category etc...