-
AuthorPosts
-
tulioc Friend
tulioc
- Join date:
- March 2013
- Posts:
- 59
- Downloads:
- 0
- Uploads:
- 19
- Thanks:
- 18
- Thanked:
- 1 times in 1 posts
September 30, 2013 at 3:12 pm #191039Hi 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 ModeratorNinja Lead
- Join date:
- November 2014
- Posts:
- 16064
- Downloads:
- 310
- Uploads:
- 2864
- Thanks:
- 341
- Thanked:
- 3854 times in 3563 posts
October 1, 2013 at 9:14 am #507652JA 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>
1 user says Thank You to Ninja Lead for this useful post
tulioc Friendtulioc
- Join date:
- March 2013
- Posts:
- 59
- Downloads:
- 0
- Uploads:
- 19
- Thanks:
- 18
- Thanked:
- 1 times in 1 posts
October 2, 2013 at 8:29 pm #507827Hi Ninja, thanks for your answer.
Got it!
Tulio
Ninja Lead ModeratorNinja Lead
- Join date:
- November 2014
- Posts:
- 16064
- Downloads:
- 310
- Uploads:
- 2864
- Thanks:
- 341
- Thanked:
- 3854 times in 3563 posts
October 3, 2013 at 5:18 am #507873I 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 🙂
-
AuthorPosts
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