Auto Logout navbar on html page
3 posters
Page 1 of 1
Auto Logout navbar on html page
here is my homepage, i made html page as my home page
i just made my navbar on that homepage
and the problem is, i already login and can i change it automatically to logout?
just like the default navbar on forum
any script of that?
or can i put the default navbar forum to my html page without adding header and footer inside?
i just made my navbar on that homepage
and the problem is, i already login and can i change it automatically to logout?
just like the default navbar on forum
any script of that?
or can i put the default navbar forum to my html page without adding header and footer inside?
betistapir- New Member
- Posts : 20
Reputation : 1
Language : indonesia
betistapir- New Member
- Posts : 20
Reputation : 1
Language : indonesia
Re: Auto Logout navbar on html page
Try
- Code:
<!-- BEGIN switch_user_logged_in -->
HTML for logged in users
<!-- END switch_user_logged_in -->
<!-- BEGIN switch_user_logged_out -->
HTML for logged out users
<!-- END switch_user_logged_out -->
Mr_Waffle- New Member
- Posts : 24
Reputation : 0
Language : Dutch | HTML | CSS | JavaScript | jQuery | Java | MIPS ASM | Learning C#
Re: Auto Logout navbar on html page
just like this?
i tried it but doesnt work
- Code:
<!-- BEGIN switch_user_logged_in -->
<a href="http://url/login" title="Login">Login</a>
<!-- END switch_user_logged_in -->
<!-- BEGIN switch_user_logged_out -->
<a href="http://url/login?logout title="Logout">Logout</a>
<!-- END switch_user_logged_out -->
i tried it but doesnt work
betistapir- New Member
- Posts : 20
Reputation : 1
Language : indonesia
Re: Auto Logout navbar on html page
You're using a custom HTML page or editing the templates?
In the first case, you'll have to use some way to see if a user is logged in. You'll need to use Javascript for this. The above method won't work.
If you're using the templates this should work fine.
In the first case, you'll have to use some way to see if a user is logged in. You'll need to use Javascript for this. The above method won't work.
If you're using the templates this should work fine.
Mr_Waffle- New Member
- Posts : 24
Reputation : 0
Language : Dutch | HTML | CSS | JavaScript | jQuery | Java | MIPS ASM | Learning C#
Similar topics
» HTML Page + Navbar
» html page not working in navbar
» HTML Page CSS Rollover Navbar Image
» [HTML Page] Forum header and footer without navbar and annonations?
» Auto Logout....
» html page not working in navbar
» HTML Page CSS Rollover Navbar Image
» [HTML Page] Forum header and footer without navbar and annonations?
» Auto Logout....
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum