Skip to content

Commit d9866dc

Browse files
HTML Validation bug fixes
1 parent a47e5db commit d9866dc

File tree

2 files changed

+20
-20
lines changed

2 files changed

+20
-20
lines changed

mod_registerlogin.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
<extension type="module" version="3.0" client="site" method="upgrade">
33
<name>Register Login</name>
44
<author>JoomDev</author>
5-
<creationDate>Nov, 2018</creationDate>
5+
<creationDate>Oct, 2020</creationDate>
66
<copyright>All rights reserved.</copyright>
77
<license>https://www.gnu.org/licenses/gpl-2.0.html GNU/GPL</license>
88
<authorEmail>info@joomdev.com</authorEmail>
99
<authorUrl>www.joomDev.com</authorUrl>
10-
<version>1.11</version>
10+
<version>1.12</version>
1111
<description>
1212
<![CDATA[<div style="font-size:16px; font-weight:bold; color:black; text-align:left; margin:0px; padding:0px 5px;"><h3>Register Login By JoomDev</h3></div>
1313
<div style="font-weight:normal; border-bottom:1px solid #f0dc7e;display:block; padding-bottom:5px; margin:5px; background-color:#fff;"></div>

tmpl/default.php

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@
3838
$document->addStyleSheet(JURI::root() .'modules/mod_registerlogin/tmpl/assets/registerlogin.css');
3939

4040
?>
41-
<script type="text/javascript" src="https://www.google.com/recaptcha/api.js?hl=<?php echo $lang; ?>"></script>
42-
<script type="text/javascript" src="<?php echo JURI::root() .'modules/mod_registerlogin/tmpl/assets/jquery.registerloginplugin.js'?>"></script>
41+
<script src="https://www.google.com/recaptcha/api.js?hl=<?php echo $lang; ?>"></script>
42+
<script src="<?php echo JURI::root() .'modules/mod_registerlogin/tmpl/assets/jquery.registerloginplugin.js'?>"></script>
4343
<div id="error_message1">
4444
<?php if($errorMessage){ ?>
4545
<div class="alert alert-error"><a data-dismiss="alert" class="close">x</a>
@@ -78,20 +78,20 @@
7878
</h3>
7979
<form action="<?php echo JRoute::_('index.php', true, $params->get('usesecure')); ?>" method="post" id="login-form" name="josForm" class="form-validate form-horizontal">
8080
<div class="jd-inputbox-control">
81-
<?php if ($params->get('usetext')) : ?><label for=""><?php echo JText::_('COM_USERS_LOGIN_USERNAME_LABEL'); ?> </label>
81+
<?php if ($params->get('usetext')) : ?><label><?php echo JText::_('COM_USERS_LOGIN_USERNAME_LABEL'); ?> </label>
8282
<?php endif; ?>
83-
<input type="text" id="modlgn-username" name="username" class="jd-form-input required" value="" tabindex="0" size="18" placeholder="<?php if(!$params->get('usetext')) { echo JText::_('COM_USERS_LOGIN_USERNAME_LABEL'); } ?>" required="true">
83+
<input type="text" id="modlgn-username" name="username" class="jd-form-input required" value="" tabindex="0" size="18" placeholder="<?php if(!$params->get('usetext')) { echo JText::_('COM_USERS_LOGIN_USERNAME_LABEL'); } ?>" required>
8484
</div>
8585
<div class="jd-inputbox-control">
86-
<?php if ($params->get('usetext')) : ?><label for=""><?php echo JText::_('COM_USERS_PROFILE_PASSWORD1_LABEL'); ?> </label>
86+
<?php if ($params->get('usetext')) : ?><label><?php echo JText::_('COM_USERS_PROFILE_PASSWORD1_LABEL'); ?> </label>
8787
<?php endif; ?>
88-
<input value="" id="modlgn_passwd" type="password" name="password" class="jd-form-input required password" tabindex="0" size="18" placeholder="<?php if(!$params->get('usetext')) { echo JText::_('COM_USERS_PROFILE_PASSWORD1_LABEL'); } ?>" required="true">
88+
<input value="" id="modlgn_passwd" type="password" name="password" class="jd-form-input required password" tabindex="0" size="18" placeholder="<?php if(!$params->get('usetext')) { echo JText::_('COM_USERS_PROFILE_PASSWORD1_LABEL'); } ?>" required>
8989
<span class="jd-input-group-addon" onclick="previewpass()">
9090
<span class="showpass" id="loginshowpass" aria-hidden="true"><?php echo JText::_('JSHOW') ?></span>
9191
</span>
9292
</div>
9393
<div class="jd-inputbox-control jd-control-check-raido">
94-
<?php if (JPluginHelper::isEnabled('system', 'remember')) : ?><label for=""><input type="checkbox" name="remember" class="jd-form-checkbox-radio" value="yes"><?php echo JText::_('COM_USERS_LOGIN_REMEMBER_ME') ?></label>
94+
<?php if (JPluginHelper::isEnabled('system', 'remember')) : ?><label><input type="checkbox" name="remember" class="jd-form-checkbox-radio" value="yes"><?php echo JText::_('COM_USERS_LOGIN_REMEMBER_ME') ?></label>
9595
<?php endif; ?>
9696
</div>
9797
<div class="jd-button-control">
@@ -118,44 +118,44 @@
118118

119119
<div data-tab id="jd-register-container-<?php echo $module->id; ?>" class="jd-register-container">
120120
<?php if ($usersConfig->get('allowUserRegistration')) { ?>
121-
<form action="" method="post" id="registration_form" name="josForm" class="form-validate form-horizontal">
121+
<form method="post" id="registration_form" name="josForm" class="form-validate form-horizontal">
122122
<div class="jd-inputbox-control">
123-
<?php if ($params->get('usetext')) : ?><label for=""><?php echo JText::_('COM_USERS_REGISTER_NAME_LABEL'); ?> </label>
123+
<?php if ($params->get('usetext')) : ?><label><?php echo JText::_('COM_USERS_REGISTER_NAME_LABEL'); ?> </label>
124124
<?php endif; ?>
125125
<input tabindex="1" placeholder="<?php if(!$params->get('usetext')) { echo JText::_('COM_USERS_REGISTER_NAME_LABEL'); } ?>" type="text" name="jform[name]" id="jform_name" size="20" class="jd-form-input required" required/>
126126
</div>
127127
<div class="jd-inputbox-control">
128-
<?php if ($params->get('usetext')) : ?><label for=""><?php echo JText::_('JGLOBAL_USERNAME'); ?> </label>
128+
<?php if ($params->get('usetext')) : ?><label><?php echo JText::_('JGLOBAL_USERNAME'); ?> </label>
129129
<?php endif; ?>
130130
<input tabindex="2" type="text" placeholder="<?php if(!$params->get('usetext')) { echo JText::_('JGLOBAL_USERNAME'); } ?>" id="jform_username" name="jform[username]" size="20" class="jd-form-input required" required/>
131131
</div>
132132
<div class="jd-inputbox-control">
133-
<?php if ($params->get('usetext')) : ?><label for=""><?php echo JText::_('JGLOBAL_PASSWORD'); ?> </label>
133+
<?php if ($params->get('usetext')) : ?><label><?php echo JText::_('JGLOBAL_PASSWORD'); ?> </label>
134134
<?php endif; ?>
135135
<input tabindex="3" placeholder="<?php if(!$params->get('usetext')) { echo JText::_('JGLOBAL_PASSWORD'); } ?>" class="jd-form-input required" type="password" id="jform_password1" name="jform[password1]" size="20" value="" required/>
136136
</div>
137137
<div class="jd-inputbox-control">
138-
<?php if ($params->get('usetext')) : ?><label for=""><?php echo JText::_('COM_USERS_REGISTER_PASSWORD2_DESC'); ?> </label>
138+
<?php if ($params->get('usetext')) : ?><label><?php echo JText::_('COM_USERS_REGISTER_PASSWORD2_DESC'); ?> </label>
139139
<?php endif; ?>
140140
<input tabindex="4" placeholder="<?php if(!$params->get('usetext')) { echo JText::_('COM_USERS_REGISTER_PASSWORD2_DESC'); } ?>" data-rule-equalTo="#jform_password1" class="jd-form-input required" type="password" id="jform_password2" name="jform[password2]" size="20" value="" required/>
141141
<span class="jd-input-group-addon" onclick="previewpassonregister()">
142142
<span class="showpass" id="reghidepass" aria-hidden="true"><?php echo JText::_('JSHOW') ?></span>
143143
</span>
144144
</div>
145145
<div class="jd-inputbox-control">
146-
<?php if ($params->get('usetext')) : ?><label for=""><?php echo JText::_('COM_USERS_REGISTER_EMAIL1_DESC'); ?> </label>
146+
<?php if ($params->get('usetext')) : ?><label><?php echo JText::_('COM_USERS_REGISTER_EMAIL1_DESC'); ?> </label>
147147
<?php endif; ?>
148148
<input tabindex="5" placeholder="<?php if(!$params->get('usetext')) { echo JText::_('COM_USERS_REGISTER_EMAIL1_DESC'); } ?>" type="email" id="jform_email1" name="jform[email1]" size="20" class="jd-form-input validate-email required email" required/>
149149
</div>
150150
<div class="jd-inputbox-control">
151-
<?php if ($params->get('usetext')) : ?><label for=""><?php echo JText::_('COM_USERS_REGISTER_EMAIL2_DESC'); ?> </label>
151+
<?php if ($params->get('usetext')) : ?><label><?php echo JText::_('COM_USERS_REGISTER_EMAIL2_DESC'); ?> </label>
152152
<?php endif; ?>
153153
<input tabindex="6" placeholder="<?php if(!$params->get('usetext')) { echo JText::_('COM_USERS_REGISTER_EMAIL2_DESC');} ?>" type="email" id="jform_email2" name="jform[email2]" size="20" class="jd-form-input required email" data-rule-equalTo="#jform_email1" required/>
154154
</div>
155155
<div class="jd-inputbox-control">
156156
<?php if ($params->get('enablecap_on_register')) { ?>
157157
<?php if ($params->get('usetext')) : ?>
158-
<label for="">Captcha </label>
158+
<label>Captcha </label>
159159
<?php endif; ?>
160160
<?php
161161
if($siteKey){ ?>
@@ -168,8 +168,8 @@
168168
</div>
169169
<?php if ($params->get('tou')) { ?>
170170
<div class="jd-inputbox-control jd-control-check-raido">
171-
<label for="" class="" >
172-
<input name="terms" class="required" type="checkbox" <?php if($params->get('checkbox')) { echo "checked='checked'"; } ?> id="tou" required="true"/> &nbsp
171+
<label>
172+
<input name="terms" class="required" type="checkbox" <?php if($params->get('checkbox')) { echo "checked='checked'"; } ?> id="tou" required /> &nbsp;
173173
<?php if($params->get('newwindow') == 'modal'){ ?>
174174
<a href="<?php echo JURI::root(); ?>index.php?option=com_content&view=article&id=<?php echo $params->get('articleid') ?>&tmpl=component" rel="{handler:'iframe', size:{x:1000,y:700}}" class="modal jd-modal-link"><?php echo $title = $params->get('title') ? $params->get('title') : "I Agree to the Terms of Use"; ?></a>
175175
<?php } else { ?>
@@ -179,7 +179,7 @@
179179
</div>
180180
<?php } ?>
181181
<div class="jd-button-control">
182-
<button type="submit" id="register_submit" name="Submit" class="jd-form-button validate"><?php echo JText::_('JREGISTER') ?> <img src="<?php echo JURI::root(); ?>/modules/mod_registerlogin/tmpl/assets/loader.gif" class="regload" style="display:none;" /></button>
182+
<button type="submit" id="register_submit" name="Submit" class="jd-form-button validate"><?php echo JText::_('JREGISTER') ?> <img src="<?php echo JURI::root(); ?>/modules/mod_registerlogin/tmpl/assets/loader.gif" alt="Loading" class="regload" style="display:none;" /></button>
183183
<input type="hidden" value="register" name="module<?php echo $module->id; ?>">
184184
<input type="hidden" value="" name="openview" id="openview">
185185
<?php echo JHTML::_('form.token'); ?>

0 commit comments

Comments
 (0)