This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

r-a-y

By: a guest on May 12th, 2010  |  syntax: PHP  |  size: 0.43 KB  |  views: 90  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
This paste has a previous version, view the difference. Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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');
clone this paste RAW Paste Data