Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 Secondary usergroup conditional
Gstone Offline
Member
***
Posts: 55
Joined: May 2012
Post: #1
Secondary usergroup conditional
hey there,

i was curious as to if there was some sort of variable i could use for secondary usergroups. My assumption is that this is not possible, but i would rather ask just in case.

i'm currently trying to use a similar if statement:

Code:
<if !in_array($GLOBALS['mybb']->user['usergroup'], array(8,9,10) then>
blablabla
</if>


the above will hide the content to the usergroups i do not wish for them to see. now the thing is, the above usergroups are all used as secondary usergroups. a member will still be in usergroup 2, so the "hidden" content will still be shown to them even if they are added to one of the groups above.

is there any way around this? i simply want content to be removed after a user has been granted their secondary usergroup.

Thank you for any help!

01-18-2013 04:48 PM
Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

Messages In This Thread
Secondary usergroup conditional - Gstone - 01-18-2013 04:48 PM

 Standard Tools
Forum Jump: