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

Recent Members Sidebar

Coop1979

Well-known member
#2
There's a recent members sidebar by Borbole but I need one that will let you configure the amount of members to show on the sidebar ( or forum list display if I want to move it there) and not have it limited to a 24 hour interval. http://xenforo.com/community/resources/today-s-newest-members-sidebar.281/
I think you just need to go into /library/Borbole/TodayRegistrations/TodayRegistrations.php and change
Code:
$daycut = time() - 86400;
 
$todreg = $this->limitQueryResults('
            SELECT *
FROM xf_user
WHERE register_date >= ?
AND user_state = \'valid\'
AND is_banned = 0
GROUP BY user_id
ORDER BY register_date DESC
        ',$daycut);
to
Code:
$todreg = $this->limitQueryResults('
            SELECT *
FROM xf_user
WHERE register_date >= ?
AND user_state = \'valid\'
AND is_banned = 0
GROUP BY user_id
ORDER BY register_date DESC
LIMIT 10
        ');
You just need to change 'LIMIT 10' to be whatever # of records you want to show.