if($profilefieldname == "field1") { $profilefield['value'] = $bbcode_parser->parse($userinfo["$profilefieldname"],0, true); }