Quote:
Originally Posted by Tekton
Just change the 6 to the usergroup that you want to allow if you want it to work for someone else.
Or for multiple I think it's:
PHP Code:
if($userinfo[usergroupid]==in_array(6, 7, 8)||$post[usergroupid]==in_array(6, 7, 8))
Please correct me if that's wrong. 
|
That didn't work for me... in_array doesn't work that way in my experience.
Here's how I did it:
PHP Code:
$html_groups = array(6,19);
if(in_array($userinfo[usergroupid],$html_groups)||in_array($post[usergroupid],$html_groups)){
Anyway, Great hack, thanks. *thinks of all the evil things he's going to do now*