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

Recent Members Sidebar

Discussion in 'Resource and Add-on Requests' started by DRE, Jun 7, 2012.

  1. DRE

    DRE Well-Known Member

  2. Coop1979

    Coop1979 Well-Known Member

    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.
     
    8thos likes this.
  3. DRE

    DRE Well-Known Member

  4. Coolhaus

    Coolhaus Member

Share This Page