Remove banned members from Who's Online

by linkzy - 15-01-2015, 08:42 AM
لا إله إلا الله‎
Posts:
6,344
Joined:
Jan 2015
Likes:
315
Credits:
30
Reputation:
169
3 Years of Service
#1
OP
Posted: 15-01-2015, 08:42 AM (This post was last modified: 15-01-2015, 09:04 AM by Aoki.)
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:
Please register or login in order to unlock hidden content.

thus preventing usergroup with group id of 7 (banned group) from displaying.
| A- Best forever .. | Legend - ;) | Addicted | Senpai | sad | Sensei | H | fdigl |
[Image: gZD4Fba.png]

The last reply on this thread is older than a month. Please do not unnecessarily bump it.
Register an account or login to reply
Create an account
Create a free account today and start posting right away. It only takes a few seconds.
Login
Log into an existing account.
1 Guest(s)