1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

foreach loop member is staff

Discussion in 'XenForo Development Discussions' started by asma, Aug 22, 2015.

  1. asma

    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

    <xen:foreach loop all users >
    <xen:if is= user type == 'staff'>
  2. James

    James Well-Known Member

    Have a look at the template sidebar_online_users as that uses a foreach loop to list the staff online now.
  3. asma

    asma Member

    <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

Share This Page