SHARE
TWEET

Group email subscription array of allowed users

a guest May 15th, 2010 81 Never
  1. <?php
  2.  // The following snippet of code wraps all of bp-activity-subscription-main.php
  3.  
  4. global $current_user;
  5. get_currentuserinfo();
  6. $this_user = $current_user->id;
  7. //var_dump($this_user);
  8.  
  9. $allowed_users = array(1, 2, 3);
  10. if(in_array("$this_user", $allowed_users)):
  11.  
  12. // all page code
  13.  
  14. endif;
  15. ?>
RAW Paste Data
Top