foreach loop member is staff

asma

Member
and another foreach loop question :D

i want to list all staff members in a drop down list, please help adjust this code

<select>
<xen:foreach loop all users >
<xen:if is= user type == 'staff'>
<option>username</option>
</xen:if>
</xen:foreach>
</select>
 
Have a look at the template sidebar_online_users as that uses a foreach loop to list the staff online now.
 
<xen:foreach loop= all users not just online value="$user">
<xen:if is="{$user.is_staff}">

this part is useful! thanks!

i found this page
Notable Members | XenForo Community

this is somehow what i want but in a drop down list with username only not all the details or links
 
Back
Top Bottom