Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Group email subscription array of allowed users

By: a guest on May 15th, 2010  |  syntax: None  |  size: 0.30 KB  |  views: 78  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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. ?>