chsmith700
12-05-2009, 08:56 PM
Hello,
I am writing a custom script and having some issues verifying if a user is in a usergroup, not in the template file but in the PHP. I tried this but it doesnt seem to be working correctly, What am I doing wrong?
if ($userinfo['usergroupid'] == 6) {
somestuff
} else {
someotherstuff
}
I tried just doing an echo '<vb:if condition=\"is_member_of($vbulletin->userinfo, 6)\">' statement but when I do that is displays in the source an array.
I am writing a custom script and having some issues verifying if a user is in a usergroup, not in the template file but in the PHP. I tried this but it doesnt seem to be working correctly, What am I doing wrong?
if ($userinfo['usergroupid'] == 6) {
somestuff
} else {
someotherstuff
}
I tried just doing an echo '<vb:if condition=\"is_member_of($vbulletin->userinfo, 6)\">' statement but when I do that is displays in the source an array.