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 to create another navbar

View previous topic View next topic Go down

How to create another navbar

Post by njaguar on 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
Forumember

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

http://d4jsp.forumotion.com/

Back to top Go down

Re: How to create another navbar

Post by BlackScorpion on 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
Graphic Designer
Graphic Designer

Male Posts : 4557
Reputation : 670
Language : English
Location : USA

http://help.forumotion.com

Back to top Go down

Re: How to create another navbar

Post by Ange Tuteur on 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
Forumaster

Male Posts : 13028
Reputation : 2704
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

Re: How to create another navbar

Post by njaguar on 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
Forumember

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

http://d4jsp.forumotion.com/

Back to top Go down

Re: How to create another navbar

Post by Legolas on 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
Forumember

Male Posts : 262
Reputation : 33
Language : English

http://www.daily-support.org

Back to top Go down

Re: How to create another navbar

Post by njaguar on 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
Forumember

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

http://d4jsp.forumotion.com/

Back to top Go down

Re: How to create another navbar

Post by Legolas on 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
Forumember

Male Posts : 262
Reputation : 33
Language : English

http://www.daily-support.org

Back to top Go down

Re: How to create another navbar

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

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

njaguar
Forumember

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

http://d4jsp.forumotion.com/

Back to top Go down

Re: How to create another navbar

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

Logout =>
Code:

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

Legolas
Forumember

Male Posts : 262
Reputation : 33
Language : English

http://www.daily-support.org

Back to top Go down

Re: How to create another navbar

Post by Guest on 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

Guest
Guest


Back to top Go down

Re: How to create another navbar

Post by njaguar on 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
Forumember

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

http://d4jsp.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