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

AndBegin

Member
Everything was simple in XenForo 1.5.

1638550904992.webp


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.webp
    1638550929539.webp
    8.5 KB · Views: 4
Back
Top Bottom