Methods

Add user field HTML keys to the given list of fields.

addUserFieldsValueHtml(\XenForo_View $view, array $fields, array $values) 

Parameters

$fields

array

$values

array

Field values; pulls from field_value in fields if not specified here

Generates left and top CSS positions for a user avatar to be cropped within .avatarCropper

getAvatarCropCss(array $user) : array

Parameters

$user

array

Must contain avatar_width, avatar_height, avatar_crop_x and avatar_crop_y keys

Returns

array(top: Xpx; top: Ypx)

Gets the HTML value of the user field.

getUserFieldValueHtml(array $field, mixed $value) 

Parameters

$field

array

$value

mixed

Value of the field; if null, pulls from field_value in field