Hi,
I would like my forum users to be able to flag content as objectionable. As administrator, I will eventually get around to deleting the bad content, but meanwhile I would like the objectionable item to immediately disappear for the users who flag it.
Is this possible?
Thanks!
Comments
Comment #1
quicksketchEnable the Flag Actions module, then set up an action to unpublish content after it has been flagged X number of times.
Comment #2
rahim123 commentedHi again,
Thanks for the reply. I don't want the node to be unpublished automatically. I just want it to be invisible to the user who has flagged it. If I (as admin) later decide that it is objeccionable, I will manually delete it. But meanwhile I just want the users who find it offensive to be able to hide it just for themselves.
Thanks!
Comment #3
quicksketchHmm, to do this you'd either need to:
1) Theme the display of the node so that it is hidden if it is flagged by a user. Either through CSS or by hiding the item entirely.
2) Build views of your forum posts and do not include items that have been flagged by a particular user.
#2 is probably the better way to go, but unless you're using Node Comments and Node Forum, you probably can't change the way that your forums are displayed because they are hard-coded listings provided by Comment module.
Comment #4
rahim123 commentedThanks again for replying!
The Abuse module somehow does manage to hide posts.
Could a new type of content be created, and not give forum users rights to view that content? Then use a Flag action to change the type of the node?
Could simple php string replacement be used, replacing the title as "Flagged as offensive" and the body text be replaced by whitespace?
These are just a few ideas that came to me. I do think this is a useful idea, because sometimes there are some really irritating spam posts that I would like users to be able to immediately hide. I wouldn't want to wait for X number of users to confirm it as offensive. But at the same time I don't want malicious or disagreeable users to be unpublishing stuff that is really legitimate. I'd prefer for only admins or moderators to do that.
Comment #5
quicksketchClosing this issue after lack of activity. Flag is not responsible for providing mechanisms to show/hide content, it merely triggers existing actions that are available (the one provided by core being publish/unpublish).