Can I use this module as a voting system?
Rosamunda - August 30, 2009 - 05:25
| Project: | Flag |
| Version: | 6.x-1.1 |
| Component: | Flag core |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
Description
Hi there!
I would like to know if I can use this module as some sorth of voting style, for FAQ questions, where people could say if support answer where useful or not.
I don´t know how to manage the results with views: I need a list of all support questions, and the quantity of votes each have received...
Maybe it would better with some voting module?
But as I need flag for more thing, because it´s extremely useful, I would like to know if I can adapt it.
Example of what I mean:
Faq Node 1 (10 votes)
Faq Node 2 (5 votes)
Faq Node 3 (1 vote)
Thanks for your input!

#1
subscribing
#2
I have just implemented the Flag module to use as a voting system and it was all working just perfect, that is until I logged out and browsed as an Anonymous user. It was only then I realised that I couldn't view the voting counts.
I'm not sure what to do at the moment. I think I might have to check out the Vote Up/Down module to get what I need, although I love the simplicity and robustness of the Flag module.
I just wish we could set the flags to be viewed by anonymous users! I don't need the flag to be linked to a "please login" page, I just need it to show the value as it does when I'm logged in.
#3
I allow this doing a module to handle a custom "favorites" flag (called MYMODULE_activity_manager.module )and then implementing hook perm like so:
function MYMODULE_activity_manager_perm() {return array(
'administer activity settings',
'view activity favorites'
);
}
Of course, then you have to implement hook_flag_default_flags
*see: http://drupal.org/node/305086 - - Creating a Module-Based Default Flag Section*
Also, please see my next post in reply
#4
to chad: I would love how you did this - - am looking to do this as well - - creating a "voting" score based on the number of times a node has been designated as "favorite"
advice?
#5
I basically followed the general process as laid out here http://drupal.org/node/319491
#6
Marking fixed after 2 weeks, please reopen for further questions.
#7
Automatically closed -- issue fixed for 2 weeks with no activity.
#8
I have one question about "was this useful" voting system. Flag is nice candidate for that, but I'm wondering if it's possible to make mutually exclusive flags ? Flagging as "Yes" should exclude "No" flag from being available. That means there's some JS magic needed: when "Yes" JS voting happens, "No" widget should update too, and hide itself.
#9
#10
No, it's not possible to have mutually exclusive flags (other than using Rules module to unflag with one flag when another flag is flagged). Flag is a single "I think this is something" system, and will never be expanded to handle multiple states (such as "yes" and "no"). We marked a similar request won't fix some time ago: #319448: Tri-state flags - yes/no/maybe.
#11
Thanks for the explanation. Will try other solutions such as "vote up down"...
Too bad I don't know JS.
#12
Automatically closed -- issue fixed for 2 weeks with no activity.