The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

How can I hide an Admin Link from Guests and Members?

View previous topic View next topic Go down

Solved How can I hide an Admin Link from Guests and Members?

Post by Van-Helsing on May 31st 2014, 12:50 am

Hi dear all,
I want to ask you about these html tags:
Code:

<!-- BEGIN switch_auth_user -->

Code:

<!-- END switch_auth_user -->
I want to place a link between those tags in overall_header template because I want to have a link on my navbar hidden from members and guests and it be available only for moderators and administrators, I have try it but it isn't working.
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

Van-Helsing
Hyperactive

Male Posts : 2197
Reputation : 82
Language : English, Greek

http://helpgr.forumgreek.com/

Back to top Go down

Solved Re: How can I hide an Admin Link from Guests and Members?

Post by RadioHead on May 31st 2014, 5:18 am

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.

RadioHead
Forumember

Posts : 337
Reputation : 23
Language : English (der?)

Back to top Go down

Solved Re: How can I hide an Admin Link from Guests and Members?

Post by Van-Helsing on May 31st 2014, 8:11 pm

@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 .

Van-Helsing
Hyperactive

Male Posts : 2197
Reputation : 82
Language : English, Greek

http://helpgr.forumgreek.com/

Back to top Go down

Solved Re: How can I hide an Admin Link from Guests and Members?

Post by Van-Helsing on June 1st 2014, 9:54 pm

Bump

Van-Helsing
Hyperactive

Male Posts : 2197
Reputation : 82
Language : English, Greek

http://helpgr.forumgreek.com/

Back to top Go down

Solved Re: How can I hide an Admin Link from Guests and Members?

Post by Paulostge on June 1st 2014, 10:42 pm

Code:
 <!-- BEGIN switch_user_logged_in -->

element

<!-- END switch_user_logged_in -->

Paulostge
Forumember

Male Posts : 81
Reputation : 17
Language : Greek
Location : Greece

http://www.thegreeksenergy.com

Back to top Go down

Solved Re: How can I hide an Admin Link from Guests and Members?

Post by Van-Helsing on June 1st 2014, 11:08 pm

@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.

Van-Helsing
Hyperactive

Male Posts : 2197
Reputation : 82
Language : English, Greek

http://helpgr.forumgreek.com/

Back to top Go down

Solved Re: How can I hide an Admin Link from Guests and Members?

Post by Paulostge on June 1st 2014, 11:37 pm

You can put a widget and choose...


Paulostge
Forumember

Male Posts : 81
Reputation : 17
Language : Greek
Location : Greece

http://www.thegreeksenergy.com

Back to top Go down

Solved Re: How can I hide an Admin Link from Guests and Members?

Post by Van-Helsing on June 2nd 2014, 12:03 am

Thanks Paulos that's a nice idea. I have make and the css and now working perfect.
Problem is solved.

Best Regards,
Dark-Avenger

Van-Helsing
Hyperactive

Male Posts : 2197
Reputation : 82
Language : English, Greek

http://helpgr.forumgreek.com/

Back to top Go down

Solved Re: How can I hide an Admin Link from Guests and Members?

Post by SLGray on June 2nd 2014, 3:39 am

Topic Solved & Archived


When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.


SLGray
Administrator
Administrator

Male Posts : 35622
Reputation : 2372
Language : English
Location : United States

http://fmthemes.forumotion.com/

Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum