GeekPolice
Welcome to GeekPolice.net!

GeekPolice is a website which provides free Computer Technical Support & Virus/Spyware Removal to our members.

You are currently viewing the forum as "Guest" which doesn't give you the same privilege as members to ask questions or post comments.

Click the Register button below to unlock the limitations of this website and start asking questions to discover new computer knowledge!

I need some help with a nav bar

Post new topic   Reply to topic

View previous topic View next topic Go down

I need some help with a nav bar

Post by notMiceElf on Wed 10 Jun 2009, 9:12 pm

Hello, on my forum I've created a customized nav bar. It works great, the only problem is that because I had to make its code and insert it in my CSS, every button shows, which I do not want. the "log in" button shows to those who are logged in, and the "log out" button shows to those who haven't logged in, as well as the "register" button always showing, the "profile" button always showing, and the "messages" buttons always showing. Does anyone have / know the code that specifies which buttons to show, depending on the fact if a member is logged in, or a guest?

That is all I need, just a code to make buttons only show to visitors, and others only show to logged in members.

No, I cannot use the Pages Navigation section to do this, because I had to make my OWN nav bar, so the navigation check boxes do not good in this situation.

So please, if you can help me AT ALL with this, please do so.

Regards,

notMiceElf

notMiceElf
Unborn
Unborn

Posts: 3
Operating System: XP
Joined: 2009-06-03

View user profile

Back to top Go down

Re: I need some help with a nav bar

Post by Agent Cosmic on Wed 10 Jun 2009, 11:23 pm

Perhaps you can use Javascript to check if certain signs which are seen only by members and use it to run a function to hide certain buttons when true.

______________________________

Agent Cosmic
Global Moderator | Developer
Global Moderator | Developer

Posts: 2940
Operating System: Windows XP Professional
Joined: 2008-03-07

View user profile

Back to top Go down

Re: I need some help with a nav bar

Post by notMiceElf on Thu 11 Jun 2009, 8:24 am

Agent Cosmic wrote:Perhaps you can use Javascript to check if certain signs which are seen only by members and use it to run a function to hide certain buttons when true.

thanks, that's along the lines of what I knew I needed. I've been looking through all CSS pages lookng for a code similar to "iflogged="false"" or something similar, but still no luck.

notMiceElf
Unborn
Unborn

Posts: 3
Operating System: XP
Joined: 2009-06-03

View user profile

Back to top Go down

View previous topic View next topic Back to top


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