
i really like this bbcode
but, is there any way to hide users from specified groups? i have an group called "inactive" and dont want to show these usernames up in the dropdown

Moderators: BNa, Sekuro, 4seven
// Username [BBCode] / (c) 4seven / 2011
$sql = "SELECT user_id, username, user_colour
FROM " . USERS_TABLE . "
WHERE user_type IN (" . USER_FOUNDER . ', ' . USER_NORMAL . ")
ORDER BY username_clean";
$result = $db->sql_query($sql);
// enter the user id's which should'nt be visible in bbcode-username-list
$userid_arr = array(2, 58, 62);
// Username [BBCode] / (c) 4seven / 2011
$sql = "SELECT user_id, username, user_colour
FROM " . USERS_TABLE . "
WHERE user_type IN (" . USER_FOUNDER . ', ' . USER_NORMAL . ")
AND " . $db->sql_in_set('user_id', $userid_arr, false) . "
ORDER BY username_clean";
$result = $db->sql_query($sql);
Users browsing this forum: No registered users and 8 guests