ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

How to modify errors on comment submissions

November 02, 2009 4:24pm

Subscribe [2]
  • #1 / Nov 02, 2009 4:24pm

    Pat Brumfield

    37 posts

    Greetings,

    I’ve got a comment form set up, also using Solspace’s Comment Upload extension, and i’m having some issues with displaying errors when submitting the comments. If a user doesn’t fill in the name, email, or comment field(s), instead of showing an error, the page refreshes. my comment form code looks like the following:

    {exp:comment:form enable_uploads="y" upload_dir_name="Cartoons"}
    {if logged_out}
                    <label>Name:</label><input type="text" name="name" value="{name}" size="50" id="name"/></p>
                    <label>Email:</label><input type="text" name="email" value="{email}" size="50" id="email" /></p>
                    <label>URL:</label><input type="text" name="url" value="{url}" size="50" id="url" /></p>
    {/if}
                    <label>Cartoon:</label><input type="file" name="userfile[]" id="upload" /></p>
                    <textarea name="comment" value="Cartoon description" cols="50" rows="12">{comment}</textarea></p>
    {if captcha}
                    Submit the word you see below:
                    {captcha}
    
                    <input type="text" name="captcha" value="" size="20" maxlength="20" style="width:140px;" />
                    
    {/if}
                    <input type="submit" name="submit" value="Submit" id="submit" />
                    <input type="hidden" name="RET" value="http://iwantyourmoney.net/cartoons/thanks" />
    {/exp:comment:form}

    How can i get the errors to display? And secondly, is it possible to show them inline instead of the default EE error page?

    Thanks for your help,

    Pat

  • #2 / Nov 02, 2009 4:51pm

    Pat Brumfield

    37 posts

    after a little more digging, i’ve found that non-admin users are showed the error pages correctly. my second question still stands though, is it possible to show these errors inline?

    thanks again

    pat

  • #3 / Dec 22, 2009 7:23pm

    Greg Stewart

    8 posts

    is there a solution for this? I have the same issue!


    Thanks,
    Greg

  • #4 / Dec 23, 2009 7:53pm

    Pat Brumfield

    37 posts

    i never did figure out how to get the errors to display inline. please post if you figure it out!

    cheers
    pat

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases