Skip to Content Skip to Menu

Problem with First Name and Last Name storage in BD

  • tribalion
  • tribalion
  • OFFLINE
  • Posts: 21
  • Thanks: 4
  • Karma: 0
6 years 7 months ago #303822 by tribalion
Ok I found

Modifiying the CBauthentification.php, line 275 (CB.2.1.4), replace
Code:
$posLname = strrpos( $user->name, ' ' );
By
Code:
$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 or Create an account to join the conversation.

  • pakordo
  • pakordo
  • OFFLINE
  • Posts: 4
  • Thanks: 0
  • Karma: 0
6 years 7 months 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 or Create an account to join the conversation.

  • tribalion
  • tribalion
  • OFFLINE
  • Posts: 21
  • Thanks: 4
  • Karma: 0
6 years 7 months 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 or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum