MyBB Community Forums

Full Version: Login Box
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi all,

Could someone please show me the line of code which would be placed anywhere on a page, to display the login box.

I just want the username and password box.

(I don't want a 'Login' title which you click to make the boxes appear)



Thanks
Probably not the neatest way but it works.

<form action="member.php" method="post">
<input type="hidden" name="action" value="do_login" />
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td><strong><span class="smalltext">{$lang->username}</span></strong>&nbsp;&nbsp;</td>
<td><input type="text" class="textbox" name="username" size="10"  title="{$lang->login_username}" value="{$lang->login_username}" onfocus="this.value=''" />

<label for="remember">
<input type="checkbox" name="remember" id="remember" value="yes" checked="checked"  /><span class="smalltext">Remember Me?</span></label>

</td>
</tr>
<tr>
<td><strong><span class="smalltext">{$lang->password}</span></strong>&nbsp;&nbsp;</td>
<td><input type="password" class="textbox" name="password" size="11"  title="{$lang->login_password}" value="{$lang->login_password}" onfocus="this.value=''" />&nbsp;&nbsp;<input type="submit" class="button" name="submit" value="{$lang->login}" /></td>
</tr>
</table>
</form>
that's awesome, thank you very much!