Code: Select all
if ($user->data['username_clean']!='anonymous') { if ( !function_exists('group_memberships') ) { include_once($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 )); } }