Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: BP Album+ : my new plugin for pictures


Tosh
Participant

@xberserker

Upgraded to the latest version btw. Working great now :)

I’ve been using CubePoints with my single WP install to get people on contribute to my site.

They get points for posts, comments, forum posts, daily visit, etc

https://wordpress.org/extend/plugins/cubepoints/

Anyway, they provide a simple API, so I was just wondering where I could put this code. So when people upload a photo they get some points. If they delete a photo it will take away points.

<php

if( function_exists('cp_alterPoints') && is_user_logged_in() ){
cp_alterPoints(cp_currentUser(), 20);
cp_log('Photo Upload', cp_currentUser(), 20, Community)

}

if( function_exists('cp_alterPoints') && is_user_logged_in() ){
cp_alterPoints(cp_currentUser(), -20);
cp_log('Photo Deleted', cp_currentUser(), -20, Community)

}

?>

Skip to toolbar