MyBB Community Forums

Full Version: IF definition with "if_member" > problem
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello,

i have an implementation problem and would appreciate some help.

In the given case, the
1 = the primary group "Guests"
6 = the primary group "Registered"
9 = the secondary group "Kings" (with primary group 6 "Registered")

Desired process:
If users are NOT in primary or secondary group 1 or 9:
<?php
if (!is_member('1,9')) {

         Instructions for users who are not in the primary group 1 and not in the secondary group 9.
         };
?>

If users in the secondary group 9:
<?php
if (is_member('9')) {

         Instruction for users who are given the secondary group 9
         };
?>

Secondary group 9 definitions do not work.
As far as I know, the if_member evaluates the primary as well as for the secondary groups.

What am I doing wrong?

Many thanks in advance for any assistance.

Edit:
The above instruction works correctly! There was only a typo in the template.