Quote from: rthrash at Dec 08, 2006, 03:12 PM
I looked quickly, but I couldn’t find where the error message was being returned. If you find it please post back. Thanks!
existing line 255 - 258 (for 1.4.1a as distributed with modx 0.9.5)
<?php
# set validation error message
$fields['validationmessage'] .= $_lang['ef_validation_message'];
$fields['validationmessage'] .=(count($rMsg)>0)?str_replace("{fields}", implode(", ",$rMsg),$_lang['ef_required_message']):"";
$fields['validationmessage'] .= implode("<br />",$vMsg);
?>
If you change that code to something like this
<?php
#set validation message
$tmp = (count($rMsg)>0)?str_replace("{fields}", implode(", ",$rMsg),$_lang['ef_required_message']):"";
$tmp = implode("<br />",$vMsg);
$fields['validationmessage'] .= str_replace('[+wrapper']', $tmp, $_lang['ef_validation_message']);
?>
and change the existing $_lang[’ef_validation_message’] in the language file to something like this: (no need for an extra string in the language file)
<?php
$_lang['ef_validation_message'] = "<div class=\"errors\">[+wrapper+]</div>";
?>
I think you’ll have what you need.