We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 34017
    • 898 Posts
    I made a small change to allow each error to be templated. Instead of using "error, " for each one I wanted to wrap them in "<li>error</li>". Below is the code:

    eform.inc.php (around line 289)
    /*
        old code
        $tmp = (count($rMsg)>0) ? str_replace("{fields}", implode(", ",$rMsg),$_lang['ef_required_message']) : "";
    */
    
    if (count($rMsg)>0) {
        $ef_each_error = '';
        foreach ($rMsg as $ef_error) {
            $ef_each_error .= str_replace('{ef_error}', $ef_error, $_lang['ef_each_error']);
        }
        $tmp = str_replace("{fields}", $ef_each_error, $_lang['ef_required_message']);
    }
    
    


    in your language file (mine is english.inc.php, add:
    $_lang['ef_each_error'] = '<li>{ef_error}</li>';    //Your wrapper
    


    That’s it!
      Chuck the Trukk
      ProWebscape.com :: Nashville-WebDesign.com
      - - - - - - - -
      What are TV's? Here's some info below.
      http://modxcms.com/forums/index.php/topic,21081.msg159009.html#msg1590091
      http://modxcms.com/forums/index.php/topic,14957.msg97008.html#msg97008