We r using LG Quarantine (v.1.0.0) for comments flagging. We r facing some functionality issue as follows:-
(1) When a comment is flagged, it appears in the module as quarantined, but it ALSO appears in “Comments Awaiting Validation” in the Control Panel. It should NOT appear there, as another editor could easily approve it and it would reappear on the site. (2) Flagged Comments should go into a section labelled “Quarantined comments” in the control panel. (3) When the reader flags the comment, he goes to a “thank you” page. But he should automatically be redirected back to the original page of comments.
We r using following code, Pls, help me to fix this issue:-
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html >
<head></head>
<body>
<div id="content">
{exp:lg_quarantine:form entry_type="{segment_4}" entry_id="{segment_3}" form_id="quarantine_form" return_if_quarantined="{path="quarantine/success"}" return="http://www.mercatornet.com/quarantine/sucess/"}
{if can_flag}
{if has_flagged}You have already flagged this entry, but you can flag it again.{/if}
{quarantine_form}
<fieldset>
<div class="select">
<label for="flag-reason">Why are you flagging this {segment_4}?</label><br>
<select name="flag_type" id="flag-reason">
<option value="">-- Please Choose --</option>
{flag_types}
</select>
</div><br>
<div class="textarea">
<label for="flag-comment">Comment:</label>
<textarea id="flag-comment" name="comment"></textarea>
</div><br>
{if not_logged_in}
<div class="text">
<label for="flag-email">Your email:</label>
<input type="text" name="email" id="flag-email" value="" />
</div>
{/if}<br>
<div class="buttons">
<input type="submit" value="Flag as inappropriate" />
</div>
</fieldset>
{/quarantine_form}
{if:else}
{if has_flagged}Sorry, you have already flagged this entry.{if:else}You don't have permission to flag this entry.{/if}
{/if}
{/exp:lg_quarantine:form}
</div>
[removed][removed]
[removed][removed]
[removed]
$('#quarantine-form').ajaxForm({ target: '#content' });
[removed]
<a href="#" rel="deactivate" class="lbAction">Close</a>
</body>
</html>The comments flagged are going to appear in the “Comments Awaiting Validation” area, that’s just the nature of this module.
The redirect is something you control. Why not append the entry_id on the thank you page URL and use one of the newer redirect plugins to take you back to the original entry page.
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.