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.

Guest comments - "You are not allowed to post comments"

May 04, 2011 7:01pm

Subscribe [3]
  • #1 / May 04, 2011 7:01pm

    marianway

    24 posts

    Hello again,

    I am having a problem with guest comments. My site is not yet live and when I am logged in, I can add a comment and it is displayed ok. However, if I switch the site ‘on’ and then log out and try to add a comment as a guest, I get an error message: “You are not allowed to post comments.”

    In the Comment Posting Preferences for the blog in question I have the following settings:

    Allow Comments - Yes
    Require membership - No
    Enable Captcha - Yes
    Require email - No
    Moderate - No

    I am using v. 1.7.1

    I think the relevant piece of code is:

    <div>
    {exp:comment:form preview="blog/preview"}

    {if logged_out}

    Name: <input type=“text” name=“name” value=”{name}” size=“50” /></p>

    Email: <input type=“text” name=“email” value=”{email}” size=“50” /></p>

    Location: <input type=“text” name=“location” value=”{location}” size=“50” /></p>

    URL: <input type=“text” name=“url” value=”{url}” size=“50” /></p>

    {/if}

    <textarea name=“comment” cols=“100” rows=“12”>{comment}</textarea></p>

    <input type=“checkbox” name=“save_info” value=“yes” {save_info} /> Remember my personal information

    <input type=“checkbox” name=“notify_me” value=“yes” {notify_me} /> Notify me of follow-up comments?

    {if captcha}

    Please enter the word you see in the image below:

    {captcha}

    <input type=“text” name=“captcha” value=”{captcha_word}” maxlength=“20” /></p>

    {/if}

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

    {/exp:comment:form}
    </div>

    I would be really grateful for any insights into why this might be happening!

    Thank you,

    Marian

  • #2 / May 05, 2011 1:17pm

    Sue Crocker

    26054 posts

    Hi, marianway. Is the url you’re looking at have a url_title in the third segment? While you have comments allowed, are you certain they are for this particular entry? Is this a MSM site?

  • #3 / May 05, 2011 1:55pm

    marianway

    24 posts

    Hi Sue,

    Thanks for getting back to me.

    Yes comments are allowed for this entry. And no it is not an MSM site. And yes the URL has a URL title in the third segment.

    I have a template called ‘blog’ which lists eight entries per page, and a ‘discuss’ template which shows the whole of one post with the comments at the bottom, then the comment form.

    So the URL of an individual entry is http://www.cleanlearning.co.uk/blog/discuss/name-of-blog-post.

    As I say, the site is not live, but I could switch it on temporarily if you needed to look at it.

    Marian

  • #4 / May 06, 2011 2:32pm

    Kevin Smith

    4784 posts

    Hey Marian—

    I don’t think this would solve the issue, but it is highly recommended to include the channel parameter in the comments tag when using URL Title to determine which entry this comment should be attached to. More info in the user guide. Always good to knock out potential future problem areas. 😊

    Here’s where I think the problem is though: If you go to Admin > Members and Groups > Member Groups, make sure the “Guest” group has privileges to post comments.

    Does this make sense? Let me know if that takes care of things!

    Kevin

  • #5 / May 06, 2011 2:48pm

    marianway

    24 posts

    Thank you so much!! Yes this has worked.

    And thanks for the advice re the channel parameter… however I am on v. 1.7.1 so don’t have channels. Does this still apply to me? If so, can you send me a snippet of example code to show me what you mean (I am still finding my way around…)

    Thanks!

    Marian

  • #6 / May 06, 2011 5:23pm

    Kevin Smith

    4784 posts

    Ah! Looks like I was on auto-pilot for a minute there. What we call “channel” in EE2 was called “weblog” in EE1. The link to the relevant part of the user guide for EE1 is here.

    Hope this helps!

    Kevin

  • #7 / May 07, 2011 2:45pm

    marianway

    24 posts

    Thanks Kevin, got that now. 😊
    Marian

  • #8 / May 08, 2011 1:35pm

    Greg Salt

    3988 posts

    Hi Marian,

    Glad that Kevin was able to help you get this resolved. Please post again if you have further questions or problems.

    Cheers

    Greg

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

ExpressionEngine News!

#eecms, #events, #releases