I've ported the module to Drupal 7. Here is a zipped version.
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | voting_rules.zip | 5.08 KB | Anonymous (not verified) |
| voting_rules.zip | 12.47 KB | jide |
I've ported the module to Drupal 7. Here is a zipped version.
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | voting_rules.zip | 5.08 KB | Anonymous (not verified) |
| voting_rules.zip | 12.47 KB | jide |
Comments
Comment #1
sol roth commentedI installed it and when I rate anything I get this error:
"Fatal error: Call to undefined function dsm() in /sites/all/modules/voting_rules/voting_rules.module on line 29"
D7 using the latest version of the dev rate module and rules
Comment #2
sol roth commentedI commented out the line, looks like you just left a devel debug function in there. So far it's working great, I'm using it for a new project and will report any bugs / issues I find.
Comment #3
TimelessDomain commentedWe should commit this & get the D7 branch going. thanks
Comment #4
Shadlington commentedSubbing
Comment #5
achtonSubscribing.
Comment #6
Anonymous (not verified) commentedI've also tested this D7 port. It's working, please move forward and open the D7 branch.
Just remove that line
dsm('voting_rules_' . $op . '_' . $vote['entity_type']);And in voting_rules.tokens.inc remove the pass-by reference on line ~87
_voting_rules_token_data_info_recursion(&$info, $type, $property_info, $formatted_name);to
_voting_rules_token_data_info_recursion($info, $type, $property_info, $formatted_name);I use this module with Heartbeat templates, to create activity updates like "User X voted on node Y". Works really great.
Update attached (with some minor fixes).
Comment #7
Shadlington commentedThe maintainer hasn't touched the project (or any other projects on d.o) in a while.
I wonder if another developer would be willing to come on as a co-maintainer?
Comment #8
univate commentedI am using #6 and it appears to be working for the rules I have setup so far.
Comment #9
heydemo commentedSorry for the delay...I'm getting up to speed with Git right now...if someone wants to help me out that might expedite creating the Drupal 7 branch.
Comment #10
ambient.impactI can also confirm that #6 works for me, at least within reacting to vote calculation.
Comment #11
lpalgarvio commented+1
Comment #12
dropchew commentedsubscribe
Comment #13
Leeteq commentedSubscribing.
Comment #14
heydemo commentedOk, started D7 branch and released as alpha1
Comment #15
heli0s commentedI'm having an issue, or possible just a lack of functionality. I'm trying to emulate user karma in a Digg fashion with Rate/VoteAPI/Rules/UserPoints in D7, since the karma module does not yet exists in D7. I setup two events, one for a vote down, and one for a vote up event. When the Rules event triggers on a vote, it works great and I get points accumulated or subtracted. Awesome!
Then I noticed a problem; you can game the system. Lets say you already voted "up" on a node. If you try to repeat that "up" vote even though you already voted "up", the event will trigger again non-the-less, which in my case adds more points which I don't want.
I'm posting this here because I think it this is something that could be fixed in Voting Rules. I think a functionality should exists for triggering a vote event only if that vote is valid, or not a repeat vote. I can understand someone possibly wanting an event trigger on every vote, repeat or not, but maybe another event for just valid ones? Is that possible? That seems more generally useful than the way it is IMO.
Thanks
Comment #16
Shadlington commentedheli0s, you should really raise that as a separate issue rather than re-opening this one.
Comment #17
Shadlington commentedOops, meant to do this too.
Comment #18
heli0s commentedSorry, actually meant to but was on the wrong page.
Comment #19
heli0s commented