Forums

CB Integration

apabiona 18 Jul, 2009
Hi!

I have been swimming in the forum looking for the solution but I can't seem to find any for my problemo (or am i blind?)

I'm using Chronoforms 3.1 RC5.3 and CB 1.2. For some reason I can't get my custom registration form to save on jos_comprofiler using the CB plugin. I flawlessly use the Joomla Registration plugin but when I use the CB Registration, it just doesn't save.
I have ticked the CB box on the plug in tab, on the forms management page I have configured the CB Registration plugin,
i have placed this on the before submit code to catch errors (copied from another thread)
<?php
$MyPlugins =& CFPlugins::getInstance($MyForm->formrow->id);
if($MyPlugins->cf_cb_registration['errors']){
$MyForm->addErrorMsg($MyPlugins->cf_cb_registration['errors']);
}
$MyForm->haltFunction["autogenerated_after_email"] = true;
?>

and tried this too
<?php
$MyForm =& CFChronoForm::getInstance('formnamehere');
$MyPlugins =& CFPlugins::getInstance($MyForm->formrow->id);
if($MyPlugins->cf_cb_registration['errors']){
$MyForm->formerrors = $MyPlugins->cf_cb_registration['errors'];
return;
}
?>


and i get no errors in return. The registration seemed to be successful but when i check the db no rows has been added.

what could i be missing? TIA!
GreyHead 18 Jul, 2009
Hi apabiona,

I recall reading somewhere here that there had been some table changes in the latest release of CB. Neither Max nor I use CB so we aren't very up to date. I don't think that the Plugin has changed for a long time. I'll add it to my 'to do' list to take a closer look.

The CB Plugin is also using some older code and probably does not show errors the same way as the Joomla Registration Plugin which has been updated to use the new code framework :-(

Bob
apabiona 20 Jul, 2009
Hi Bob,

Thanks for clarifying this.
I'll look further into it and see what I can do on my part.
daemonhunt 27 Jul, 2009
apabiona, I am using the CB Plugin flawlessly with latest versions of Chronoforms and CB, so not sure why you are having problems.

In the CB configuration it mistakenly says "Recommended setting: only through CB : set : "Yes" here and "No" in global site setting." but this is wrong. Set "Yes, independently of global site setting" in the CB Configuration REGISTRATION tab and also make sure "Allow User Registration" is checked in your Joomla configuration SYSTEM tab.

Ideally, make sure you are also using the CB login module.


I seem to be having problems with getting answers on this forum for my CB/Chronoforms questions as Bob keeps saying he doesn't have much experience with CB etc, but isn't actually redirecting us to someone who CAN help. My query to this is, someone created the CB plugin for Chronoforms, so someone must know how to help with CB integration questions?

I can help you a bit here apabiona, as I have been doing CB/Chronoforms work for the last 2 weeks.
I guess that is the point of a forum 😀

Anything else with your integration, just PM me and I'll see if I can help.
GreyHead 27 Jul, 2009
Hi daemonhunt,

See my short post here.

Bob
apabiona 30 Jul, 2009
thanks daemonhunt.

can you tell me the step by step procedure on how you're able to integrate CB with CF?
I may really sound as a noob but I also have spend quite some time with CF, but this is my first attempt to do CB integration

what i did is
select form --> activate CB registration plug in --> back to forms management --> select form and click on CB Registration Plugin at the left --> put appropriate field names in plugin general tab --> add code on the onSubmit code (not working)

result is NOT adding to the jos_comprofiler table but returns success on form submission. take note, i followed your instruction on the yes-no options on your previous post.

that's all.

another thing, does CB integration work with Joomla Registration? can they work together or need I use only one?

TIA!
apabiona 06 Aug, 2009
To update my post.

I still can't get CB plugin working with my current registration form.
BUT
I upgraded my CF and CB, made a new and simpler registration form and voila! the new user is now added to jos_comprofiler and jos_users!
phew!

the thing is it does not validate if username or email is unique. hmmmm... am further looking into it
GreyHead 07 Aug, 2009
Hi apabiona,

I think that the ChronoForms CB Plugin uses the Joomla validation for duplicate usernames and emails which should show sytem error messages. Sometimes these aren't visible if your template doesn't support them.

Bob
apabiona 07 Aug, 2009
Ah, let me try that on another template. thanks!
This topic is locked and no more replies can be posted.