Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

Fixes

This discussion is related to the User List addon.
edited December 2010 in Vanilla 2.0 - 2.8
To fix the random member and Limit number of users:
Change line 32+:
$this->Users = $SQL
->Select($Select)
->From($From)
->Join('UserRole r','u.UserID = r.UserID')
->Where($Where)
->Get();
To:
$this->Users = $SQL
->Select($Select)
->From($From)
->Join('UserRole r','u.UserID = r.UserID')
->Where($Where)
->OrderBy($Order)
->Limit($Limit)
->Get();

Andrew

Comments

  • AoleeAolee Hobbyist & Coder ✭✭
    hi andrew, how come only one user is being displayed in the member box? pls see www.pinoyau.info

    i tried to print_r the returned row values but only admin is really being fetched? but if i enable the photo, all three members are shown?
  • AoleeAolee Hobbyist & Coder ✭✭
    edited December 2010
    ok i got the the answer, it's on the setting, i have to tick " Show users that don't have a photo" sorry for my ignorance.
Sign In or Register to comment.