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.

Front end comment editing

October 30, 2012 10:31am

Subscribe [2]
  • #1 / Oct 30, 2012 10:31am

    onedogmedia

    31 posts

    I’ve followed the directions on this page: http://ellislab.com/expressionengine/user-guide/modules/comment/index.html#allowing-members-to-edit-comments-on-the-front-end to allow my members to edit comments in their own entries, but it’s unclear to me exactly from the docs which order the code examples should go in.

    Right now I have a single entry page with the two scripts (jquery script tag, and comment_edit_script tag) in the head, then the entry itself, then the comment entries tag listing all the comments.  Inside the comment entries tag under each comment is the following code from the docs, but it doesn’t display anything, even for the super admin:

    {if editable}
    <a href="#" class="edit_link">Edit</a>
    
    <div class="editCommentBox">
    <textarea cols="70" rows="8">{comment_stripped}</textarea><br >
    <input type="submit" name="cancel" value="Cancel" class="cancel_edit">
    <input type="submit" name="save" value="Save" class="submit_edit">
    </div>
    {/if}
    
    {if can_moderate_comment}
    <a href="#" class="mod_link">Close</a>
    {/if}

    I’ve set the Member group permissions to allow them to view, edit, and delete comments in their own channel entries.  I’m not sure what other settings to allow here.  Any ideas why this isn’t showing?  Am I missing some component or maybe have the scripts in the wrong place?  The docs just aren’t clear enough.

    Thank you!

  • #2 / Oct 31, 2012 3:17pm

    Shane Eckert

    7174 posts

    Hey there OlvoerSiteDesign,

    Thank you for posting your question.

    You know, this is going to be much easier if I log in and show you what to do. It will save a bunch of back and forth.

    When done, we can post the completed bits here and update the docs if need be.

    Please be on the lookout for an email from EllisLab.

    Cheers,

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

ExpressionEngine News!

#eecms, #events, #releases