hello, I am using SMF 1.1.11 and SSI.php file to recognize is user registered or not on my site.
But I have a problem, $context['user']['is_mod'] is not working.
For example if I put code:
if($context['user']['is_logged']){
echo 'Welcome ' . $context['user']['name'] . '!!!<br />';
if($context['user']['is_mod']){
echo 'You are moderator!!!';
}
if($context['user']['is_admin']){
echo 'You are admin!!!';
}
} else if($context['user']['is_guest']) {
echo 'Welcome Guest!!!';
} else {
die("dont know what you are so i killed you");
}
everything works fine except $context['user']['is_mod'], which is never active, not even if I am admin, user, global moderator or moderator
please help