asma Member Aug 22, 2015 #1 and another foreach loop question 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>
and another foreach loop question 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>
J James Well-known member Aug 22, 2015 #2 Have a look at the template sidebar_online_users as that uses a foreach loop to list the staff online now.
Have a look at the template sidebar_online_users as that uses a foreach loop to list the staff online now.
asma Member Aug 22, 2015 #3 <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
<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