MyBB Community Forums

Full Version: Hide Header Link to certain user group
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3
Yeah.

The below code should work fine, I use the same as well, what is the problem on your side?

<if !in_array($GLOBALS['users']['usergroup'], array(5,6)) then>
<a href="http://www.berlingoforum.co.uk/donate.php"><img src="http://i.imgur.com/NWhnR.png" alt="" title="" /> Donate</a></if>

would make the link visible to everyone except users from usergroup 5 and 6.
There appears to be no error, it just doesnt work at all.

I guess it isn't being executed?

I used the plugin Omar G posted above.
It is definitely weird.
Are you using something named, PHP and Template Conditionals ? If so which version? 1.9? Yumi might not have updated it for 1.6.5 but on my localhost it seems to work fine though. There are two plugins like this, one is template conditionals and other is both (above bold text one), so make sure you're not getting confused between these two.
I wonder, is there an easy way to list all of my plugins or is the only way to CTRL C + V them, would like to show you in case there are any conflicts.
Just to add, it has done it again. I've set it to only show to guests, it hides it when im logged in which is good, but it hides it to all user groups.
What code are you using?
" I've set it to only show to guests " <-- then only guests can see the content . hidden for all groups ..

though this is for a different purpose, I've been using it for plugins list ..
Pages: 1 2 3