Hi! What about User Points and Advanced Polls integration -- on 'add vote' level, but no 'create new voting'?

Comments

anders.fajerson’s picture

It would help if you did some research on what would be needed in advpoll to achieve this.

ChrisKennedy’s picture

Status: Active » Postponed (maintainer needs more info)

I am also unclear as to what you are talking about - please elaborate.

ebeyrent’s picture

It sounds like the original poster is looking to award points to users every time they vote on an existing poll.

We would need to add some code to make points for this event configurable on the Points Settings admin page.

We would need something like this:

$points = variable_get( 'userpoints_poll_vote', 0);
switch($op) {
  case 'vote':
    userpoints_userpointsapi('points', $points, $uid);
    break;
  case 'cancel vote':
    userpoints_userpointsapi('points', (0-$points), $uid);
    break;
}

What do you think?

anders.fajerson’s picture

Neither me or Chris have worked with Userpoints, so we appreciate any patches, input and insight in this.

ebeyrent’s picture

I'll work up a solution for this and post here when it's done.

mgrant’s picture

Maybe one could use the fivestar module in conjunction with this module to accomplish this?

pomliane’s picture

Status: Postponed (maintainer needs more info) » Closed (won't fix)

This version of Advanced Poll is not supported anymore. The issue is closed for this reason.
Please upgrade to a supported version and feel free to reopen the issue on the new version if applicable.

This issue has been automagically closed by a script.