login on different page
So im tired of searching thru search results and categories for this, so ill just ask it here and hope i get a response. I want to put a login for vanilla on my main page, so people can login without having to click the login link. also vanilla wont be the main page, it will be a sub page cuz its goin into a subfolder on my server. so my question is, what is the php code i hav to use to make that work?
0
This discussion has been closed.
Comments
I haven't tested it from outside vanilla, but maybe you can try to put the code of the extension in your external page
<form action="vanilladir/people.php" method="POST" id="PanelLogin"> <input type="hidden" name="ReturnUrl" value="WHATEVER YOU WANT; PROBABLY vanilladir/"> <input type="hidden" name="PostBackAction" value="SignIn"> <input name="Username" maxlength="20"><br> <input type="password" name="Password"><br> <input type="checkbox" name="RememberMe" value="1"> <input type="submit" name="btnSignIn" value="sign in"> </form>
^ that's the form you need. fill in vanilladir/ and ReturnUrl value as you need. might want to add labels too.