if ( $userdata['session_logged_in'] )
{
$grupy_bez_reklam = "2"; //id grup rozdzielone przecinkami
$groups_selected = explode(',', $grupy_bez_reklam);
$in_groups_board = false;
$sql = "SELECT ug.group_id
FROM (" . USER_GROUP_TABLE . " ug, " . GROUPS_TABLE . " g)
WHERE ug.user_id = " . $userdata['user_id'] . "
AND g.group_id = ug.group_id
AND g.group_single_user = 0
AND ug.user_pending <> 1
ORDER BY g.group_order ASC";
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_MESSAGE, 'Can not find username');
}
if ( $row = $db->sql_fetchrow($result) )
{
do
{
if(@in_array($row['group_id'], $groups_selected))
$in_groups_board = true;
}
while ( $row = $db->sql_fetchrow($result) );
}
if($in_groups_board)
$advert_hide = true;
}
wstaw odpowienie id grup w powyższy kod
_________________ Poza forum pomagam tylko odpłatnie
• przenoszenie/łączenie/naprawianie baz danych
• instalacja/pisanie modów, aktualizacja for z zachowaniem modów
• programowanie php/mysql
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum