I apologize if this question has been answered. I've searched the forum and couldn't find it. I am having a problem trying to embed login.php inside a Wordpress page. Are there instructions for doing this somewhere? I would also like to have the user redirected to a different Wordpress page after login. Any help is appreciated. Thanks! renee
While there are plenty of widgets around to embed aMember login into sidebars, etc., you can just follow the basic HTML code contained in the aMember manual and add it to your page's HTML: http://manual.amember.com/Integrating_aMember_Pro_with_website Code: <form action="/amember/login.php" method=post> Username: <input type=text name=amember_login size=10><br> Password: <input type=password name=amember_pass size=10><br> <input type=submit value=Login> </form> Regarding redirecting somewhere else after login, you can include this bit of text in the above login code snippet I provided: <input type="hidden" name="amember_redirect_url" value="/yournewurl" />
Thanks, Skippy! I appreciate the quick reply. And yes, I know about the widgets but I want something embedded into a page and not in a sidebar. While embedding the form is easy, what I really want is to embed the entire login.php page contents, including the "lost password" field at the bottom. Thanks! renee
The code I posted above will give you the login. The "Lost Password" code is: Code: <form name="sendpass" method="post" action="/sendpass.php"> <table align="center" class="vedit" width="30%"> <tr> <th>Enter your <b>E-Mail Address</b> or <b>Username</b></th> <td><input type="text" name="login" size="12" /></td> </tr> </table> <input type="submit" value="Get Password" /> </form>
Okay. The forms are working perfectly. But the error handling that is included in login.php is not there, of course. I would like to have everything handled on one page. Now, when there's an error it calls up login.php with the error message. I would like not to be taken outside Wordpress. It sounds like I may need to have login.php embedded. Is this possible?
You could certainly iFrame login.php, but if you are looking to get full continuity of function/style across your various functions/pages of your site you may be better off in the long run engaging with a designer to get it sorted properly for you.
Thanks, Skippy. I did engage a developer who was difficult to work with and left me in the lurch. Later I found that he'd been modifying the amember .php files (instead of the .html templates) by hard-coding in the WP permalink id numbers. I'm a designer and have my theme already. I think what I need is a reliable developer who understands both Wordpress and amember. renee