Login  Register

Re: Search Users feature

Posted by Pedro on Dec 07, 2013; 4:04am
URL: https://support.nabble.com/Search-Users-feature-tp7588560p7588564.html

For search only in members group you can add the filter like this:
<macro name="searched_users_list" dot_parameter="do" requires="node_page">   
    <n.site_users. start="0" length="99999">
        <n.filter_by.contains_substring string="[n.to_lower_case.current_user.name/]+[n.to_lower_case.current_user.user_email/]" substring="[n.to_lower_case.searchName/]"/>
        <n.filter_by.current_user.is_in_group group="Members"  />
        <n.do/>
    </n.site_users.>
</macro>
I will think in a way to make it only for non admins.
My test forum.