grisha2217
Active member
Hi all. When i trying to mention a user (but i don't remember him exact username and him avatar) in message, i got list of users and try to select right user. I think a color of username will helps to do right choose.
Solution:
Solution:
PHP:
<?php
class XenForo_ViewPublic_Member_Find extends XenForo_ViewPublic_Base
{
public function renderJson()
{
$results = array();
foreach ($this->_params['users'] AS $user)
{
$results[$user['username']] = array(
'avatar' => XenForo_Template_Helper_Core::callHelper('avatar', array($user, 's')),
'username' => '<span class="username">' . XenForo_Template_Helper_Core::callHelper('richusername', array($user)) . '</span>'
);
}
return array(
'results' => $results
);
}
}
Upvote
1