Code: Select all
// The following assigns all _common_ variables that may be used at any point in a template.
Code: Select all
if ( !function_exists('group_memberships') )
{
include($phpbb_root_path . 'includes/functions_user.'.$phpEx);
}
$groups = group_memberships(false,$user->data['user_id']);
foreach ($groups as $grouprec)
{
$template->assign_vars(array(
'S_GROUP_' . $grouprec['group_id'] => true
));
}
Code: Select all
<!-- IF not S_GROUP_2 -->your ad code<!-- ENDIF -->
Code: Select all
// Send a proper content-language to the output
$user_lang = $user->lang['USER_LANG'];
if (strpos($user_lang, '-x-') !== false)
{
$user_lang = substr($user_lang, 0, strpos($user_lang, '-x-'));
}
#4381 if ( !function_exists('group_memberships') )
{
include($phpbb_root_path . 'includes/functions_user.'.$phpEx);
}
$groups = group_memberships(false,$user->data['user_id']);
foreach ($groups as $grouprec)
{
$template->assign_vars(array(
'S_GROUP_' . $grouprec['group_id'] => true
));
}
// The following assigns all _common_ variables that may be used at any point in a template.
Code: Select all
// The following assigns all _common_ variables that may be used at any point in a template.
Code: Select all
// application/xhtml+xml not used because of IE
header('Content-type: text/html; charset=UTF-8');
Code: Select all
#4509 if ( !function_exists('group_memberships') )
{
include($phpbb_root_path . 'includes/functions_user.'.$phpEx);
}
$groups = group_memberships(false,$user->data['user_id']);
foreach ($groups as $grouprec)
{
$template->assign_vars(array(
'S_GROUP_' . $grouprec['group_id'] => true
));
}
// application/xhtml+xml not used because of IE
header('Content-type: text/html; charset=UTF-8');
Code: Select all
http://rapidshare.com/files/444086644/functions.rar
Not sure what you mean but if you want those in group 2 to see the code it would bepatr0 wrote:Heh, it works, tnx bro.
Btw here <!-- IF not S_GROUP_2 -->your ad code<!-- ENDIF --> instead of 2 typing the id of group wich can see the code?
Code: Select all
<!-- IF S_GROUP_2 -->your ad code<!-- ENDIF -->