MyBB Community Forums

Full Version: Staff area for members
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
The staff area comes for everyone

[Image: Screenshot-2020-04-17-at-1-46-41-PM.png]
Are the staff options also appearing for everyone? It appears that this is hard coded and does not use a variable to detect whether or not a member is actually staff.

Could you provide your forum URL?
(2020-04-17, 12:56 PM)R34P3R Wrote: [ -> ]Are the staff options also appearing for everyone? It appears that this is hard coded and does not use a variable to detect whether or not a member is actually staff.

Could you provide your forum URL?
The options dont show up, but yea the blank area shows up
Got it. Options are either to make the "Staff Area" into a variable so it only appears when a staff member is logged in, or remove the 'Staff Area" text and simply use the {$modcplink} and {$admincplink} variables.
ACP >> Templates & style >> templates>>your theme>> Header Templates >> header_welcomeblock_member
Find this
<div class="drop-menu-configuration tcat">Staff Only</div>

{$modcplink}
{$admincplink}
and replace with this
<if $mybb->user['usergroup'] != 2 then>
<if $mybb->user['usergroup'] != 12 then>
<if $mybb->user['usergroup'] != 9 then>
<if $mybb->user['usergroup'] != 13 then>
<if $mybb->user['usergroup'] != 14 then>
<div class="drop-menu-configuration tcat">Staff Only</div>

{$modcplink}
{$admincplink}
</if></if></if></if></if>
i am using this
<if $mybb->user['usergroup'] != 2 then>
multiple times,could add it with multiple numbers of groups,
but it works