Topic: Variables for login and usergroup?

I´d like to give the visitor specified messages if he´s not logged in to the board or he´s in the default usergroup. For this i need the right variables and their possible values. i want to modify the header.php for it.

For example, special announcement for unregistered or not logged in users:

<?php
if ($login == no) {include ('datafile_loggofuser.php');}
?>

For example, special announcement for users in wrong usergroup

<?php
if (($login == yes) AND ($usergoup == default)) {include ('datafile_defaultuser.php');}
?>

For 2nd example the usergroup id would be fine as well. wink

Hope you´ll understand what i want to do, my english is not the best....

Thanks and regards!

Re: Variables for login and usergroup?

I think something like this should work:

<?php
if ($pun_user['g_id'] == PUN_GUEST)
    include PUN_ROOT.'datafile_loggofuser.php';
?>
<?php
if ($pun_user['g_id'] == PUN_MEMBER)
    include PUN_ROOT.'datafile_defaultuser.php';
?>

Re: Variables for login and usergroup?

Thanks, that´s the right hint i think! smile
So I can take the group id´s for both cases, very nice...

Re: Variables for login and usergroup?

well, $pun_user['is_guest'] can be used wink