https://www.icyphoenix.com/viewtopic.php?f=26&t=8358&p=55126#p55126
-----------------------------------
TheSteffen
Fri 03 Feb, 2012 09:09

Re: Exclude banned Calendar Bdays?
-----------------------------------
Hehehe, on phpBB3 you should have a look into phpbb_banlist => ban_userid

But I dont know how to change your code  :(

EDIT: Maybe you can combine with this mod

[b]Hide Banned Members From Memberlist on phpBB[/b]

OPEN [b]memberlist.php[/b]
FIND
[codeblock]// Get us some users :D[/codeblock]
Add before
[codeblock]//Begin: banned users hidden in memberlist_body
$sql = 'SELECT ban_userid
        FROM ' . BANLIST_TABLE . '
        WHERE ban_userid <> 0
        AND (ban_end >= ' . time() . ' OR ban_end = 0)';
$result = $db->sql_query($sql);      

$ban_list[] = array(0);    
while ($row = $db->sql_fetchrow($result))
{
    $ban_list[] = $row['ban_userid'];
}   
$db->sql_freeresult($result);
//End: banned users hidden in memberlist_body [/codeblock]

FIND
[codeblock]                    $user_list[] = (int) $row['user_id'];[/codeblock]
REPLACE WITH
[codeblock]                if (!in_array((int) $row['user_id'], $ban_list))//ban_list test line
                {
                    $user_list[] = (int) $row['user_id'];
                }  [/codeblock]


