MyBB Community Forums

Full Version: Display the login box by default?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
You have to click the login link for the login box to appear.

How do I make it so the login box is there and you don't need to click the login link?
ACP > Templates > Your theme's templates > Edit > Header Templates > header_welcomeblock_guest > and Replace all code with this;
<span style="float: right;">{$lang->welcome_current_time}</span>
<span id="quick_login">{$lang->welcome_guest}
    <form action="member.php" method="POST">
        <input type="hidden" name="action" value="do_login">
        <input type="hidden" name="url" value="{$url}">
        <strong>{$lang->username}</strong>
        <input type="text" name="username">
        <strong>{$lang->password}</strong>
        <input type="password" name="password">&nbsp;
<input type="submit" value="{$lang->login}">
&mdash; <a href="{$mybb->settings['bburl']}/member.php?action=register">{$lang->welcome_register}</a></form>
</span>

It should be like this now;
[attachment=23706]
Thanks Yaldaram, I appreciate it.

It scared me at first because for some reason it kept saving as blank and wouldn't do anything...

I guess my host was just being screwy.
Probably there were many &nbsp; 's when you copied it from the code block. Those make the blank spaces I guess.