The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

How to create another navbar

4 posters

Go down

How to create another navbar Empty How to create another navbar

Post by njaguar December 8th 2013, 5:57 am

What is the HTML could for Log out and Log in, and Register??


I have made a nav bar but when you log out it still stays log out i want it to say log out if you're loged in and log in if you are loged out if that sounds right.... also want to add register link :L 


Last edited by njaguar on December 8th 2013, 3:14 pm; edited 1 time in total
njaguar
njaguar
Forumember

Male Posts : 113
Reputation : 1
Language : English
Location : United Kingdom

http://d4jsp.forumotion.com/

Back to top Go down

How to create another navbar Empty Re: How to create another navbar

Post by BlackScorpion December 8th 2013, 6:22 am

njaguar wrote:What is the HTML could for Log out and Log in, and Register??


I have made a nav bar but when you log out it still stays log out i want it to say log out if you're loged in and log in if you are loged out if that sounds right.... also want to add register link :L 
Register = your forum url /register

Login/logout= ( I use) /login?logout=1
BlackScorpion
BlackScorpion
Graphic Designer
Graphic Designer

Male Posts : 7009
Reputation : 919
Language : English
Location : USA

https://help.forumotion.com/f6-graphic-design-section

Back to top Go down

How to create another navbar Empty Re: How to create another navbar

Post by Ange Tuteur December 8th 2013, 6:45 am

Please change the title of your topic, that is related to your question/issue, so that other users will be able to find their question/issue using the search engine.

You're creating a totally separate navbar from the default?
Ange Tuteur
Ange Tuteur
Forumaster

Male Posts : 13246
Reputation : 3000
Language : English & 日本語
Location : Pennsylvania

https://fmdesign.forumotion.com

Back to top Go down

How to create another navbar Empty Re: How to create another navbar

Post by njaguar December 8th 2013, 6:54 am

SethC1995 wrote:Please change the title of your topic, that is related to your question/issue, so that other users will be able to find their question/issue using the search engine.

You're creating a totally separate navbar from the default?
yes but need the default codes
njaguar
njaguar
Forumember

Male Posts : 113
Reputation : 1
Language : English
Location : United Kingdom

http://d4jsp.forumotion.com/

Back to top Go down

How to create another navbar Empty Re: How to create another navbar

Post by Legolas December 8th 2013, 12:12 pm

Hello,
Code:

Home - <a href="/forum">Forum</a>
Members - <a href="/memberlist">Members</a>
Usergroups - <a href="/groups">Usergroups</a>
Login - <a href="/login">Login</a>
Logout - <a href="/logout">Logout</a>
Register - <a href="/register">Register</a>
Profile - <a href="/profile?mode=editprofile">Profile</a>
Private messages - <a href="/privmsg?folder=inbox">Private messages</a>
Legolas
Legolas
Forumember

Male Posts : 262
Reputation : 33
Language : English

http://www.daily-support.org

Back to top Go down

How to create another navbar Empty Re: How to create another navbar

Post by njaguar December 8th 2013, 2:26 pm

Yeah but how do i make it where it knows if the person is logged in or not?
njaguar
njaguar
Forumember

Male Posts : 113
Reputation : 1
Language : English
Location : United Kingdom

http://d4jsp.forumotion.com/

Back to top Go down

How to create another navbar Empty Re: How to create another navbar

Post by Legolas December 8th 2013, 2:46 pm

A simple thing. Smile
Code:
<!-- BEGIN switch_user_logged_out -->
Here you put codes for logged out users
<!-- END switch_user_logged_out -->

<!-- BEGIN switch_user_logged_in -->
Here you put codes for logged in users
<!-- END switch_user_logged_in -->
Also, please edit your title to "How to create another navbar" or something like that.
Legolas
Legolas
Forumember

Male Posts : 262
Reputation : 33
Language : English

http://www.daily-support.org

Back to top Go down

How to create another navbar Empty Re: How to create another navbar

Post by njaguar December 9th 2013, 11:59 pm

Doesn't work still shows (log out) when a person hasn't logged in
njaguar
njaguar
Forumember

Male Posts : 113
Reputation : 1
Language : English
Location : United Kingdom

http://d4jsp.forumotion.com/

Back to top Go down

How to create another navbar Empty Re: How to create another navbar

Post by Legolas December 10th 2013, 2:43 pm

Logout =>
Code:

<!-- BEGIN switch_user_logged_in -->
<a href="/logout">Logout</a>
<!-- END switch_user_logged_in -->
Legolas
Legolas
Forumember

Male Posts : 262
Reputation : 33
Language : English

http://www.daily-support.org

Back to top Go down

How to create another navbar Empty Re: How to create another navbar

Post by Guest December 10th 2013, 7:33 pm

Legolas wrote:Logout =>
Code:

<!-- BEGIN switch_user_logged_in -->
<a href="/logout">Logout</a>
<!-- END switch_user_logged_in -->

The right link for logout is /login?logout=1
avatar
Guest
Guest


Back to top Go down

How to create another navbar Empty Re: How to create another navbar

Post by njaguar December 12th 2013, 1:01 pm

Yeah I have all that. But when a user isn't logged in it still says "log out" where as i want it to say "log in" when a person isn't logged in and log out when they are logged in
njaguar
njaguar
Forumember

Male Posts : 113
Reputation : 1
Language : English
Location : United Kingdom

http://d4jsp.forumotion.com/

Back to top Go down

Back to top

- Similar topics

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