Viewing 2 posts - 1 through 2 (of 2 total)
-
AuthorPosts
-
October 6, 2016 at 6:15 pm #974210
Hi, i want to add a new custom field in the registration form. I need help please.
pavit Moderatorpavit
- Join date:
- September 2007
- Posts:
- 15749
- Downloads:
- 199
- Uploads:
- 2274
- Thanks:
- 417
- Thanked:
- 4028 times in 3778 posts
October 6, 2016 at 6:41 pm #974215Hi
This could be quite difficult to manage and customize anyway try this
Open /templates/yourtemplate/html/mod_jalogin/default.php ( it is the overrided mod )
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>
-
AuthorPosts
Viewing 2 posts - 1 through 2 (of 2 total)
This topic contains 1 reply, has 2 voices, and was last updated by pavit 8 years, 3 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum