Hello, In aMember 3, I used to be able to put a simple html form to login to aMember, along with a redirect destination upon successful login. It doesn't seem to work now that I've upgraded to version 4. Should I just copy the source code behind the default aMember login form and put that in my PHP file? Or is there a better way to embed a login form in a page? Thanks in advance.
you can use http://www.amember.com/docs/API/Lite Am_Lite::getInstance()->renderLoginForm() renders aMember login form David
renderLoginForm() works great for showing a login form within a page. Is there anyway to control the outputed form without resorting to css tricks. I wish to change the login label field of "E-Mail Address or Username" to just Username. I tried changing this field within Global Translations but to no effect. Thanks in advance.
in file /home/myusername/public_html/amember/library/Am/Lite.php the form labels are set in around line 125 and can no doubt be changed there to the labels you are wanting. Remember though that when you upgrade versions your changes will probably revert to their defaults if this file is overwritten as part of the upgrade. Or just create your own form with action='/home/myusername/public_html/amember/member/index'