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

Untitled

By: a guest on Feb 2nd, 2013  |  syntax: None  |  size: 0.40 KB  |  views: 21  |  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. function bp_custom_get_member_list_xprofile_data( $field ) {
  2.  
  3. global $site_members_template;
  4.  
  5.  
  6.  
  7. return xprofile_get_field_data( $field, $site_members_template->member->id );
  8.  
  9. }
  10.  
  11.  
  12. function custom_position (){
  13.  if ( $position = bp_custom_get_member_list_xprofile_data('Position') ) :
  14.  
  15.  echo $position;
  16.  
  17. endif;
  18.  
  19. if ($position == 'Actor') :
  20.  
  21. echo '2';
  22.  
  23. else :
  24.  
  25.         echo '1';
  26.  
  27.  
  28. endif;
  29. }