MyBB Community Forums

Full Version: Move Quick Login
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
You can also put that code in the header template, and it'll work on all pages without modifying any files.
Galen Wrote:You mean you just wanna have the login form on any page on your site?

<form action="http://www.YOURSITE.com/MyBB/member.php" method="post">
	<input type="hidden" name="action" value="do_login" />
	<input type="text" name="username"  value="Username" /><br>
	<input type="password" name="password" value="Password" />
<input type="submit" value="Login" />
</form>

That's just a generic form that'll go on any page. Make sure to replace YOURSITE.com/MyBB/ with the correct path to your forum.
Just thought I'd touch base on this - thankyou very much as worked brilliantly! I made the modification to: header_welcomeblock_guest by simply adding the code to the end of the template

Added the following code which is slightly altered to fit in with the rest of the MyBB board:

<form action="http://www.mysite.co.uk/myBB/member.php" method="post">
<div align="left">
<input type="hidden" name="action" value="do_login" />
<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'; }" />
<input type="submit" value="Login" />
</div>
</form>

As I say - excellent stuff and thank you very much!
Pages: 1 2