// Setup user details.
$user_row = array (
'group_id' => $group_id,
'user_type' => $user_type,
'user_actkey' => $user_actkey,
'user_password' => phpbb_hash ($new_password),
'user_ip' => $user->ip,
'user_inactive_reason' => $user_inactive_reason,
'user_inactive_time' => $user_inactive_time,
'user_lastvisit' => time (),
'user_lang' => $user_row ['user_lang'],
'username' => $user_data ['user_login'],
'user_email' => $user_data ['user_email'],
'user_from' => $user_data ['user_location'],
'user_interests' => implode (', ', $user_data ['user_interests_simple']),
'user_website' => $user_data ['user_website']
);
// Register user.
// Username is mandatory.
if (! isset ($user_data ['user_login']) || strlen (trim ($user_data ['user_login'])) == 0)
{
$user_data ['user_login'] = $user_data ['identity_provider'] . 'User';
}
// Username must be unique.
if (oa_social_login::get_user_id_by_username ($user_data ['user_login']) !== false)
{
$i = 1;
$user_login_tmp = $user_data ['user_login'] . ($i);
while (oa_social_login::get_user_id_by_username ($user_login_tmp) !== false)
{
$user_login_tmp = $user_data ['user_login'] . ($i++);
}
$user_data ['user_login'] = $user_login_tmp;
Please sign in to your OneAll account to ask a new question or to contribute to the discussions.
Please click on the link below to connect to the forum with your OneAll account.
Answers
public static function extract_social_network_profile ($social_data)
At the
// Preferred Username.
section to be exact.
If someone else wants to know.
OK, thanks.. Have a nice day!