Closed (fixed)
Project:
Flag
Version:
6.x-1.1
Component:
Flag core
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
30 Aug 2009 at 05:25 UTC
Updated:
11 Nov 2009 at 19:30 UTC
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!
Comments
Comment #1
crea commentedsubscribing
Comment #2
chad smith commentedI 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.
Comment #3
newtonpage commentedI allow this doing a module to handle a custom "favorites" flag (called MYMODULE_activity_manager.module )and then implementing hook perm like so:
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
Comment #4
newtonpage commentedto 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?
Comment #5
chad smith commentedI basically followed the general process as laid out here http://drupal.org/node/319491
Comment #6
quicksketchMarking fixed after 2 weeks, please reopen for further questions.
Comment #8
crea commentedI 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.
Comment #9
crea commentedComment #10
quicksketchNo, 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.
Comment #11
crea commentedThanks for the explanation. Will try other solutions such as "vote up down"...
Too bad I don't know JS.