2023-03-25, 01:58 PM
(This post was last modified: 2023-03-27, 06:59 AM by Fontane. Edited 7 times in total.)
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.
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.