Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: [SOLVED] Need to remove (*=Required Field) from page

[SOLVED] Need to remove (*=Required Field) from page 14 years 10 months ago #5924

  • divalsafety
  • divalsafety's Avatar Topic Author
  • Offline
  • Senior Boarder
  • Senior Boarder
  • Posts: 45
  • Thank you received: 0
The (*=Required Field) instruction is on the member signup pages don't actually require it. Is it possible to remove this verbiage on pages that don't require it OR can it be removed somewhere in the PHP file? Thanks in advance!

Please Log in or Create an account to join the conversation.

Last Edit: by divalsafety.

[SOLVED] Need to remove (*=Required Field) from page 14 years 10 months ago #5929

  • divalsafety
  • divalsafety's Avatar Topic Author
  • Offline
  • Senior Boarder
  • Senior Boarder
  • Posts: 45
  • Thank you received: 0
I found it! To help any others that are looking to remove this from ONLY the Member registration page, it can be found in the dtregister.php file around line 12831...
<tr><td colspan="2">( <span class="required">*</span> = <?php echo JText::_( 'DT_REQUIRED_FIELD' );?> )</td></tr>

You can delete it altogether or do what I did and just remarked it by changing it to...
<!-- <tr><td colspan="2">( <span class="required">*</span> = <?php echo JText::_( 'DT_REQUIRED_FIELD' );?> )</td></tr> -->

Hope it helps!

Please Log in or Create an account to join the conversation.

[SOLVED] Need to remove (*=Required Field) from page 14 years 10 months ago #5957

  • jwlehman
  • jwlehman's Avatar
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 9
  • Thank you received: 0
FYI to remove the red asterisk (*) on required fields

You can simply make it white in the main.css
.required {

 color: white;

 font-size:16px;

}

Change:
color: red;

TO:
color: white;

OR

You can delete/modify the asterisk (*) in dtregister.php to any other symbol/character you choose. (If you delete it, make sure to also delete the equal sign (=)
<span class="required">*</span> =

change:

<span class="required">{any character you want}</span> =


AND

You can delete/modify the text "required field" in the en-GB.com_dtregister.ini file.

From:
DT_REQUIRED_FIELD=required field

Modified:
DT_REQUIRED_FIELD=modified to whatever you want

Happy modding...

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Time to create page: 0.276 seconds