Lack of interest [XF 1.x] Rich usernames in find-members

This suggestion has been closed automatically because it did not receive enough votes over an extended period of time. If you wish to see this, please search for an open suggestion and, if you don't find any, post a new one.

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.

188862

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
This suggestion has been closed. Votes are no longer accepted.
Back
Top Bottom