Change breadcrumbs display name from nickname to real name...

Do you know what code is needed to be changed to display a member's realname, rather than nickname, in the breadcrumbs area?

"Welcome Real Name. Account. Logout."

Quote · 7 Jun 2011

templates/base/scripts/BxBaseMenu.php

 

function genBreadcrumb($aPath = array())

 

//--- Get additional links(right side) ---//
        $sAddons = "";
        if(isMember()) {
            $aProfile = getProfileInfo();           

            $sAddons = _t('_Hello member', $aProfile['NickName']);
            $sAddons .= ' <a href="' . $this->sSiteUrl . 'member.php">' . _t('_sys_breadcrumb_account') . '</a>';
            $sAddons .= ' <a href="' . $this->sSiteUrl . 'logout.php">' . _t('_sys_breadcrumb_logout') . '</a>';
        }
        else {
            $sAddons = _t('_Hello member', _t('_sys_breadcrumb_guest'));
            $sAddons .= ' <a href="' . $this->sSiteUrl . 'join.php">' . _t('_sys_breadcrumb_join') . '</a>';
            $sAddons .= ' <a href="javascript:void(0)" onclick="showPopupLoginForm(); return false;">' . _t('_sys_breadcrumb_login') . '</a>';
        }

 

-------------

Replace bold line with this:

 

$sFirst = $aProfile['FirstName'];
$sLast = $aProfile['LastName'];
$sFullName = $sFirst . ' ' . $sLast;

$sAddons = _t('_Hello member', $sFullName);

//$sAddons = _t('_Hello member', $aProfile['NickName']);

Quote · 7 Jun 2011

Great quick response! Excellent work, does exactly what we required - thanks a lot! If any other users want to make this change too, remember to alter the code in the template you're using.

Quote · 8 Jun 2011

7.0.8 update.

It's in the same area, a bit further down.

Around line 880

Quote · 7 Dec 2011
 
 
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.