MyBB Community Forums

Full Version: how to make a section of template just shown by specified user group?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
(2011-05-15, 05:18 PM)Shukaku Wrote: [ -> ]Change to this:
<if in_array($mybb->user['usergroup'],array(1,2,5,7)) then>
YOUR_AD_CODE_GOES_HERE
</if> 

nice! work like a charm!
but how to make the opposite? usergroup id 1,2,5,7 can not see the banner
(2011-05-15, 05:25 PM)caranibieros Wrote: [ -> ]but how to make the opposite? usergroup id 1,2,5,7 can not see the banner

Just try this;

<if !in_array($mybb->user['usergroup'],array(1,2,5,7)) then>
YOUR_AD_CODE_GOES_HERE
</if> 
(2011-05-15, 05:26 PM)Yaldaram Wrote: [ -> ]
(2011-05-15, 05:25 PM)caranibieros Wrote: [ -> ]but how to make the opposite? usergroup id 1,2,5,7 can not see the banner

Just try this;


work like a charm!
<if !in_array($mybb->user['usergroup'],array(1,2,5,7)) then>
YOUR_AD_CODE_GOES_HERE
</if> 
I just know that this MyBB really can be further custom!
:twothumbsup:
thanks for all help, hope this thread will usefull for other mybb publisher all over the world
assalamualaikum
Thanks and "Salamun Alaikum" Big Grin
Pages: 1 2