• 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!

TOPIC: CB and rs!form pro integration

CB and rs!form pro integration 11 years 7 months ago #25013

Hello there.

I have created a form with rs!form pro.


I need, when i click on register button, to create a new user in community builder.

I found an example where you update a value in cb here:
www.rsjoomla.com/support/documentation/v...mmunity-builder.html

I contacted community builder support page and they told me this:

//Answer from cb forum
Do not insert and do not update CB user rows using SQL. It absolutely has to be done through API. Using queries will not fire CB triggers and will cause any usage that depends on said triggers to fail. Example API usage as follows.

$user = CBuser::getMyUserDataInstance();
$user->storeDatabaseValue( 'cb_audio1', $_POST );

The above usage allows you to store a single column value while also firing triggers. If you need to store more you need to fire the profile update triggers manually before and after store().

Configure your HTML form to be a GET instead of a POST. Next using CB Auto Actions on the registration form display trigger with a Code action and Method set to jQuery. Now just set the fields values using jQuery from the GET values. Example as follows.

$( '#username' ).val( '[get_username]' );
//End of answer form cb forum

So, i have 4 cb fields called: firstname, lastname, password and email, and in rsform i have 4 fields called Name, Lastname, password and e-mail. So, when i click on register i need to create a cb user with the indications that cb forum administration told me (see above) and each field from rsform pro to be passed in the cb fields respectively.

Can you help me do this?

Thank you in advance
The administrator has disabled public write access.
  • 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!