MyBB Community Forums

Full Version: A login box?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
How can i put a login box next to the header?

I found this code
<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>


I put in header_welcomeblock_guest but this happens

[attachment=17001]

How can i put it next to the logo?

Thanks Big Grin
Do you have the code inside the "logo" div?
Try using a "float:right" div around your code.
Thanks for your help, now it works Big Grin
Glad to hear it.