Back to vBulletin Tips & Tricks

Stop Banned Users from being Newest Member
by bananalive 02 Jun 2009

Prevents Banned Users from Displaying in What's Going On? Statistics phrase: Welcome to our newest member
  1. Open file: includes/functions_databuild.php
  2. Find:
    PHP Code:
    $newuser $vbulletin->db->query_first("SELECT userid, username FROM " TABLE_PREFIX "user WHERE userid = $members[maxid]"); 
  3. Replace:
    PHP Code:
    $newuser $vbulletin->db->query_first("SELECT userid, username FROM " TABLE_PREFIX "user WHERE usergroupid != '8' ORDER BY userid DESC"); 
  4. Save File

Similar Mods

Hide Log Out Button From Banned Users - Template change only vBulletin 3.5 Template Modifications

vblts.ru supports vBulletin®, 2022-2024