By gromka on Monday, 30 May 2016
Posted in General Issues
Likes 0
Views 444
Votes 0
Hi,
In my Joomla real user name is name and surname.In blog page I want display only real name without surname. Where i can modify EasyBlog.
Thank you
Regards,
Rimantas
Hi there,

You can change the name display format by:
1. Click EasyBlog>Settings>Layout>Display Settings>Name Display Format
refer this screenshot: http://screencast.com/t/wUIuYFbr

Please give it a try
·
Monday, 30 May 2016 18:24
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi,
Thank you for answer.
I know that. I need real name. In my Joomla real user name is name and surname. But I want separate name from surname. Example: real name is Jon Bush - I want to show only Jon. There is example what i do in Jomsocial - my changes is :
$vsrs=explode(' ',$name);//nemigra
$name = $vsrs[0];//only name:


public function getDisplayName($rawFormat = false) {
$config = CFactory::getConfig();
$nameField = $config->getString('displayname');
$name = $this->$nameField;

$vsrs=explode(' ',$name);//nemigra
$name = $vsrs[0];//nemigra - only name

if ($name == '') {
if ($nameField == 'name') {
$nameField = 'username';
}
$name = $this->$nameField;
$vsrs=explode(' ',$name);//nemigra
$name = $vsrs[0];//nemigra - vien vardo rodymas
if ($name == '') {
$name = JText::_('COM_COMMUNITY_DELETED_USER');
}
}

if ($rawFormat) {
return $name;
}

//CFactory::load( 'helpers' , 'string' );

return CStringHelper::escape($name);
}


Where I can do like that in EasyBlog.
Regards,
Rimantas
·
Tuesday, 31 May 2016 13:33
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Rimantas,

You can modify it in this file: ../administrator/components/com_easyblog/tables/profile.php under this function: getName().
·
Tuesday, 31 May 2016 15:59
·
0 Likes
·
0 Votes
·
0 Comments
·
Thank you
·
Tuesday, 31 May 2016 19:05
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello,

You're welcome.
·
Tuesday, 31 May 2016 19:05
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post