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 Dec 17th, 2012  |  syntax: PHP  |  size: 0.93 KB  |  views: 102  |  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.                                 /***
  3.                                 * If you want to show specific profile fields here you can,
  4.                                 * but it'll add an extra query for each member in the loop
  5.                                 * (only one regardless of the number of fields you show):
  6.                                 *
  7.                                 * bp_member_profile_data( 'field=the field name' );            
  8.                                 */
  9.                                 ?>
  10.  
  11.                                
  12.                                 <div id=daves-extended-profile-fields>
  13.  
  14. <?php if ( bp_get_member_profile_data( 'field=Location' ) ) : ?><?php echo '<BR><span class=memberslabel>Location:</span> '; ?><?php bp_member_profile_data( 'field=Location' ); ?><?php endif; ?>
  15.  
  16. <?php if ( bp_get_member_profile_data( 'field=Job Title' ) ) : ?><?php echo '<BR><span class=memberslabel>Job Title:</span> '; ?><?php bp_member_profile_data( 'field=Job Title' ); ?><?php endif; ?>
  17.  
  18. <?php if ( bp_get_member_profile_data( 'field=Company' ) ) : ?><?php echo '<BR><span class=memberslabel>Company:</span> '; ?><?php bp_member_profile_data( 'field=Company' ); ?><?php endif; ?>
  19.                                
  20.                                 </div>