Any perspective for a D7 version?

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

silkogelman’s picture

a thought on this module:

The Userpoints module has Rules integration.
If Voting API has Rules integration, that would basically cover all the usecases that this module covers (+more) right?

I mean with Rule events like: 'user has voted X', one would be very flexible in giving points AND doing other stuff at that event.

For Fivestar this seems to work:
http://drupal.org/node/971394#comment-3933322
in combination with Rules integration for voting API
http://drupal.org/project/voting_rules

the trouble at this point in time is that voting_rules doesn't have a stable 7.x version:
#1102896: Port Voting Rules to D7

vince.DB’s picture

subscribe

millerscrossing’s picture

+1

MGParisi’s picture

Works for Me... Would love to see it:) Subscribe!

silkogelman’s picture

I've just created a proof of concept, it works exactly as I was hoping for: the Rule event gets triggered when a user votes, and the points get added to the users Userpoints.

it's VERY easy: basically its just creating one Rule if you've setup your votingapi/fivestar/userpoints the right way.

For those interested I can create a small screencast of how to do it.
Are there any usecases people like to see me solve? I'm not promising anything, but maybe I'll include those in the screencast.

The only issue I currently have is that when you allow a user to change their vote a user can vote on one node multiple times, and the Rule event gets triggered every time the user votes, so also gets points for every vote.
A bit more about this here: (D6, might be outdated. did not find D7 issues regarding this yet)
#981794: condition for "user has already voted on node"

Taxoman’s picture

Screencasts are always nice :-)

Is what you refer to as a proof-of-concept actually functionally running on Drupal 7 ("already")?
If so, is _this_ module available for D7 somewhere else? That is what this issue is all about...

Is there any part of "your" setup that you would say is not "obvious"?
Where do you think people would miss some important setting to achieve what you did?
That would be useful to have both documented here, potentially in the README.TXT and also as basis for ideas about improvements and what to make easier.

BeaPower’s picture

what version of rules are you using, because the current version doesn't work for me.

andrenoronha’s picture

Subscribe

konon’s picture

+1

Canadaka’s picture

Using Rules 7.x-2.0-rc1 & Votingpoints 7.x-1.x-dev results in an error:

Fatal error: Call to a member function plugin() on a non-object in \sites\all\modules\contrib\rules\ui\ui.forms.inc on line 421

ttbakiatwoam’s picture

I am using Rate 7.x-1.1-beta1, Rules 7.x-1.0-rc2, User Points 7.x-1.0, User Points Nodes and Comments 7.x-1.0-rc1 and

I cannot seem to get the configuration of the rule correct. You mentioned making a screen cast of the procedure. Did you ever do so? If not can you please let me know which settings I should choose to get this working for my configuration. After looking at your image it is not clear how I should proceed when It comes to creating the action piece of the rule. Unfortunately I think there were some changes to the modules in the last month that made your post obsolete. Any help is appreciated.

****

Edit: If I enabled UserPoints Rules Integration that may fix things... Low and behold everything worked as it should...

silkogelman’s picture

I finally got around to making a small tutorial about how to configure your modules + Rule to reward the user with points when voting:
http://s1l.org/userpoints-voting-rules

Let me know what you think in the comments, thanks.

andrenoronha’s picture

I created a rule as described in #5 but when I return to the rules page I got the message for the rule I just created: Error: Missing required module Votingpoints.
I have all the modules from #12 cept Voting rules (which I guess I dont need). Would it be that module the reason for it not work?

Thanks.

andrenoronha’s picture

I'm gonna test it. I thought I didnt need it cause I already got the event "User votes to content" on the list instead of "Voting API -> User votes on a Node".

iStryker’s picture

I think this module should be a dependency of Voting Rules and expand on it.

adammalone’s picture

Status: Active » Needs review

After speaking with someone on the drupal subreddit I took a little time to upgrade the module from 6->7. It's currently in github and untested against a properly configured site. (I just ensured it installed and the settings page returned no errors).

I'd be grateful if people would test out the 7.x module on github and see that it works as expected with userpoints and votingapi modules. If it doesn't report here and I'll take a proper look (since I didn't alter any of the hook_votingapi_* functions)

mvlabat’s picture

Posted the issue here:
https://github.com/typhonius/userpoints_votingapi_7.x/issues/1

Don't know if I should copy that text to this topic.

mvlabat’s picture

Issue summary: View changes
Status: Needs review » Closed (fixed)