CProfileLibrary::getFieldHTML($field)
The red box is being placed there by the JomSocial validation. I'm unsure why it's not populated. Again, we'll have to investigate. However, if you add the following style to your template's CSS, it will highlight each field that gets the aria-invalid="false" with a red border.Second issue: after submitting the registration (without entering any required fields), the user either
1) successfuly creates the account (if using Facebook sign up)
2) get's weird red label (but not error message) - see the attachment. (if using Google sign up).
That's a very immature behavior. And I cannot turn to JomSocial registration because of inability to get rid of stupid password field. I really hope you can address these issues.
[aria-invalid="false"] {
border-color: red;
}
This is an unfortunate side-effect of using JomSocial's flow. We can't 'force' a password into their field and the form won't submit without one. It's something we simply don't have control of, though I wish we did.And I cannot turn to JomSocial registration because of inability to get rid of stupid password field.
if ($showField)
{
$hasVisibleFields = true;
$groupHtml .= '<dt>' . $field->name . "</dt><dd>" . CProfileLibrary::getFieldHTML($field) . "</dd>";
}
if ($showField)
{
$hasVisibleFields = true;
$groupHtml .= '<dt><span id="lblfield' . $field->id . '">' . JText::_( $field->name );
if ( $field->required == 1 ) {
$groupHtml .= ' <span class="joms-required">*</span>';
}
$groupHtml .= "</span></dt><dd>" . CProfileLibrary::getFieldHTML($field) . "</dd>";
}
Join our newsletter to get alerts for Joomla releases, tips and tricks and extension updates.