Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • tulioc Friend
    #191039

    Hi there,

    How can I add registration fields (address, phone number,etc) from profile plugin to the Ja Login module when someone click on “Create an Account” box?

    Thanks,

    Tulio

    Ninja Lead Moderator
    #507652

    JA Login module doesn’t support to do that but you can customize it by this way

    + Open templates/ja_vintas/html/mod_jalogin/default.php file

    Add new registration fields (address, phone number,etc).. in this block


    <form id="member-registration" action="<?php echo JRoute::_('index.php?option=com_users&task=registration.register'); ?>" method="post" class="form-validate">
    <fieldset>
    <?php if (isset($fieldset->label)):// If the fieldset has a label set, display it as the legend.?>
    <legend><?php echo JText::_($fieldset->label);?></legend>
    <?php endif;?>
    <dl>
    <dt>
    <label class="hasTip required" for="jform_name" id="jform_name-lbl" title="Name<br>Enter your full name"><?php echo JText::_( 'JANAME' ); ?>:</label><em>*</em></dt>
    <dd><input type="text" size="30" class="required" value="" id="jform_name" name="jform[name]"/></dd>

    <dt>
    <label title="" class="hasTip required" for="jform_username" id="jform_username-lbl"><?php echo JText::_( 'JAUSERNAME' ); ?>:</label><em>*</em></dt>
    <dd><input type="text" size="30" class="validate-username required" value="" id="jform_username" name="jform[username]"/>
    </dd>
    <dt>
    <label title="" class="hasTip required" for="jform_password1" id="jform_password1-lbl"><?php echo JText::_( 'JGLOBAL_PASSWORD' ); ?>:</label><em>*</em></dt>
    <dd>
    <input type="password" size="30" class="validate-password required" value="" id="jform_password1" name="jform[password1]" />
    </dd>
    <dt>
    <label title="" class="hasTip required" for="jform_password2" id="jform_password2-lbl"><?php echo JText::_( 'JGLOBAL_REPASSWORD' ); ?>:</label><em>*</em></dt>
    <dd>
    <input type="password" size="30" class="validate-password required" value="" id="jform_password2" name="jform[password2]" />
    </dd>
    <dt>
    <label title="" class="hasTip required" for="jform_email1" id="jform_email1-lbl"><?php echo JText::_( 'JAEMAIL' ); ?>:</label><em>*</em></dt>
    <dd>
    <input type="text" size="30" class="validate-email required" value="" id="jform_email1" name="jform" />
    </dd>
    <dt>
    <label title="" class="hasTip required" for="jform_email2" id="jform_email2-lbl"><?php echo JText::_( 'JACONFIRM_EMAIL_ADDRESS'); ?>:</label><em>*</em></dt>
    <dd>
    <input type="text" size="30" class="validate-email required" value="" id="jform_email2" name="jform" />
    </dd>

    <?php if(!empty($captchatext)) { ?>
    <dt>
    <label title="" class="hasTip required" id="jform_captcha-lbl"><?php echo JText::_( 'JACAPTCHA'); ?>:</label> </dt>
    <dd>
    <?php echo $captchatext; ?> <br>*
    </dd>
    <?php } ?>
    </dl>
    </fieldset>
    <p><?php echo JText::_("DESC_REQUIREMENT"); ?></p>
    <button type="submit" class="validate"><?php echo JText::_('JAREGISTER');?></button>
    <div>
    <input type="hidden" name="option" value="com_users" />
    <input type="hidden" name="task" value="registration.register" />
    <?php echo JHTML::_('form.token');?>
    </div>
    </form>

    tulioc Friend
    #507827

    Hi Ninja, thanks for your answer.

    Got it!

    Tulio

    Ninja Lead Moderator
    #507873

    I would like to clarify that this is a heavy customization, you must

    + Customize JA Login

    + Change com_user

    + …

    If you are not familiar with code, you should hire a developer to carry out such work for you 🙂

Viewing 4 posts - 1 through 4 (of 4 total)

This topic contains 4 replies, has 2 voices, and was last updated by  Ninja Lead 11 years, 1 month ago.

We moved to new unified forum. Please post all new support queries in our New Forum