Does anyone know what code is needed from V4 to have a login page outside of Amember like we can with V3?
I'm not 100% sure this will work for everyone, but it worked for me. Code: <form name="loginform" id="loginform" action="http://www.yoursite.com/amember/login" method="POST"> <p><label><?php print $instance['username_title'];?></label><br/> <input type="text" name="amember_login" class="input" id="user_login" size="15"></p> <p><label><?php print $instance['password_title'];?></label><br/> <input type="password" name="amember_pass" id="user_password" class="input" size="15"></p> <input type="hidden" name="amember_redirect_url" value="http://www.yoursite.com/whereyouwantyourusertogoafterloggingin/"> <p class="submit"> <input type="submit" name="wp-submit" id="wp-submit" value="Login"> </p> </form>
That works... but there is no label for 'username' and 'password'. Just the empty fields to enter them. How would I add the labels?
If your page is php you can use this to display aMember's login form: PHP: include "/full/path/to/amember/library/Am/Lite.php";echo Am_Lite::getInstance()->renderLoginForm();
My page is Wordpress. I don't want to use the login widget. So I have created a login link that goes to aMember login page. So not to worry just now.
John, I have a question if you don't mind. I see that you use wordpress, why you don't want to use amember login widget? Is there any islsue with it?
Hi how does this work? PHP: <?php include "/amember/library/Am/Lite.php";echo AmLite::getInstance()->renderLoginForm(); ?> Im just getting Fatal error: Class 'AmLite' not found in C:\xampp\htdocs\login.php on line 4
Ah ok yeah that works, do I need to do anything else? At the moment im getting HTTP/1.1 404 Not Found But I noticed that my address is localhost//amember/login/index Im using jumi for joomla. I set my directory to include "../amember/library/Am/Lite.php";
Also actually is it easy enough to have your whole member area in the same way as the login? So I can have it all in Joomla?
Suppose I want to install my amember in website website1.com/auth/ and I also want to make a amember login page on my website xyz.website2.com/login. So, how can I validate a user based on a product from my website1