2019-04-24, 09:43 AM
Good morning all,
When I'm on a user's profile page logged in as an admin or moderator it doesn't show the moderator and administrator tab. I am using the Dazzle theme by audentio: https://community.mybb.com/mods.php?acti...w&pid=1152
I've got the following code in my member_profile template:
All the tabs work, in fact, if do put "#membertab-admin"/"#membertab-mod" in the url it actually shows the tab. When removing the part "modonly" / "adminonly" it will be like this:
![[Image: 189afa9057.png]](https://camo.mybb.com/d6a7b0f80768b3365033dfd46ae94920de1824d4/68747470733a2f2f7075752e73682f446a375a442f313839616661393035372e706e67)
When I've done that the tabs show like they are supposed to, but all users will see them, when adding the mod/admin only part back and logging in as an admin/mod I can't see the tabs.
How can I make it that those two tabs are only shown when an moderator / admin is logged in?
Additional system information:
- Mybb version 1.8.20
- PHP version 7.2.16
- SQL Engine MySQLi 5.5.60
Thanks in advance!
Hugo.
When I'm on a user's profile page logged in as an admin or moderator it doesn't show the moderator and administrator tab. I am using the Dazzle theme by audentio: https://community.mybb.com/mods.php?acti...w&pid=1152
I've got the following code in my member_profile template:
<div id="tab-container" class="tab-container">
<ul class='etabs'>
<li class='tab'><a href="#membertab-generalinfo"><i class='fa fa-th-list'></i> {$lang->users_forum_info}</a></li>
<li class='tab'><a href="#membertab-contactinfo"><i class='fa fa-envelope'></i> {$lang->users_contact_details}</a></li>
<li class='tab'><a href="#membertab-moreinfo"><i class='fa fa-list-alt'></i> {$lang->users_additional_info}</a></li>
<li class='tab modonly'><a href="#membertab-mod"><i class='fa fa-wrench'></i><span style="text-indent: -998px;visibility: hidden;margin-left: -3px;">.</span></a></li>
<li class='tab adminonly'><a href="#membertab-admin"><i class='fa fa-cog'></i><span style="text-indent: -998px;visibility: hidden;margin-left: -3px;">.</span></a></li>
</ul>
All the tabs work, in fact, if do put "#membertab-admin"/"#membertab-mod" in the url it actually shows the tab. When removing the part "modonly" / "adminonly" it will be like this:
<li class='tab'><a href="#membertab-mod"><i class='fa fa-wrench'></i><span style="text-indent: -998px;visibility: hidden;margin-left: -3px;">.</span></a></li>
<li class='tab'><a href="#membertab-admin"><i class='fa fa-cog'></i><span style="text-indent: -998px;visibility: hidden;margin-left: -3px;">.</span></a></li>
When I've done that the tabs show like they are supposed to, but all users will see them, when adding the mod/admin only part back and logging in as an admin/mod I can't see the tabs.
How can I make it that those two tabs are only shown when an moderator / admin is logged in?
Additional system information:
- Mybb version 1.8.20
- PHP version 7.2.16
- SQL Engine MySQLi 5.5.60
Thanks in advance!
Hugo.