We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

LG Quarantine

Development and Programming

MINDSCREEN's avatar
MINDSCREEN
218 posts
16 years ago
MINDSCREEN's avatar MINDSCREEN

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>
       
MINDSCREEN's avatar
MINDSCREEN
218 posts
16 years ago
MINDSCREEN's avatar MINDSCREEN

Waiting for solution. Pls, reply with positive response.

       
eyevariety's avatar
eyevariety
158 posts
16 years ago
eyevariety's avatar eyevariety

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.

       
MINDSCREEN's avatar
MINDSCREEN
218 posts
16 years ago
MINDSCREEN's avatar MINDSCREEN

Can U pls, describe more. If possible, can u Pls, put the code here that I need to implement in the “Thank You” page to redircet back to the original entry page, Pls.

       
MINDSCREEN's avatar
MINDSCREEN
218 posts
16 years ago
MINDSCREEN's avatar MINDSCREEN

Pls, reply with more info. I really need to fix it asap.

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.