Custom login form

Discussion in 'aMember Pro v.4' started by skbohler, Jan 25, 2013.

  1. skbohler

    skbohler Member

    Joined:
    Jun 1, 2006
    Messages:
    44
    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.
  2. davidm1

    davidm1 aMember User & Partner

    Joined:
    May 16, 2006
    Messages:
    4,437
  3. skbohler

    skbohler Member

    Joined:
    Jun 1, 2006
    Messages:
    44
  4. glyn_szasz

    glyn_szasz New Member

    Joined:
    Feb 4, 2013
    Messages:
    12
    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.
  5. thehpmc

    thehpmc Member

    Joined:
    Aug 24, 2006
    Messages:
    901
    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'
  6. glyn_szasz

    glyn_szasz New Member

    Joined:
    Feb 4, 2013
    Messages:
    12
    thanks thehpmc

Share This Page