Real Name instead of Username

I know in dolphin 6+ there was a thread to change the username with the real name / a space.


Basically i have removed the nickname from the join form and all is great, users can login in with their email. However around the site under the small thumb pictures as they have no nickname nothing appears. Is it possible to show the real / full name under the pictures throughout the site.

I was thinking as a solution their must be a function such as getNickname() where i can simply return the real name ? Im not sure if this would break any linkage within the site.

Quote · 26 Feb 2010

i need this also , plz help !

Quote · 17 Mar 2010

http://www.boonex.com/unity/forums/?action=goto&topic_id=Show-first-last-name-under-Avatar

Next time, please search the forums for an answer first before asking in a new topic.

BoonEx Certified Host: Zarconia.net - Fully Supported Shared and Dedicated for Dolphin
Quote · 17 Mar 2010

http://www.boonex.com/unity/forums/?action=goto&topic_id=Show-first-last-name-under-Avatar

Next time, please search the forums for an answer first before asking in a new topic.

that will never happen.

Regards,

DosDawg

When a GIG is not enough --> Terabyte Dolphin Technical Support - Server Management and Support
Quote · 17 Mar 2010

http://www.boonex.com/unity/forums/?action=goto&topic_id=Show-first-last-name-under-Avatar

Next time, please search the forums for an answer first before asking in a new topic.

that will never happen.

Regards,

DosDawg

But I can always dream.

BoonEx Certified Host: Zarconia.net - Fully Supported Shared and Dedicated for Dolphin
Quote · 17 Mar 2010

Try this....


Make sure you take a backup of your existing code /templates/base/scripts/BxBaseFunctions.php before any changes.

Edit the /templates/base/scripts/BxBaseFunctions.php

Search for the below piece of code (this will be around line number 268 to 270)

$aProfile = getProfileInfo($iId);
if (!$aProfile)
return '';

Add below line code just after the return '';

$dispname = $aProfile['FirstName'].' '.$aProfile['LastName'];

Next Search for the below piece of code (this will be around line number 330)

'nickName' => $sNick,

Change the above line  as below (from $sNick to $dispname)

'nickName' => $dispname,

Save the changes. Now you will get the First Name & last name instead of User name. You may remove the Last name from $dispname if you want only First name to display

Note: You May need to clean the cache

Another Day past.............................
Quote · 3 Apr 2010

 Can this work on the holde site as Wall too?

Try this....


Make sure you take a backup of your existing code /templates/base/scripts/BxBaseFunctions.php before any changes.

Edit the /templates/base/scripts/BxBaseFunctions.php

Search for the below piece of code (this will be around line number 268 to 270)

$aProfile = getProfileInfo($iId);
if (!$aProfile)
return '';

Add below line code just after the return '';

$dispname = $aProfile['FirstName'].' '.$aProfile['LastName'];

Next Search for the below piece of code (this will be around line number 330)

'nickName' => $sNick,

Change the above line  as below (from $sNick to $dispname)

'nickName' => $dispname,

 

Save the changes. Now you will get the First Name & last name instead of User name. You may remove the Last name from $dispname if you want only First name to display

Note: You May need to clean the cache

 

Quote · 2 Jun 2010

Have not tested it yet...but do you think it will work on email messages as well?

Also, if the first (or display) name will be used throughout the site, I'll like to ensure there's no two members with the same 'Display' name.  Where might I enter code to verify no duplicity in the firstname (the 'Display' name) variable?

Try this....


Make sure you take a backup of your existing code /templates/base/scripts/BxBaseFunctions.php before any changes.

Edit the /templates/base/scripts/BxBaseFunctions.php

Search for the below piece of code (this will be around line number 268 to 270)

$aProfile = getProfileInfo($iId);
if (!$aProfile)
return '';

Add below line code just after the return '';

$dispname = $aProfile['FirstName'].' '.$aProfile['LastName'];

Next Search for the below piece of code (this will be around line number 330)

'nickName' => $sNick,

Change the above line  as below (from $sNick to $dispname)

'nickName' => $dispname,

Save the changes. Now you will get the First Name & last name instead of User name. You may remove the Last name from $dispname if you want only First name to display

Note: You May need to clean the cache

Quote · 14 Jun 2010

Here you go:

http://www.boonex.com/forums/?action=live_tracker#topic/Show-First-Last-Name-under-Avatar-SOLUTION-.htm

Quote · 16 Feb 2012
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.