MyBB Community Forums

Full Version: Hello There, Guest! (Login — Register)
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Odd. it works perfectly fine for me in Firefox. The only other option would be to modify the template to just use plain textboxes to ensure the browser does definitely remember the login credentials.
(2012-04-25, 01:56 PM)euantor Wrote: [ -> ]Odd. it works perfectly fine for me in Firefox. The only other option would be to modify the template to just use plain textboxes to ensure the browser does definitely remember the login credentials.

How is it done?

Have looked and looked at the code, no idea.

Thanks
You'd have to modify the header_welcomeblock_guest template. You could replace it with code like this:

<form method="post" action="member.php">
	<label for="username">Username:</label>
	<input type="text" value="" style="width: 200px;" maxlength="30" size="25" name="username" class="textbox" />
	<label for="password">Password:</label>
	<input type="password" value="" style="width: 200px;" size="25" name="password" class="textbox" />
	<label class="smalltext" title="If ticked, your login details will be remembered on this computer, otherwise, you will be logged out as soon as you close your browser."><input ype="checkbox" value="yes" checked="checked" name="remember" class="checkbox"> Remember?</label>
	<input type="submit" value="Login" name="submit" class="button" />
	<input type="hidden" value="do_login" name="action" />
	<input type="hidden" value="" name="url" />
</form>
Very cool, euantor, thank you very much.

Had to modify a bit, too...
<span style="float: right;">{$lang->welcome_current_time}</span>
<form method="post" action="member.php">
    <label for="username">Username:</label><br /><input type="text" value="" style="width: 200px;" maxlength="30" size="25" name="username" class="textbox" /><br />
    <label for="password">Password:</label><br /><input type="password" value="" style="width: 200px;" size="25" name="password" class="textbox" /><br />
    <label class="smalltext" title="If ticked, your login details will be remembered on this computer, otherwise, you will be logged out as soon as you close your browser.">Remember? <input type="checkbox" value="yes" checked="checked" name="remember" class="checkbox"></label><br />
    <input type="submit" value="Login" name="submit" class="button" />
    <input type="hidden" value="do_login" name="action" />
    <input type="hidden" value="" name="url" />
</form>

Feel free see how it looks, see link in signature.

I have marked this as solved.
That's a pretty ugly login form, man. Don't see how this is better than the default ...
I can log in now, without clicking something else, or entering them manually.
There are plenty of other themes out there with different login implementations, you should look around a bit.
Not intested in other themes at this time, may be after I get tired of changing default.

How does the login look now?
Altered header_welcomeblock_guest some more.
<span style="margin: 5px 0 0 0;float: right;">{$lang->welcome_current_time}</span>
<form method="post" action="member.php">
    <label for="username">Username:</label> <input type="text" value="" style="width: 75px;" maxlength="30" size="25" name="username" class="textbox" />
    <label for="password">Password:</label> <input type="password" value="" style="width: 100px;" size="25" name="password" class="textbox" />
    <label class="smalltext" title="If ticked, your login details will be remembered on this computer, otherwise, you will be logged out as soon as you close your browser.">Remember? <input type="checkbox" value="yes" checked="checked" name="remember" class="checkbox"></label>
    <input type="submit" value="Login" name="submit" class="button" /><input type="hidden" value="do_login" name="action" /><input type="hidden" value="" name="url" />
    <a href="{$mybb->settings['bburl']}/member.php?action=register">{$lang->welcome_register}</a> | <a href="{$mybb->settings['bburl']}/member.php?action=lostpw">{$lang->lost_password}</a>
</form>

How it looks with code above.
[attachment=26273]
Pages: 1 2