Member First Name in Banner on Basic Settings

Hi, me again haha, does anybody know how to get member name to display in the banner that you can edit on Basic Settings,

 

I have Tried <FirstName> and more, but can't get it right?

Quote · 28 Jun 2013

BUMP

Quote · 29 Jun 2013

BUMP

Quote · 29 Jun 2013

Edit /templates/base/scripts/BxBaseFunctions.php around line 539 search for this "function genSiteSplash()"

Replace this

return DesignBoxContent('', getParam('splash_code'), 3);

With this

$sContent   = getParam('splash_code');
$iProfileId = getLoggedId();
if($iProfileId) {
          $sContent   = str_replace('{RealName}', getUsername($iProfileId), $sContent);
}
return DesignBoxContent('', $sContent, 3);

Use this place holder for including RealName, assuming you have set FirstName as profile display name type in admin settings.

{RealName}

Done. Let me know if you only want FirstName and you are sure every profile will have a FirstName.

EDIT: For 7.1.x only.

so much to do....
Quote · 30 Jun 2013

If you could do one for just FirstName that would be great, I would like it to sa. Welcome back FirstName if possible

Also, is there any way to automatically update member banner in relation to time of day, such as Good Morning FirstName then in the nighttime it will say Good Afternoon and so on?

Quote · 30 Jun 2013

For First name change the code to this

$sContent   = getParam('splash_code');
$iProfileId = getLoggedId();
if($iProfileId) {
           $aProfile = getProfileInfo($iProfileId);
           $sContent   = str_replace('{FirstName}', $aProfile['FirstName'], $sContent);
}
return DesignBoxContent('', $sContent, 3);

For the Good Morning and Good Evening requires some extra work.

so much to do....
Quote · 30 Jun 2013

 

For First name change the code to this

$sContent   = getParam('splash_code');
$iProfileId = getLoggedId();
if($iProfileId) {
           $aProfile = getProfileInfo($iProfileId);
           $sContent   = str_replace('{FirstName}', $aProfile['FirstName'], $sContent);
}
return DesignBoxContent('', $sContent, 3);

For the Good Morning and Good Evening requires some extra work.

 still doing this for free... hmmm. Prashank, what happened to our deal? lol

ManOfTeal.COM a Proud UNA site, six years running strong!
Quote · 30 Jun 2013

 lol yeah i remember. Its not a big deal, have other stuff in the storage too Wink

 

For First name change the code to this

$sContent   = getParam('splash_code');
$iProfileId = getLoggedId();
if($iProfileId) {
           $aProfile = getProfileInfo($iProfileId);
           $sContent   = str_replace('{FirstName}', $aProfile['FirstName'], $sContent);
}
return DesignBoxContent('', $sContent, 3);

For the Good Morning and Good Evening requires some extra work.

 still doing this for free... hmmm. Prashank, what happened to our deal? lol

 

so much to do....
Quote · 30 Jun 2013

THANK YOU SO MUCH PRASHANK25

Quote · 30 Jun 2013
 
 
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.