Topic: Information by user group
Hello everyone, I have the following working code:
<?php if ($pun_user['is_guest'])
echo "Guest";
else echo "Member" ?>
Obviously I stripped it down to the basics to show what it does, but what I want it to do now is only echo "Member" if the currently logged in user is in a certain group. Let's call it "Member2".
How can I do this? I looked in extern.php and found the following block of code:
// Define a few commonly used constants
define('PUN_UNVERIFIED', 32000);
define('PUN_ADMIN', 1);
define('PUN_MOD', 2);
define('PUN_GUEST', 3);
define('PUN_MEMBER', 4);
And added this to the end of it:
define('PUN_MEMBER2', 5);
But I don't know what that did! Lol. Anyway, any help would be GREATLY appreciated.