Closed (fixed)
Project:
Flag
Version:
6.x-2.0-beta2
Component:
Views integration
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
25 Mar 2010 at 03:49 UTC
Updated:
8 May 2010 at 02:05 UTC
I've searched high and low, and for a module that advertises itself as having the functionality to "Report Abuse" on nodes/comments, it's very surprising to me that I can't (as the administrator), remove other users' flags (or clear them) using Views.
Using Views, I was under the impression that the "Flag Link" field would apply to the user who flagged the post, not myself. It was even more confusing to me when I clicked the "Flag" link only to then have myself show up in the view as having flagged the post, as well.
So... how can I remove flags from other users with Views (or, alternatively, using VBO, clear the flags on a node/comment)?
Comments
Comment #1
quicksketchThere is no ability to unflag as another user directly in Flag, unless you've set the flag up to be "global", then it's a toggle on/off across all users. The trouble with an unflag link of another user is that many users may have flagged that item. Additionally, you (even as an administrator) may have the need to flag something that others have already flagged as well.
So, to answer your question, which I believe is actually, "How do I clear all existing flaggings?" the answer is use http://drupal.org/project/flag_abuse in addition to flag, which (I believe) has a "clear flags" functionality.
Comment #2
SpikeX commentedUnfortunately the Flag Abuse module isn't what I'm looking for. I've already fully set up my flags (switching to the abuse flags would be somewhat time consuming), and the "reset" function isn't independent... it's driven solely by a flag preprocess event that checks a certain permission and then resets the flag, whereas I'm looking for more of an Action or Views-specific solution. It also hard-codes the references to its own flags, preventing anyone else from using the "reset" function without a hack.
Depending on the database structure of Flags (I haven't looked yet), I may be able to hack something together either with a similar method that Flag Abuse used, or using my own code. I just wanted to know if something else already existed, and it's clear that it doesn't.
Side note: Is this even a feature that will be implemented? I understand that this would be largely useless for "favorite" or "bookmarked"-style implementations, but for abusive content flagging (with moderation), this feature is almost a must-have. If a moderator can see a list of reported content, and either choose to delete it or remove the flags, how can they do the latter if that functionality doesn't exist?
I'll be creating some sort of hack to make this work, but I really hope something else gets created in the long run. I'd imagine I'm not the first person to run into this nonexistent functionality.
Comment #3
quicksketchSee http://drupal.org/node/571100#comment-2232820 for my thoughts on a reset option. I'd like to have one, if you're interested in completing it I'd by happy to accept a patch over in that issue.
Comment #4
quicksketch