MyBB Community Forums

Full Version: How to hide additional links in usercp from certain groups?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,

I would like to hide these two links - http://prntscr.com/3h1oai - that I've implemented myself last night, from all other groups apart from the registered group (standard members). I believe the code is something along the lines of:

if($mybb->user['usergroup'] != "3" || $mybb->user['usergroup'] != "4" || $mybb->user['usergroup'] != "6" || $mybb->user['usergroup'] != "8") 

//HIDE THESE LINKS  (http://prntscr.com/3h1oai) FROM ADMINS, MODERATORS, SUPER MODERATORS AND PREMIUM

</if>
 

So, you can see the problem I'm having at the moment. I have no idea how to execute this command.
<if in_array($mybb->user['usergroup'], array(GROUPID1,GROUPID2)) then>
Your content
</if>

This will show the link to the specified groups only.
(2014-05-07, 06:01 PM)Nayson Wrote: [ -> ]
<if in_array($mybb->user['usergroup'], array(GROUPID1,GROUPID2)) then>
Your content
</if>

This will show the link to the specified groups only.

<3