html page for login
3 posters
Page 1 of 1
html page for login
i would like to make a html page that my site will go to automatically ONLY for people who are not logged in. Only then if they are logged in would they see the forum. how can i do this?
Last edited by atlantica on March 1st 2010, 10:17 pm; edited 1 time in total
atlantica- Forumember
- Posts : 106
Reputation : 0
Language : English
Re: html page for login
Modules>>HTML Page Management
rblatch- Active Poster
- Posts : 1042
Reputation : 2
Language : HTML & CSS (Learning)
Location : Graphics Central
Re: html page for login
atlantica wrote:i would like to make a html page that my site will go to automatically ONLY for people who are not logged in. Only then if they are logged in would they see the forum. how can i do this?
how do i get a login box in the html page???
And how do i have anyone that is nopt logged into my forum automatically directed to the html. I know i how to make an html page the homepage . . . just a not as a login page or to have people redirected to it if they are not logged in . . . .
atlantica- Forumember
- Posts : 106
Reputation : 0
Language : English
Re: html page for login
atlantica wrote:how do i get a login box in the html page???
And how do i have anyone that is nopt logged into my forum automatically directed to the html. I know i how to make an html page the homepage . . . just a not as a login page or to have people redirected to it if they are not logged in . . . .
Here is forumotions default login code. If you want or match your forums login color/pictures, you have to add the classes to them from your forums css or add new tags in the html. All you have to do is copy & paste this into a new html page. Hope this helps.
- Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>Login</title></head><body><table cellpadding="0" cellspacing="0" width="100%" class="three-col"><tbody><tr><td valign="top" width="0"><div></div></td><td valign="top" width="100%"> <form action="/login.forum" method="post" name="form_login"> <table width="100%" border="0" cellspacing="2" cellpadding="0" align="center"> <tr> <td> </td> </tr> </table> <table width="100%" border="0" cellspacing="1" cellpadding="4" align="center"> <tr> <th nowrap="nowrap" height="25">Please enter your username and password to log in. </th> </tr> <tr> <td> <table width="100%" border="0" cellspacing="1" cellpadding="0"> <tr> <td colspan="2" align="center"> </td> </tr> <tr> <td align="right" width="45%"> <span>Username: </span> </td> <td> <input type="text" name="username" value="" size="25" maxlength="40" /> </td> </tr> <tr> <td align="right"> <span>Password: </span> </td> <td> <input type="password" name="password" size="25" maxlength="32" /> </td> </tr> <tr align="center"> <td colspan="2"> <span>Log me on automatically at each visit: <input type="checkbox" name="autologin"checked="checked" /> </span> </td> </tr> <tr align="center"> <td colspan="2"> <input type="hidden" name="redirect" value="" /> <input type="hidden" name="query" value="" /> <input type="submit" name="login" value="Log in" /> </td> </tr> <tr align="center"> <td colspan="2"> <br /> <span><a href="profile.forum?mode=register">:: Register</a> | <a href="/profile.forum?mode=sendpassword">:: I forgot my password</a> </span> </td> </tr> </table> </td> </tr> </table></form></tr></tbody></table></body></html>
Re: html page for login
Thank you a ton. what i want to do is make a nice looking background image for it, how do i code an image url for the whole page to have a background? sorry, i don;t know much html code. only visual basic.
atlantica- Forumember
- Posts : 106
Reputation : 0
Language : English
Re: html page for login
atlantica wrote:Thank you a ton. what i want to do is make a nice looking background image for it, how do i code an image url for the whole page to have a background? sorry, i don;t know much html code. only visual basic.
Find your < body > code near the top, and replace it with the code below and insert your image url where it says "INSERT URL HERE":
- Code:
<body background="INSERT URL HERE">
When you have a dark image, you may want to color your text for the login area to white or any other lighter color because, it is black by default.
Example html tag:
- Code:
<font color="white">Please enter your username and password to log in.</font>
Similar topics
» HTML Page Login Form redirect to another Html Page when failed
» How do you load the login page instead of the index.html page automatically
» Html page login
» Login in html page
» login in html page
» How do you load the login page instead of the index.html page automatically
» Html page login
» Login in html page
» login in html page
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum