We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 39583
    • 103 Posts
    I'm trying get a list of all users in a specific group:

    [[!Peoples? &limit=`0` &active=`2` &usergroups=`Members` &tpl=`allPeople` &sortBy=`active`]]


    &active=`2` doesn't work for me. 0 & 1 works perfectly. But when I select 2 I only see the active ones like 1 does.
    Any suggestions of what might cause this?

    Modx 2.2.10 and the latest Peoples plugin.
      --
      André
      • 39583
      • 103 Posts
      Quote from: phacer at Mar 03, 2014, 09:39 AM
      I'm trying get a list of all users in a specific group:

      [[!Peoples? &limit=`0` &active=`2` &usergroups=`Members` &tpl=`allPeople` &sortBy=`active`]]


      &active=`2` doesn't work for me. 0 & 1 works perfectly. But when I select 2 I only see the active ones like 1 does.
      Any suggestions of what might cause this?

      Modx 2.2.10 and the latest Peoples plugin.


      Ok, If I remove this:
      if ($active < 2 || is_bool($active)) {
          $c->where(array(
              $userAlias.'.active' => $active,
          ));
      }
      


      lines 56 - 60 in the peoples snippet it works. But then it doesn't work in other places where I only want to see active users.
      Of course I can make a duplicate of this snippet with this change for that one place. But shouldn't this work anyway?
        --
        André