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.

log in log out code!

View previous topic View next topic Go down

log in log out code!

Post by shawn.m on July 13th 2011, 2:02 pm

Plz can i have the log in and log out code in html thanks.

shawn.m
Forumember

Male Posts : 365
Reputation : 0
Language : English

http://modifiedcarroom.com/

Back to top Go down

Re: log in log out code!

Post by Darren1 on July 13th 2011, 2:06 pm

Hi,

Is it for the navigation bar or a template?

Generally /login & /logout will suffice...

Darren1
Helper
Helper

Male Posts : 11853
Reputation : 563
Language : English

Back to top Go down

Re: log in log out code!

Post by Ryanette on July 13th 2011, 2:28 pm

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>

Ryanette
Forumember

Male Posts : 135
Reputation : 2
Language : English (British)
Location : England, United Kingdom

http://www.devforumz.com

Back to top Go down

Re: log in log out code!

Post by shawn.m on July 13th 2011, 2:52 pm

its for my nav link, not the box

shawn.m
Forumember

Male Posts : 365
Reputation : 0
Language : English

http://modifiedcarroom.com/

Back to top Go down

Re: log in log out code!

Post by Darren1 on July 14th 2011, 3:08 am

For the navigation bar, as I said above.

@Darren1 wrote: /login & /logout will suffice...

If /log... doesn't work try {forumurl}/log...

Darren1
Helper
Helper

Male Posts : 11853
Reputation : 563
Language : English

Back to top Go down

Re: log in log out code!

Post by shawn.m on July 14th 2011, 7:45 pm

i still need this

shawn.m
Forumember

Male Posts : 365
Reputation : 0
Language : English

http://modifiedcarroom.com/

Back to top Go down

Re: log in log out code!

Post by Guest on July 14th 2011, 8:17 pm

Log in: <a href="/login">Login</a>
Log out: <a href="/login?logout=1">Logout</a>

Guest
Guest


Back to top Go down

Re: log in log out code!

Post by shawn.m on July 14th 2011, 8:32 pm

thanks but i need so when your loggin in, it says log out, and when logged out in says log in Smile http://modifiedcarforum.nstars.org

shawn.m
Forumember

Male Posts : 365
Reputation : 0
Language : English

http://modifiedcarroom.com/

Back to top Go down

:D

Post by ArChKnIgHt on July 14th 2011, 8:50 pm

hello i got what you mean....

here is the code Very Happy

-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

ArChKnIgHt
Forumember

Male Posts : 134
Reputation : -1
Language : Arabic | English | French | CSS | HTML | JS
Location : Egypt

http://ultragamerz.forumotion.net/

Back to top Go down

Re: log in log out code!

Post by shawn.m on July 14th 2011, 8:57 pm

aha thanks alot Smile

shawn.m
Forumember

Male Posts : 365
Reputation : 0
Language : English

http://modifiedcarroom.com/

Back to top Go down

Re: log in log out code!

Post by ArChKnIgHt on July 14th 2011, 9:10 pm

Np And Glad I Could Help Very Happy

ArChKnIgHt
Forumember

Male Posts : 134
Reputation : -1
Language : Arabic | English | French | CSS | HTML | JS
Location : Egypt

http://ultragamerz.forumotion.net/

Back to top Go down

Re: log in log out code!

Post by kirk on July 19th 2011, 4:55 am

@ArChKnIgHt wrote:hello i got what you mean....

here is the code Very Happy

-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 Smile


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

Male Posts : 11037
Reputation : 651
Language : English,Vulcan,Klingon, Romulan,& Gorn

Back to top Go down

Re: log in log out code!

Post by ArChKnIgHt on July 21st 2011, 4:30 am

Glad I Could Help And Sure It Will Work, Iam Already Using It In My Forum Very Happy

ArChKnIgHt
Forumember

Male Posts : 134
Reputation : -1
Language : Arabic | English | French | CSS | HTML | JS
Location : Egypt

http://ultragamerz.forumotion.net/

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