MyBB Community Forums

Full Version: Using <if> statement
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
You are actually confusing yourself as well as myself, lol.

You want to SHOW PARTICULAR THING to those WHO BELONGS TO YOUR SPECIFIED GROUP or those WHO DOES NOT belongs to specified groups?

If for example, you YOU WANT to show something to usergroups 1,2,3,4,5,6,7,8,9 and DO NOT want to show it to usergroup 10 and 11, use this code instead:

<if !in_array($GLOBALS['users']['usergroup'], array(10,11)) then>
//Anything here shows to members of usergroup (1 to 9) and members from usergroup 10 and 11 won't be able to see this. Replace this with your actual variable/code.
</if>
actually i wan't something to show up if they belong to the usergroup, the who that does not belong to the usergroup shall still be able to see it but it does not show up in there signature... It's kinda hard to explain..
Pages: 1 2