MyBB Community Forums

Full Version: To access a profilefield do i need to acess db?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
PHP Code:
// This isnt working even if my profilefield ID5 has the hex color there
if($userfields['fid5'])
{
        
$format "<span style=\"{$userfields['fid5']};\">{username}</span>";
}
// It always executes this part instead of the other
else
{
        
$ugroup $groupscache[$usergroup];
        
$format $ugroup['namestyle'];


What do i need to do to run the first block of code?
Do i need to assign anything?
Reference URL's