The Issue
I have enabled comments in a channel of my site and they seem to be mostly working but I’m attempting to set it up so the comments need to be approved by an admin prior to showing up on the site.
I’ve figured out how to only display comments with status=“open” but I can’t get the form to set status=“pending” when a comment is submitted ... they all just show up.
I was able to create a new status of pending and can manually set comments to pending so they disappear but I would like this to be the default setting for submissions.
The Submit Code
{exp:comment:form channel="Clubs" status="pending" return="" dynamic="yes"}
{if logged_out}
Please <a href="/account/login">login</a> to post comments.
{/if}
{if logged_in}
<ul class="form">
<li><textarea name="comment">{comment}</textarea></li>
<li><input type="checkbox" name="notify_me" value="yes" {notify_me} /><label class="wide-label">Notify me of follow-up comments?</label></li>
<li><input type="submit" name="submit" value="Submit" class="btn" /></li>
</ul>
{/if}
{/exp:comment:form}The Display Code
{exp:comment:entries sort="desc" limit="20" status="open" channel="Clubs" paginate="both"}
<div class="comment {switch="one|two"}">
<div class="comment-header rounded top-only">
<h4>{name}</h4>
<p> </div><br />
<div class="comment-body rounded bottom-only"><br />
<span class="comment-date">{comment_date format="%M %d, %Y"}</span><br />
{comment}<br />
</div><br />
{paginate}<br />
Page {current_page} of {total_pages} pages {pagination_links}<br />
{/paginate}<br />
</div><br />
{/exp:comment:entries}