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

XF 1.5 Increase Newest Members on Member list

Discussion in 'XenForo Questions and Support' started by Welder, Oct 7, 2016.

  1. Welder

    Welder Member


    I would like to increase the number of newest members (avatars) shown in the sidebar on the member list page, not the notable members page.

    I've seen and installed:


    but it just works on the notable members page.

    I would just like to make a simple hard-code edit to change the numbers of newest members (avatars) on the member list page.

    Can someone please tell me how to do this? I've been looking for a while now and I'm getting very tired.
  2. Brogan

    Brogan XenForo Moderator Staff Member

    The value is hard-coded in the PHP file - it's not something which can be changed with a template edit.
  3. Welder

    Welder Member

    Well that's good news. At least I'm not going crazy trying to look for something that is not there. Then the next obvious question.. Where, What and How do I make this change. I am not template bias, I will make a change in a PHP file if I have to. :)

    Thanks Brogan
  4. wang

    wang Well-Known Member

    The file you must edit is Member.php and it can be found inside the ControllerPublic folder. Find this bit of code:

    // most recent registrations
    $latestUsers $userModel->getLatestUsers($criteria, array('limit' => 8));
    And change 8 to whatever number you want to the Newest Members block to display.
    wedgar likes this.
  5. Welder

    Welder Member

    That did it! Thank you so much. Now I can sleep. Thank you, thank you, thank you. (y)
  6. wang

    wang Well-Known Member

    You are welcome sir. Glad to have been of help :)

Share This Page