Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: BP Album+ || New Features Requests and Discussion


Tosh
Participant

@xberserker

For photo upload and photo deletion. Would it be possible to use a do_action?

Reason I ask is I got the points awarded for photo upload/delete working! :)

But I have to put the code directly in the bp-album-core.php file. Not a big deal, but I have to re-do that each time the plugin is updated.

Here is how I award points for a reply in buddypress, I put this code in my themes function.php file at the end.

// Add 5 Points for a comment or reply
function my_bp_update_comment_add_cppoints() {
if( function_exists('cp_alterPoints') && is_user_logged_in() ){
cp_alterPoints(cp_currentUser(), 5);
cp_log('Comment', cp_currentUser(), 5, Community);
}
}
add_action('bp_activity_comment_posted','my_bp_update_comment_add_cppoints');

Looking forward to the 0.1.7 release, sounds very cool!

Skip to toolbar