How can I hide an Admin Link from Guests and Members?
4 posters
Page 1 of 1
How can I hide an Admin Link from Guests and Members?
Hi dear all,
I want to ask you about these html tags:
Can you help me please? My forum version is PunBB and I am using a customized navbar menu.
With Best Regards,
Dark-Avenger
I want to ask you about these html tags:
- Code:
<!-- BEGIN switch_auth_user -->
- Code:
<!-- END switch_auth_user -->
Can you help me please? My forum version is PunBB and I am using a customized navbar menu.
With Best Regards,
Dark-Avenger
Last edited by Dark-Avenger on June 2nd 2014, 12:04 am; edited 2 times in total
Re: How can I hide an Admin Link from Guests and Members?
Hi,
May I suggest you check the navigation part of the admin panel?
PA > Display > Headers & Navigation > Add a customised menu > Select only Admin & Moderators.
May I suggest you check the navigation part of the admin panel?
PA > Display > Headers & Navigation > Add a customised menu > Select only Admin & Moderators.
RadioHead- Forumember
- Posts : 337
Reputation : 23
Language : English (der?)
Re: How can I hide an Admin Link from Guests and Members?
RadioHead wrote:Hi,
May I suggest you check the navigation part of the admin panel?
PA > Display > Headers & Navigation > Add a customised menu > Select only Admin & Moderators.
I have try it as you can see here http://prntscr.com/3oe1hp but it isn't display on the my custom navbar http://prntscr.com/3oe1st .
Re: How can I hide an Admin Link from Guests and Members?
- Code:
<!-- BEGIN switch_user_logged_in -->
element
<!-- END switch_user_logged_in -->
Re: How can I hide an Admin Link from Guests and Members?
Paulostge wrote:
- Code:
<!-- BEGIN switch_user_logged_in -->
element
<!-- END switch_user_logged_in -->
Hi Paulos,
I have already try it I put the element in this tags but its visible to members too. I am looking for other tags to be visible only for admins. Furthermore I tried this code
- Code:
<!-- BEGIN switch_auth_user -->
<li><a href="URL" title="Admin Control Panel">Admin CP</a></li>
<!-- END switch_auth_user -->
and this code
- Code:
<!-- BEGIN switch_user_level -->
<li><a href="URL" title="Admin Control Panel">Admin CP</a></li>
<!-- END switch_user_level -->
but the codes when published the template are ignoring and I dont know why. When I am removing those tags the link is visible to all members, mods, admins etc.
I am thinking it needs a javascript to control the userdata level.
Re: How can I hide an Admin Link from Guests and Members?
Thanks Paulos that's a nice idea. I have make and the css and now working perfect.
Problem is solved.
Best Regards,
Dark-Avenger
Problem is solved.
Best Regards,
Dark-Avenger
Re: How can I hide an Admin Link from Guests and Members?
Topic Solved & Archived
![](https://i.servimg.com/u/f18/16/89/96/68/sig_se10.png)
![hide - How can I hide an Admin Link from Guests and Members? Slgray10](https://i.servimg.com/u/f28/11/40/02/06/slgray10.png)
Lost Founder's Password |Forum's Utilities |Report a Forum |General Rules |FAQ |Tricks & Tips
You need one post to send a PM.
You need one post to send a PM.
When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
![-](https://2img.net/i/empty.gif)
» How can I hide the "Log In" link on the Header/Navigation Bar from Guests?
» How do I hide the list of members from guests?
» How to hide menu button for already logged in members, and keep it for guests?
» How to Hide content for guests/members and show it for VIP/Premiums
» Wanna hide a topic from members, not from guests [solved]
» How do I hide the list of members from guests?
» How to hide menu button for already logged in members, and keep it for guests?
» How to Hide content for guests/members and show it for VIP/Premiums
» Wanna hide a topic from members, not from guests [solved]
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum