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 : 336
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
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.
Similar topics
» How do I hide the list of members from guests?
» Hide Admin Online Status & Hide Rank Title
» How can I hide forum categories from guests like this?
» help me to hide topics with guests
» How to hide who is online from guests
» Hide Admin Online Status & Hide Rank Title
» How can I hide forum categories from guests like this?
» help me to hide topics with guests
» How to hide who is online from guests
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum