Has anyone effectively integrated GD star rating and Cube Points?
From the documentation:
Plugin Integration CubePoints can also be easily integrated with other plugins. Other plugins can be coded such that certain actions trigger the cp_alterPoints() function to add or subtract points from a specified user.
Function
cp_alterPoints( int $uid, int $points )
Parameters
int $uid: ID of a Wordpress user. To get the ID of the current logged in user, use the cp_currentUser() function.
int $return: Number of points to add to the specified user.
Example
The following code will add 10 points to the current logged in user. If no user is logged in, no points will be added. You may input negative number to subtract points.
<php
if( function_exists('cp_alterPoints') && is_user_logged_in() ){
cp_alterPoints(cp_currentUser(), 10);
cp_log('hey', cp_currentUser(), 10, 1);
}
?>
In this case, I would like to add 10 points to the user, if his or her post is voted (GD star rating's thumbs rating system).
But I have no idea how to do that.
Any suggestions?