MyBB Tutorials

Remove banned members from Who's Online

Submitted by linkzy, , Thread ID: 48

Thread Closed
15-01-2015, 07:42 AM
This post was last modified: 15-01-2015, 08:04 AM by Aoki
#1
Open your index.php in your favorite editor and search for this block of code:


PHP Code:
$query $db->query("
        SELECT s.sid, s.ip, s.uid, s.time, s.location, s.location1, u.username, u.invisible, u.usergroup, u.displaygroup
        FROM "
.TABLE_PREFIX."sessions s
        LEFT JOIN "
.TABLE_PREFIX."users u ON (s.uid=u.uid)
        WHERE s.time>'
$timesearch'
        ORDER BY u.username ASC, s.time DESC
    "
); 

and change to:
Content locked
This content has been locked. Please login or register in order to unlock it.

thus preventing usergroup with group id of 7 (banned group) from displaying.
| A | v4hl| Addicted | Senpai | Sui | Sensei | H | fdigl |



Users browsing this thread: 2 Guest(s)