Skip to main content
added 46 characters in body
Source Link
Adrian Cid Almaguer
  • 18.5k
  • 14
  • 79
  • 133

As per your question you have managed everything except assigning points to user. Then I suggest you to have a rule with execute custom php code. The code for assigning points to user is as follow. (Do your necessary changes accordingly.)

$params = array( 'uid' => $user->uid, 'moderate' => 0, 'points' => 15, 'tid' => 0, 'entity_id' => $user->uid, 'entity_type' => 'user', 'operation' => 'Vote Added', );

userpoints_userpointsapi($params);

$params = array(
    'uid' => $user->uid,
    'moderate' => 0,
    'points' => 15,
    'tid' => 0,
    'entity_id' => $user->uid,
    'entity_type' => 'user',
    'operation' => 'Vote Added',
);

userpoints_userpointsapi($params);

As per your question you have managed everything except assigning points to user. Then I suggest you to have a rule with execute custom php code. The code for assigning points to user is as follow. (Do your necessary changes accordingly.)

$params = array( 'uid' => $user->uid, 'moderate' => 0, 'points' => 15, 'tid' => 0, 'entity_id' => $user->uid, 'entity_type' => 'user', 'operation' => 'Vote Added', );

userpoints_userpointsapi($params);

As per your question you have managed everything except assigning points to user. Then I suggest you to have a rule with execute custom php code. The code for assigning points to user is as follow. (Do your necessary changes accordingly.)

$params = array(
    'uid' => $user->uid,
    'moderate' => 0,
    'points' => 15,
    'tid' => 0,
    'entity_id' => $user->uid,
    'entity_type' => 'user',
    'operation' => 'Vote Added',
);

userpoints_userpointsapi($params);
Source Link

As per your question you have managed everything except assigning points to user. Then I suggest you to have a rule with execute custom php code. The code for assigning points to user is as follow. (Do your necessary changes accordingly.)

$params = array( 'uid' => $user->uid, 'moderate' => 0, 'points' => 15, 'tid' => 0, 'entity_id' => $user->uid, 'entity_type' => 'user', 'operation' => 'Vote Added', );

userpoints_userpointsapi($params);