Using incubator project CB Code you could execute your PHP file on the CB trigger after registration. This would do what you're wanting. Aside from that you'll need to develop a new integration to execute your code or place the code directly into CBs core (not recommend and can't advise you as to how).
Please Log in to join the conversation.
cbimport( 'cb.authentication' );
$cbAuthenticate = new CBAuthentication();
$messagesToUser = array();
$alertmessages = array();
$redirect_url = 'LOGIN_REDIRECT_URL_HERE';
$resultError = $cbAuthenticate->login( $user->username, false, 0, 1, $redirect_url, $messagesToUser, $alertmessages, 0 );
if ( $resultError ) {
$user->_error = $resultError;
} else {
return ( count( $alertmessages ) > 0 ? stripslashes( implode( '<br />', $alertmessages ) ) : true );
}
You are out of date, please upgrade. Can not guarantee API functionality in previous releases.CB: 1.3
CBSUBS: 1.1.0
Please Log in to join the conversation.
Please Log in to join the conversation.
Please Log in to join the conversation.
<?php
global $_CB_framework, $mainframe;
if ( defined( 'JPATH_ADMINISTRATOR' ) ) {
if ( ! file_exists( JPATH_ADMINISTRATOR . '/components/com_comprofiler/plugin.foundation.php' ) ) {
echo 'CB not installed!';
return;
}
include_once( JPATH_ADMINISTRATOR . '/components/com_comprofiler/plugin.foundation.php' );
} else {
if ( ! file_exists( $mainframe->getCfg( 'absolute_path' ) . '/administrator/components/com_comprofiler/plugin.foundation.php' ) ) {
echo 'CB not installed!';
return;
}
include_once( $mainframe->getCfg( 'absolute_path' ) . '/administrator/components/com_comprofiler/plugin.foundation.php' );
}
cbimport( 'cb.authentication' );
$cbAuthenticate = new CBAuthentication();
$messagesToUser = array();
$alertmessages = array();
$redirect_url = 'index.php?option=com_comprofiler&Itemid=2&task=userDetails';
$resultError = $cbAuthenticate->login( $user->username, false, 0, 1, $redirect_url, $messagesToUser, $alertmessages, 0 );
if ( $resultError ) {
$user->_error = $resultError;
} else {
return ( count( $alertmessages ) > 0 ? stripslashes( implode( '<br />', $alertmessages ) ) : true );
}
?>
Please Log in to join the conversation.
Please Log in to join the conversation.