Hi,
I would like to know how can I change the order of the first name last name appearance on the LMS home page
when a user logs in it shows Welcome: Last Name First Name
I want it to be Welcome: First Name Last Name
| Posted by | Messages text |
|---|---|
![]() Total post : 2 Profile |
Written on : 04/07/2010 10:22 ( more than one month ) Object : First name last name Hi, I would like to know how can I change the order of the first name last name appearance on the LMS home page when a user logs in it shows Welcome: Last Name First Name I want it to be Welcome: First Name Last Name |
![]() Total post : 4 Profile |
Written on : 21/01/2011 15:32 ( more than one month ) Object : Re: First name last name I have the same question i need to change the order of First name Last name. Please can anybody help? |
![]() Total post : 39 Profile |
Written on : 24/01/2011 16:19 ( more than one month ) Object : Re: First name last name Hello, I think you would have to create a new function or to overload this function in 'lib' directory file : lib.user.php public function getUserName() {
$user_info = $this->aclManager->getUser(getLogUserId(), false); return ( $user_info[ACL_INFO_LASTNAME].$user_info[ACL_INFO_FIRSTNAME] ? $user_info[ACL_INFO_LASTNAME].' '.$user_info[ACL_INFO_FIRSTNAME] : $this->aclManager->relativeId($user_info[ACL_INFO_USERID]) ); }to something like this : public function getUserNameFirstLast() {
$user_info = $this->aclManager->getUser(getLogUserId(), false); return ( $user_info[ACL_INFO_FIRSTNAME].$user_info[ACL_INFO_LASTNAME] ? $user_info[ACL_INFO_FIRSTNAME].' '.$user_info[ACL_INFO_LASTNAME] : $this->aclManager->relativeId($user_info[ACL_INFO_USERID]) ); }And then call it in the standard template or your own template in each <div class="user_panel"> Docebo::user()->getUserNameFirstLast() Kinny Message modified by : Kinny on : 24/01/2011 16:20 |