Closed (fixed)
Project:
Flag
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
19 Sep 2008 at 21:00 UTC
Updated:
7 Oct 2008 at 15:32 UTC
Is it possible to flag one thing to decrease the number of flags on something else. This would create 2 buttons for an up-down functionality.
Comments
Comment #1
chadchandler commentedI'll help the module maintainers out here and say "anything is possible", but this is not the functionality of this module currently. If you are looking for a "voting" solution check out the vote up down module as well as extra voting forms.
Comment #2
Flying Drupalist commentedYes, I have a great voting API implementation of this already. But voting API does not integrate with actions currently, and flag does! If flag can add a few more features to become a more generic voting solution, I think that would be quite nifty. So I guess I'm changing the category of this issue.
Thanks for answering the question Prodigy. I'm interested if a maintainer thinks it's possible for flags to go into this direction. Thanks for listening.
Comment #3
chadchandler commentedhttp://drupal.org/project/voting_actions
Comment #4
mooffie commentedIt's about to be possible.
Today you can already do "If this node is flagged using the 'spam' flag, send e-mail". It's as simple to make it do "If this node is flagged using the 'agree' flag, unflag this node using the 'disagree' flag".
What's missing is a 'flag/unflag' action.
A 'flag/unflag' action will be provided with the Rules intergration. A 'flag/unflag' action is not currently provided with the standard Actions integration.
But there's another issue: refreshing the display. You'd want to refresh both the 'agree' and 'disagree' links when one of them is updated. You can do this right now by turning off the 'ajax' feature (and thereby refreshing the whole page), but some other solution is desired (I'm intereseted in such a feature).
Comment #5
Flying Drupalist commentedThanks mooffie! I'm awaiting eagerly. I didn't even think about the refreshing problem. Perhaps to solve that you can enable the user to set a relationship between two flags?
Comment #6
mooffie commentedMiraploy, I've opened a new issue:
#312241: Refreshing a group of links
Comment #7
mooffie commentedAnd, of course, Prodigy is right in saying that there are better solutions for voting.
Comment #8
Flying Drupalist commentedThanks again, I'll stick with my voting API modules until flag becomes ready, and switching the moment it does. :D
Comment #9
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.