Show First / Last Name under Avatar (SOLUTION)

Hi Guys,

I've had this solution for a very long on my website. After getting multiple email's from people asking me how to do it, I have decided to share it with the rest of you guys. Here you go. Enjoy.

 

STEP: 1

edit file templates/base/scripts/BxBaseFunctions.php

Find:
$sNick = getNickname($iId);

Change it to:

$aInfo = getProfileInfo($iId);
$sNick = $aInfo['FirstName'].'<br>'.$aInfo['LastName'];

The reason I am using the <br> is to put first name on one line and last name on a 2nd line. You dont have to use the <br> you can just put an empty space there so the first/lastname is spaced out. Since the Avatar are so small the <br> is much better in my opinion.

 

STEP 2:

edit file templates/base/css/general.php

 

Find:

.thumb_username {
    font-size:11px;
    text-align:center;
    overflow:hidden;
    white-space: nowrap;
    height:15px;
    }

 

Replace with:

.thumb_username {
    font-size:11px;
    text-align:center;
    overflow:hidden;
    white-space: nowrap;
    height:30px;
    }

Quote · 16 Feb 2012

Here's an example on my site:

http://www.kartingconnect.com/browse.php

Quote · 16 Feb 2012

Nice site! I see you're a racer,,,

Thanks for the code. I might add this to my site...

I just started assembling it, check it out

 

http://usspeedwayseries.com

http://towtalk.net ... Hosted by Zarconia.net!
Quote · 16 Feb 2012

oooh damn SKY....Niceee, you race yourself? I would love to race one of those!!!

Quote · 17 Feb 2012

I made the change mentioned but there has been no change I can always write a full name in the "Username"

because when I write "chris john" for example is still not accepted

Quote · 21 Apr 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.