diff --git a/plugins/user/profile/fields/dob.php b/plugins/user/profile/fields/dob.php index 73d92bb594d47..e42744f06066d 100644 --- a/plugins/user/profile/fields/dob.php +++ b/plugins/user/profile/fields/dob.php @@ -45,9 +45,17 @@ protected function getLabel() if ($text) { - $layout = new JLayoutFile('plugins.user.profile.fields.dob'); - $info = $layout->render(array('text' => $text)); - $label = $info . $label; + $app = JFactory::getApplication(); + $layout = new JLayoutFile('plugins.user.profile.fields.dob'); + $view = $app->input->getString('view', ''); + + // Only display the tip when editing profile + if ($app->isAdmin() || $view == 'profile' || $view == 'registration') + { + $layout = new JLayoutFile('plugins.user.profile.fields.dob'); + $info = $layout->render(array('text' => $text)); + $label = $info . $label; + } } return $label; diff --git a/templates/protostar/css/template.css b/templates/protostar/css/template.css index a1dfadb3c0454..0f2a6d2c12494 100644 --- a/templates/protostar/css/template.css +++ b/templates/protostar/css/template.css @@ -7477,3 +7477,6 @@ body.modal-open { overflow: hidden; -ms-overflow-style: none; } +#users-profile-custom label { + display: inline; +} diff --git a/templates/protostar/less/template.less b/templates/protostar/less/template.less index 56fcf25c953b5..40917f83039fc 100644 --- a/templates/protostar/less/template.less +++ b/templates/protostar/less/template.less @@ -605,4 +605,9 @@ code { body.modal-open { overflow: hidden; -ms-overflow-style: none; +} + +/* Align fields for the profile display */ +#users-profile-custom label { + display: inline; } \ No newline at end of file