How do I remove the "name" field in sign up?

Discussion in 'Templates customization' started by digitalage, Aug 14, 2008.

  1. digitalage

    digitalage New Member

    Joined:
    Aug 2, 2008
    Messages:
    9
    Hi all,
    I want to remove the
    "Your Name* -Your First & Last name"

    field located in the templates/signup.html .However when I take out that cell in the html file it gives and error every time someone tries to sign up.

    Can anyone help me to do this?

    Code:
    [B]<tr>
        <th width="40%">#_TPL_SIGNUP_NAME# *<br />
        <div class="small">#_TPL_SIGNUP_NAME_1#</div></th>
        <td nowrap="nowrap"><input type="text" name="name_f" value="{$smarty.request.name_f|escape}" size="15" />
            <input type="text" name="name_l" value="{$smarty.request.name_l|escape}" size="15" />
        </td>
    </tr>[/B]
  2. skippybosco

    skippybosco CGI-Central Partner Staff Member

    Joined:
    Aug 22, 2006
    Messages:
    2,526
    What is the error you are receiving? I suspect you are getting hung up on the javascript validation (amember\includes\jsval\jsval.js)
  3. digitalage

    digitalage New Member

    Joined:
    Aug 2, 2008
    Messages:
    9
    I don't remember the error since I redo the change since the error.
    I am suspecting amember is expecting a value from these two fields. Can I set a value for it by my self

    for example first name: Name1 , Last name: Name2 ?


    Thank you for your reply
  4. skippybosco

    skippybosco CGI-Central Partner Staff Member

    Joined:
    Aug 22, 2006
    Messages:
    2,526
    Perhaps an option for you is to:

    1) Have a custom field called "Full Name" displayed on the signup form
    2) On submit, parse that field (on space?) to the individual fields (l_name, f_name)
  5. digitalage

    digitalage New Member

    Joined:
    Aug 2, 2008
    Messages:
    9

    I actually had no name in my signup but I didn't save the alterations I made to the signup.php template. I wish some one can help me to do that again because I was doing it by trial and error and don't remember what i did at all.

    Thanks again
  6. echel0n

    echel0n Guest

    .............................
  7. skippybosco

    skippybosco CGI-Central Partner Staff Member

    Joined:
    Aug 22, 2006
    Messages:
    2,526

Share This Page