diff --git a/e107_core/shortcodes/batch/usersettings_shortcodes.php b/e107_core/shortcodes/batch/usersettings_shortcodes.php index 843d51839..e9d68fe64 100755 --- a/e107_core/shortcodes/batch/usersettings_shortcodes.php +++ b/e107_core/shortcodes/batch/usersettings_shortcodes.php @@ -559,10 +559,14 @@ class usersettings_shortcodes extends e_shortcode $uVal = str_replace(chr(1), "", $this->var['user_' . $parm]); $fval = $ue->user_extended_edit($fInfo, $uVal); + + $rVal = !empty($fInfo['user_extended_struct_required']) ; + $ret = $USEREXTENDED_FIELD; $ret = str_replace("{FIELDNAME}", $fname, $ret); $ret = str_replace("{FIELDVAL}", $fval, $ret); $ret = str_replace("{HIDEFIELD}", $fhide, $ret); + $ret = str_replace("{REQUIRED}", $this->required($rVal), $ret); } $extended_showed['field'][$parm] = 1; @@ -578,6 +582,17 @@ class usersettings_shortcodes extends e_shortcode } + private function required($val=null) + { + if(empty($val)) + { + return ''; + } + + return ""; + + } + function sc_deleteaccountbutton($parm=array()) { diff --git a/e107_core/templates/usersettings_template.php b/e107_core/templates/usersettings_template.php index b23f91a1d..8cd72d981 100755 --- a/e107_core/templates/usersettings_template.php +++ b/e107_core/templates/usersettings_template.php @@ -246,7 +246,9 @@ $USERSETTINGS_WRAPPER['edit']['SIGNATURE'] = "