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.

Admins can only see nav links

View previous topic View next topic Go down

Admins can only see nav links

Post by blindbat1457 on November 30th 2011, 11:12 pm

I made my own custom navigation but I want to know how to make it so when a user has admin rights that extra links will show up in the navigation bar.

For example my navigation shows right now "Home | Forums | About | Members", what I want is when I or any other admin logs into their account it shows "Home | Forums | About | Members | ACP"

I know we can do the <!-- BEGIN switch_user_logged_in --> but how would you make it work with only admins?

blindbat1457
Forumember

Male Posts : 667
Reputation : 6
Language : English
Location : Santa Clarita, CA

Back to top Go down

Re: Admins can only see nav links

Post by Darren1 on November 30th 2011, 11:15 pm

Hi,

You can actually do this via the Headder & Navigation settings, you just set so only admins see it Wink
AP > DIsplay > Headers & Nav.

Ive got a link to my AP in my nav bar on every forum I admin in Twisted Evil

Darren1
Helper
Helper

Male Posts : 11853
Reputation : 563
Language : English

Back to top Go down

Re: Admins can only see nav links

Post by blindbat1457 on November 30th 2011, 11:35 pm

Yeah I remembered that but even if I have a custom navbar?

http://forumthememedia.forumotion.com/

I am not using the { Navbar } or whatever that damn code is. I am using my own unordered list Razz

blindbat1457
Forumember

Male Posts : 667
Reputation : 6
Language : English
Location : Santa Clarita, CA

Back to top Go down

Re: Admins can only see nav links

Post by Darren1 on November 30th 2011, 11:40 pm

Oooh, Um?
I assume not Razz
Just give it a try, I mean, what's the worst that could happen?

There is a code that's within the templates that separates a user to a moderator, but there's one to separate to admin, unless someone knows a JS code, Ill look for that code and get back to you within 5 mins Smile

Darren1
Helper
Helper

Male Posts : 11853
Reputation : 563
Language : English

Back to top Go down

Re: Admins can only see nav links

Post by blindbat1457 on November 30th 2011, 11:44 pm

Hey, worst case scenario I will take the moderator code. My forum mods can deal with seeing a link they can't access Laughing

EDIT: I know I should open a new topic for this BUT, is there a way I can create a redirect category on the index?
i.e. http://www.awesomestyles.com/phpbb3-styles/demo/mw2


Last edited by blindbat1457 on November 30th 2011, 11:47 pm; edited 1 time in total

blindbat1457
Forumember

Male Posts : 667
Reputation : 6
Language : English
Location : Santa Clarita, CA

Back to top Go down

Re: Admins can only see nav links

Post by Darren1 on November 30th 2011, 11:47 pm

Just double checking, your profile is PHPBB2, you didn't move to PunBB?

Darren1
Helper
Helper

Male Posts : 11853
Reputation : 563
Language : English

Back to top Go down

Re: Admins can only see nav links

Post by blindbat1457 on November 30th 2011, 11:48 pm

@Darren1 wrote:Just double checking, your profile is PHPBB2, you didn't move to PunBB?

Yeah I am PunBB, I should probably change that lol.

blindbat1457
Forumember

Male Posts : 667
Reputation : 6
Language : English
Location : Santa Clarita, CA

Back to top Go down

Re: Admins can only see nav links

Post by blindbat1457 on December 1st 2011, 7:14 pm

Alright I will just take the moderator code what is it?

Code:
<!-- BEGIN switch_moderator_logged_in -->

Sound right? I just made it up so yeah Smile

blindbat1457
Forumember

Male Posts : 667
Reputation : 6
Language : English
Location : Santa Clarita, CA

Back to top Go down

Re: Admins can only see nav links

Post by Darren1 on December 2nd 2011, 2:07 am

Sorry bud, got interrupted last night by one of my neighbours, and was busy at work, mainly because I was annoyed at my boss ^.^

@blindbat1457 wrote:Alright I will just take the moderator code what is it?

Code:
<!-- BEGIN switch_moderator_logged_in -->

Sound right? I just made it up so yeah Smile

lol, Sadly not - if it was, I'd have made an admin version by now


Unfortunetly, the devs took away the code I like, well, here's the 2nd built in one, works just like a moderator one.
It's the code that allows the mods to see the mod tools, and not the users.
Code:
<!-- BEGIN viewtopic_bottom -->
                  add your text here
         <!-- END viewtopic_bottom -->

Just add the code next or at the end to your new nav bar and it should be no issues Very Happy

Just let the mods know that they can't access the AP, nor use the code.

For your 2nd question, you can't redirect a category title - you can however, make a HTML-look-a-like forum, (or best you can) and have that linked via templates, otherwise you can create a new forum and make a link in the description, and as a topic contents.

Darren1
Helper
Helper

Male Posts : 11853
Reputation : 563
Language : English

Back to top Go down

Re: Admins can only see nav links

Post by blindbat1457 on December 2nd 2011, 10:08 pm

Darren it hasn't worked for me yet, maybe I am doing something wrong?

Sorry it took so long to give you the update I just been working on other CSS, trying to get this theme slammed out ASAP.

Here is the code:
Code:

                          <div id="pun-subhead">
                            <div id="wrapper">
                              <ul class="pun-navlinks">
            <li><a href="#">Home</a></li>
                                <li><a href="http://forumthememedia.forumotion.com/">Forums</a></li>
                                <li><a href="#">About</a></li>
                                <li><a href="#">Members</a></li>
                                <!-- BEGIN viewtopic_bottom -->
                                <li><a href="#">ACP</a></li>
                               <!-- END viewtopic_bottom -->
                              </ul>
                            </div>
                          </div>

blindbat1457
Forumember

Male Posts : 667
Reputation : 6
Language : English
Location : Santa Clarita, CA

Back to top Go down

Re: Admins can only see nav links

Post by Darren1 on December 4th 2011, 5:16 pm

My bad, I didn't get a chance to test it, after testing it, it seems it won't work out of the viewtopic_body tpl Rolling Eyes

I don't think there is another template code to separate the users & moderator's. I think that there may be a JS code, but I'm not sure about that.

Darren1
Helper
Helper

Male Posts : 11853
Reputation : 563
Language : English

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