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 1st, 2013  |  syntax: None  |  size: 0.37 KB  |  views: 65  |  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 $type_member = xprofile_get_field_data( 'Position', $user_id );?>
  2.                
  3. <?php if ( bp_is_active( 'xprofile' ) ) : if ( bp_has_profile( '' ) ) : while ( bp_profile_groups() ) : bp_the_profile_group('profile_group_id='); ?>
  4.  
  5.         <?php
  6.         if($type_member == 'Actress') {
  7. bp_the_profile_group( 'profile_group_id=2');
  8. } else {
  9. bp_the_profile_group( 'profile_group_id=1');
  10. }
  11.  
  12.         ?>
clone this paste RAW Paste Data