SHARE
TWEET

r-a-y

a guest May 12th, 2010 90 Never
  1. function my_bp_update_post_add_cppoints() {
  2.         global $bp;
  3.  
  4.         if ($bp->loggedin_user->id != get_option( 'bp_spammer_cp_bp' ) ) {
  5.                 if( function_exists('cp_alterPoints') ){
  6.                         cp_alterPoints($bp->loggedin_user->id, get_option('bp_update_post_add_cp_bp') );
  7.                         cp_log('Comment', $bp->loggedin_user->id, get_option('bp_update_post_add_cp_bp'), BuddyPress);
  8.                 }
  9.         }
  10. }
  11. add_action('bp_activity_posted_update','my_bp_update_post_add_cppoints');
RAW Paste Data
Top