1

I'd like the admin's flagging of a node to carry more clout than with regular users. Is it possible to either;

  • Insert the count into the mysql database as a number larger than 1 whenever admin flags a node.

  • Allow flag counts to be additive, ie: Admin can flag a node many times with each count being added to the total.

Perhaps it can be done using rules and php? If so what would be the procedure in rules?

  • 1
    I'd look into the drupal.org/project/fivestar module and hack at the code logic in it, eg, some roles/users votes count as 1 while others count as 2 or what have you. It's all part of the drupal.org/project/votingapi so lots of ways to do it. – Jimajamma Aug 21 '13 at 12:59
  • Can you clarify what you mean by "hack at the code logic in it"? – Meggy Aug 23 '13 at 21:33
  • meaning it probably doesn't do what you want exactly right away but there is probably a lot of code you could reuse to accomplish your exact goal in your own custom module. – Jimajamma Aug 24 '13 at 1:38
2

Flags work like an on/off switch. Depending if the Flag is global or not, that on/off switch can apply to every user (each user can have a separate room w/ the lights on or off), or globally - every user is in one room, with only one light bulb, and one light switch.

Basically what you're asking is: is it possible to turn on the lights on twice?

No. In our light bulb analogy, that Flag switch doesn't come with a dimmer option ;)

What Rules allow you to do is aggregate the count of the Flag "votes" by multiple users (when not using global flags), and execute an action based on the sum of user "flags". But that is not what you're looking for.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.