2014-07-20, 07:22 PM
2014-07-20, 08:40 PM
What i do is
if ( IsCurrentUserInGroup("1,2,3,4,20,30,40,50") ) {
echo "user is in one of given groups";
}
function IsCurrentUserInGroup ($groups="") {
global $mybb;
if ( in_array($mybb->user['usergroup'],explode(",",$groups)) || array_intersect(explode(",",$mybb->user['additionalgroups']),explode(",",$groups))) {
return true;
}
return false;
}
2014-07-20, 08:50 PM
Do you mean is_member() ? Oh yeah, that is in 1.8
And PluginLibrary for 1.6
And PluginLibrary for 1.6
2014-07-20, 09:01 PM
(2014-07-20, 08:50 PM)Omar G. Wrote: [ -> ]Oh yeah, that is in 1.8
...and many other cool things as i seen in previews, Cant wait for stable