XF 2.2 Is it possible to display users when searching for a keyword?

AndBegin

New member
Everything was simple in XenForo 1.5.

1638550904992.png


I entered nic and got all available users whose nickname begins with nick

But...
How to do this under 2.x xenforo?


code xf 1.5:
HTML:
<xen:if is="{$search.users}">
    <xen:sidebar>
        <div class="section userResults avatarList">
            <div class="secondaryContent">
                <h3>{xen:phrase matched_users}</h3>
                <ul>
                    <xen:foreach loop="$search.users" value="$user">
                            <li class="userResult">
                                <xen:avatar user="$user" size="s" img="true" />
                                <xen:username user="$user" rich="true" />
                                <div class="userTitle">{xen:helper userTitle, $user}</div>
                            </li>
                    </xen:foreach>
                </ul>
            </div>
        </div>
    </xen:sidebar>
</xen:if>


Help please, I really need
 

Attachments

  • 1638550929539.png
    1638550929539.png
    67.9 KB · Views: 4
Top