Codeless
Active member
Hello , I'm new to xenforo development and trying to Override XenForo_ViewPublic_Helper_User::getUserFieldValueHtml using existing tutorials with no success
this is my listener
it is set to load at load_class_view ..
and this code doesn't work
any help would be appreciated
this is my listener
Code:
class CustomField_Listener {
public static function View($class, array &$extend)
{
if ($class == 'XenForo_ViewPublic_Helper_User')
{
$extend[] = 'CustomField_User';
}
}
}
and this code doesn't work
Code:
class CustomField_User extends XFCP_CustomField_User
{
public function getUserFieldValueHtml(array $field, $value = null)
{
return 'TEST';
}
}