MyBB Community Forums

Full Version: Quick Login Box at Top.
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
This probably a nooby request, but is there any way to make the quick login box at the top of your board? If not, can somebody help me out with it.

This is some code I found when searching:
<form action="member.php" method="post">
    <input type="hidden" name="action" value="do_login" />
    <span class="smalltext"><strong>Quick Login:</strong></span>
    <input type="text" class="textbox" name="username" title="Username" value="Username" onfocus="if(this.value == 'Username') { this.value=''; }" onblur="if(this.value=='') { this.value='Username'; }" />
    <input type="password" class="textbox" name="password" title="Password" value="Password" onfocus="if(this.value == 'Password') { this.value=''; }" onblur="if(this.value=='') { this.value='Password'; }" />
    <!-- start: gobutton -->
<input type="submit" class="button" value="Go" />
<!-- end: gobutton -->
</form>
That code looks about right.

Just stick it into the header_welcomeblock_guest template.
Okay, thanks! I'm learning so much... already. lol.

EDIT: It works, thanks sooo much!
This works fine. Thanks very much. :]