MyBB Community Forums

Full Version: External Login Page
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Dear reader,


I'm trying to make the users of my forum login with their username and password on an external page.

Now, I searched around and found this piece of code:
<?php
define("IN_MYBB", 1);
require("forum/global.php");
?>
 
<form action='forum/member.php' method='post'>
<input type='hidden' name='action' value='do_login' />
<input type='hidden' name='url' value='index.php' />
Username: <input type='text' name='username' maxlength='30' /><br />
Password: <input type='password' name='password' /><br />
<input type='submit' name='submit' value='Log in' />
</form>

Problem is that it redirects to my forum, this shouldn't happen. It should redirect to another page.

How can I make this happen?




Kind Regards,


- Nandricka
Nobody?
Nobody? Huh
Here use this small change to the index

<?php
define("IN_MYBB", 1);
require("forum/global.php");
?>
 
<form action='forum/member.php' method='post'>
<input type='hidden' name='action' value='do_login' />
<input type='hidden' name='url' value='../index.php' />
Username: <input type='text' name='username' maxlength='30' /><br />
Password: <input type='password' name='password' /><br />
<input type='submit' name='submit' value='Log in' />
</form>  ?>