Problem with First Name and Last Name storage in BD

6 years 2 days ago #303822 by tribalion
Ok I found

Modifiying the CBauthentification.php, line 275 (CB.2.1.4), replace
$posLname = strrpos( $user->name, ' ' );
By
$posLname = strpos( $user->name, ' ' );
Formating the firstname as described above,
work for exemple with Jean-Marc De La Ménardière where De La Ménardière is only the lastname

Eric

Please Log in to join the conversation.

6 years 2 days ago #303830 by pakordo
Thanks for your workaround.

I developed a small cb plugin to avoid changes of names on joomla database. It works as described below:

1.- First login, first and last name is filled from ldap database (in my particular case all caps letters). Proceed to modify the First Name and Last Name on cb component to correct format.
2.- Second and following logins, joomla database is not changed and position of First and Last name mantain the desired format modified on step 1.

Do you need the plugin? or you solved the problem with your workaround...

Regards!

Please Log in to join the conversation.

6 years 1 day ago #303850 by tribalion
Thanks for proposing your plugin !
I'll not have the benefit of it as I need to update the field if anything change in A.Directory,
it work fine with my solution, just have to take care when updating CB.
Best

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.194 seconds

Facebook Twitter LinkedIn