Please Log in to join the conversation.
$db =& JFactory::getDBO();
$user =& JFactory::getUser();
$uid = $user->id;
$db->setQuery("UPDATE #__comprofiler SET cb_audio1 = '".$_POST['form']['audio']."' WHERE user_id = '".$uid."'");
$db->query();
Please Log in to join the conversation.
$user = CBuser::getMyUserDataInstance();
$user->storeDatabaseValue( 'cb_audio1', $_POST['form']['audio'] );
$( '#username' ).val( '[get_username]' );
Please Log in to join the conversation.
Please Log in to join the conversation.
Yes, it's just jQuery so you can do whatever you like. You use [get_VARIABLE] to get variables from your URL. Please see my previous reply for an example usage.1. Can i have 2 fields e-mail and e-mail confirmation and pass those values to the cb_fields of cb registration page?
Yes.2. The same with the password value.
Please Log in to join the conversation.
$user = CBuser::getMyUserDataInstance();
$user->storeDatabaseValue( 'cb_audio1', $_POST['form']['audio'] );
$db =& JFactory::getDBO();
$user = CBuser::getMyUserDataInstance();
$uid = $user->id;
$user->storeDatabaseValue( 'cb_name', $_POST['form']['name'] );
$user->storeDatabaseValue( 'cb_email', $_POST['form']['e-mail'] );
$user->storeDatabaseValue( 'cb_password', $_POST['form']['password'] );
WHERE user_id = '".$uid."'
Please Log in to join the conversation.