Advertise Here

Author Topic: [Code] Login Box  (Read 2321 times)

0 Members and 1 Guest are viewing this topic.

Offline Crasy

  • Global Moderator
  • *
  • Posts: 3960
  • Semi-Retired ;)
    • View Profile

  • Total Badges: 29
    Badges: (View All)
    Poll Starter Poll Voter Seventh year Anniversary Arcade Highscore Windows User
[Code] Login Box
« on: January 13, 2007, 11:59:54 am »
This is a code for the login boxes.
You can have login boxes on your main page, headers, footers or anywhere.

This is mostly just useful for those of you that have another main site the links to your forum.
Place this code somewhere on the webpage. When someone logs in however remember that they are immediatly redirected to the forum(so don't go sticking it into a side frame)

Code: [Select]
<html><form action="http://testcrasyandconfused.smfforfree.com/index.php?action=login2"

method="post" style="margin: 3px 1ex 1px 0; text-align:left;">

<input type="text" name="user" size="10" value="Username" />

<input type="password" name="passwrd" size="10" value="password" />

<select name="cookielength"><option value="60">1 Hour</option><option value="1440">1

Day</option><option value="10080">1 Week</option><option value="302400">1 Month</option><option

value="-1" selected="selected">Forever</option>

</select><input type="submit" value="Login" /><br /></form></html>


Preview attached. I've added the default values to be "Username" and "password". That way people know it's a login box ;)
« Last Edit: April 23, 2008, 02:42:38 pm by Agent Moose »
Did my answer help you? Want to help out hosting costs?


Every donation counts.

Offline Legend_Killer

  • SMF For Free Full Member
  • *
  • Posts: 212
    • View Profile
    • The Chill House Forum

  • Total Badges: 18
    Badges: (View All)
    Topic Starter Combination Level 4 Level 3 Level 2
Re: Login Box
« Reply #1 on: January 13, 2007, 01:28:39 pm »
When We Login... Will it Redirect to The Forum or will we stay in the site and be logged in?

Offline Crasy

  • Global Moderator
  • *
  • Posts: 3960
  • Semi-Retired ;)
    • View Profile

  • Total Badges: 29
    Badges: (View All)
    Poll Starter Poll Voter Seventh year Anniversary Arcade Highscore Windows User
Re: Login Box
« Reply #2 on: January 13, 2007, 02:40:11 pm »
It will redirect immediatly to the site.
Did my answer help you? Want to help out hosting costs?


Every donation counts.

 

Related Topics

  Subject / Started by Replies Last post
2 Replies
1085 Views
Last post September 18, 2007, 03:02:31 am
by Alex
9 Replies
2592 Views
Last post July 10, 2008, 05:51:00 am
by windom
5 Replies
2132 Views
Last post September 20, 2008, 08:17:46 pm
by thejudge
2 Replies
1976 Views
Last post January 14, 2009, 08:34:34 pm
by valhalla95
2 Replies
966 Views
Last post February 09, 2010, 06:33:54 pm
by Didnt--Do--It5