log in log out code!
5 posters
Page 1 of 1
Re: log in log out code!
Hi,
Is it for the navigation bar or a template?
Generally /login & /logout will suffice...
Is it for the navigation bar or a template?
Generally /login & /logout will suffice...
Darren1- Helper
- Posts : 11853
Reputation : 566
Language : English
Re: log in log out code!
- Code:
<center><form action="/login" method="post"><p><label for="username"><strong>Username:</strong></label></p><p style="height:2em;valign:top;"><input type="text" name="username" id="username" size="15" maxlength="40" value="" class="inputbox autowidth"></p><p><label for="password"><strong>Password:</strong></label></p><p style="height:2em;valign:top;"><input type="password" id="password" name="password" size="15" maxlength="25" class="inputbox autowidth"></p><p align="center"><a href="/profile?mode=sendpassword" rel="nofollow">I forgot my password</a></p><p align="center"><input type="checkbox" name="autologin" id="autologin" tabindex="4" class="checkbox" checked="checked"><label for="autologin"> Log me on automatically at each visit</label></p><p align="center"><input type="submit" name="login" tabindex="6" value="Log in" class="button1"></p></form></center>
<center><form action="forum/login?logout=1" method="post" class="frm-form"><p class="frm-info">Are you sure you want to log out ?</p><fieldset class="frm-set"><dl><dt></dt><dd><input type="hidden" name="tid" value=""><input type="hidden" name="key" value=""><input type="submit" name="confirm" value="Yes"> <input type="submit" name="cancel" value="No"></dd></dl></fieldset></form></center>
Re: log in log out code!
For the navigation bar, as I said above.
If /log... doesn't work try {forumurl}/log...
Darren1 wrote: /login & /logout will suffice...
If /log... doesn't work try {forumurl}/log...
Darren1- Helper
- Posts : 11853
Reputation : 566
Language : English
Re: log in log out code!
Log in: <a href="/login">Login</a>
Log out: <a href="/login?logout=1">Logout</a>
Log out: <a href="/login?logout=1">Logout</a>
Guest- Guest
Re: log in log out code!
thanks but i need so when your loggin in, it says log out, and when logged out in says log in http://modifiedcarforum.nstars.org
:D
hello i got what you mean....
here is the code
-This For Login
-This For Logout
Hope That Help, ArChKnIgHt
here is the code
-This For Login
- Code:
<!-- BEGIN switch_user_logged_out -->
<a href="/login">Login</a>
<!-- END switch_user_logged_out -->
-This For Logout
- Code:
<!-- BEGIN switch_user_logged_in -->
<a href="/login?logout">Logout</a>
<!-- END switch_user_logged_in -->
Hope That Help, ArChKnIgHt
Re: log in log out code!
ArChKnIgHt wrote:hello i got what you mean....
here is the code
-This For Login
- Code:
<!-- BEGIN switch_user_logged_out -->
<a href="/login">Login</a>
<!-- END switch_user_logged_out -->
-This For Logout
- Code:
<!-- BEGIN switch_user_logged_in -->
<a href="/login?logout">Logout</a>
<!-- END switch_user_logged_in -->
Hope That Help, ArChKnIgHt
lol i have been fielding with this question for a while now.
I must have past the darn thing a zillion times.. so thanx. i will have to keep this in one of my note pads so i remember for the future inquirers.
so now i will have to test in a Custer nav bar to make sure it works corrector,
then what about adding buttons? any ideas for that while we are on it.. i am sure i can figure the rest out now.. dunno how i missed it so many times.
thanx man good job (giving it all checks out and works in a custom nav bar.. lol i am sure it will
oh yeah oki see.
this will bhe all you need.
<a href="/login">Login</a>
<a href="/login?logout">Logout</a>
or wait shit... lol yeah i will have to test to be sure,
Because we dont want both tab showing at the same time.
kirk- Forumaster
- Posts : 11037
Reputation : 653
Language : English,Vulcan,Klingon, Romulan,& Gorn
Similar topics
» help in this code . the effect on code > add button to Put under the colored writing
» Tech please respond! What is the border color code/script code
» I add a new Forum widget for my Affiliates code but I want to remove the code that shows there!
» How to change the standard [code] [/code] font color ?
» what's the code to customize the quote/code color for phpbb3?
» Tech please respond! What is the border color code/script code
» I add a new Forum widget for my Affiliates code but I want to remove the code that shows there!
» How to change the standard [code] [/code] font color ?
» what's the code to customize the quote/code color for phpbb3?
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum