is there a way to add a Predefined value infront of NickName?

I have some predefined values that I have setup, and I was wondering if there was a way to get the LKey of the value in the predefined list to show up infront of NickName on the front page?

 Let's say I have a field called Rank,

and lets say it has two values

 value                            LKey

rankprivate                   Private

rankgeneral                 General

 

The user selects Private in Profile Edit. Is there a way to get the nickname to say Private John instead of John?

I can make a function in profiles.inc.php to get rankprivate to show up just not the LKey.

Quote · 19 Apr 2012

I dont know what happened to all the other post. Im sorry about those. Firefox froze or something and when I hit submit it didnt submit the message so I clicked it several times.

I cant delete the other ones.

Quote · 19 Apr 2012

I was able to figured this out with the help of AntonLV

$sValue = $aProfile['Rank'];   <--- or whatever field name you have

$sNick = _t($GLOBALS['aPreValues']['Rank'][$sValue]['LKey'])." ".getFirstName($iId);

Quote · 20 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.