Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: CubePoints and BuddyPress Intregration?


5947865
Inactive

I found the hooks but I cant figure out to give points to poster/author instead of logged in user.

I want posters to get points when someone else likes their post or comment etc. a sitewide point system.

Like:

if( function_exists(‘cp_alterPoints’) && is_user_logged_in() ){

cp_alterPoints(the_author_ID(), 5);

}

This is what the docs says:

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.

Skip to toolbar