I'm trying to create a login form on a non-vB page using 3.5 Beta 1, but I can't see to get it to work out.
Currently, I'm using the following:
Code:
<script
src="/path/to/clientscript/vbulletin_md5.js"
type="text/javascript"></script>
<form action="/path/to/login.php" method="post"
onsubmit="md5hash(vb_login_password,vb_login_md5password)">
<input name="vb_login_md5password" type="hidden" />
<input name="s" type="hidden" value="" />
<input name="do" type="hidden" value="login" />
<input class="bginput" name="vb_login_username" size="12"
type="text" /><br />
<input class="bginput" name="vb_login_password" size="12"
type="password" /><br />
<input checked="checked" class="bginput" name="cookieuser"
id="cb_cookieuser" type="checkbox" value="1" /><span
class="smallfont">Use Cookies</span>
<input class="button" type="submit" value="Login!" />
</form>
But using that, it sends me to a blank white screen and all it says is this:
Quote:
In order to accept POST request originating from this domain, the admin must add this domain to the whitelist.
|
How can I get the login-code to work, maybe without using that code but another. At the same time, how about controlling where the redirect goes? Is it possible to make it not redirect anywhere but just refresh to display the login information?
I'd be happy just to get it to work, and then add to it as I progress. Thanks in advance for the help.