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.

Error: Name field required

February 12, 2008 7:22pm

Subscribe [2]
  • #1 / Feb 12, 2008 7:22pm

    I am getting this error and do not have a clue as to why…
    <><><><><>
    The form you submitted contained the following errors
      * The name field is required
    Return to Previous Page
    <><><><><>

    When I am logged in I do not get the error but I want anyone anywhere log in or no to be able to post a comment.

    Weblog trackback are set to off, comments are set to on.

    What am I doing wrong?

    Here is the comments page code:
    <><><><><>
    {assign_variable:my_weblog="smc_reunion"}
    {assign_variable:my_template_group="smc_reunion"}
    {assign_variable:my_index_path="index.php/smc_reunion"}
    {assign_variable:my_image_path="images/reunions/97/"}
    {assign_variable:my_class_image="FiveGuys.jpg"}
    {assign_variable:my_class_image_atltxt="Five Guys - SMC 1997"}


    <!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN”
    “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”>
    <html xmlns=“http://www.w3.org/1999/xhtml” xml:lang=”{lang}” lang=”{lang}”>


    <head>
    <title>{exp:weblog:info weblog="{my_weblog}”}{blog_title}{/exp:weblog:info}</title>
    <meta http-equiv=“Content-Type” content=“text/html; charset={charset}” />

    <link rel=‘stylesheet’ type=‘text/css’ media=‘all’ href=’{stylesheet={my_weblog}/site_css}’ />
    <style type=‘text/css’ media=‘screen’>@import “{stylesheet={my_weblog}/site_css}”;</style>

    </head>

    <body>

    <div id=“box”>

    <div class=“blogtitle”>{exp:weblog:info weblog="{my_weblog}”}{blog_title}{/exp:weblog:info}</div>

    <div id=“main”>

    <div align=“center”>
    {embed="smc_reunion/embedTitleLinks"}
    </div>

    <div id=“sidebar”>
    <div class=“sidebar”>
    <div class=“sidebarbox”>
    <div align=“center”>

    {site_url}{my_image_path}{my_class_image}

    </div>
    </div>

     


    <br class=“spacer” >


    <!—- Recent Posts—->
    <!—- Recent Posts—->
    <!—- Recent Posts—->

    Recent Posts

    <div class=“sidebarbox”>
    {exp:weblog:entries orderby="date" sort="desc" limit="15" weblog="{my_weblog}” dynamic=“off”}
    {title}

    {/exp:weblog:entries}


    </div>

    <br class=“spacer” >


    <!—- Archives—->
    <!—- Archives—->
    <!—- Archives—->

    Archives

    <div class=“sidebarbox”>
    {exp:weblog:month_links weblog="{my_weblog}”}
    {month} {year}

    {/exp:weblog:month_links}
    </div>

    </div>
    <br class=“spacer” >


    <!—- Search—->
    <!—- Search—->
    <!—- Search—->

    Search

    {exp:search:simple_form weblog="smc_reunion"}
    <div class=“sidebarbox”>

    <input type=“text” name=“keywords” value=”” class=“input” size=“22” maxlength=“100” />


    Advanced Search


    <input type=“submit” value=“submit”  class=“submit” />
    </div>
    {/exp:search:simple_form}


    <br class=“spacer” >

    <div class=“sidebar”>


    <!—- Reunion Links—->
    <!—- Reunion Links—->
    <!—- Reunion Links—->

    Links

    <div class=“sidebarbox”>
    {embed="smc_reunion/embedSiteLinks"}
    </div>

    <br class=“spacer” >


    <!—- RSS Feeds—->
    <!—- RSS Feeds—->
    <!—- RSS Feeds—->

    RSS Feeds

    <div class=“sidebarbox”>
    {embed="smc_reunion/embedRSSFeedLinks"}
    </div>

    <br class=“spacer” >

    <!—- Contacts—->
    <!—- Contact—->
    <!—- Contact—->

    Contact

    <div class=“sidebarbox”>
    {embed="smc_reunion/embedContacts"}
    </div>

    <br class=“spacer” >

    </div></div>

    <div id=“content”>

    <div id=“blog”>

    {exp:weblog:entries limit="1"}
    <div class=“blogbox”>

    {title}

    {entry_date format='%m/%d/%Y'}

    {summary}

    {body}

    {extended}

    <div class=“posted”>
    <div class=“postlink”>

    Posted by {author} 


    {categories}
    {category_name} /
    {/categories}


    {if allow_comments}
    ({comment_total}) Comments
    {/if}

    </div>
    </div>
    </div>

    {/exp:weblog:entries}

    <!—- Entry Divider—->
    <!—- Entry Divider—->
    <!—- Entry Divider—->

    {exp:weblog:next_entry weblog="{my_weblog}”}
    Next entry: {title}
    {/exp:weblog:next_entry}

    {exp:weblog:prev_entry weblog="{my_weblog}”}
    Previous entry: {title}
    {/exp:weblog:prev_entry}
    </div>

    <!—- Entry Divider—->
    <!—- Entry Divider—->
    <!—- Entry Divider—->

    <hr >

    {exp:comment:entries weblog="{my_weblog}” limit=“25”}

    <div class=“blogbox”>

    {comment}

    <div class=“posted”>Posted by {url_or_email_as_author}   on  {comment_date format='%m/%d'}  at  {comment_date format='%h:%i %A'}</div>

    </div>

    <!—- <br class=“spacer” > —->

    {paginate}
    <div class=“paginate”>
    Page {current_page} of {total_pages} pages  {pagination_links}
    </div>
    {/paginate}

    {/exp:comment:entries}

    {exp:comment:form preview="{my_template_group}/comment_preview”}
    <div class=“blogbox”>

    <textarea name=“comment” cols=“50” rows=“12” style=“width:98%”>{comment}</textarea>

    <input type=“submit” name=“submit” value=“Submit” />
    <input type=“submit” name=“preview” value=“Preview” />
    </div>

    {/exp:comment:form}

    </div></div>
    <br class=“spacer” >
    </div></div>
    </body>
    </html>
    <><><><><><>

  • #2 / Feb 12, 2008 7:49pm

    Sue Crocker

    26054 posts

    John, what you’re missing is the if logged_in logic.

    EEDocs:// Comment Submission Form

    Take a look at the docs above. That should help you with the logic you need.

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

ExpressionEngine News!

#eecms, #events, #releases