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 Jun 15th, 2010  |  syntax: PHP  |  size: 0.47 KB  |  views: 52  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
This paste has a previous version, view the difference. Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. <?php do_action( 'bp_before_member_header' ) ?>
  2. <div id="item-header-avatar">
  3.         <a href="<?php bp_user_link() ?>">
  4.     <?php
  5.         $large_avatar_uid = $bp->displayed_user->id;
  6.     global $wpdb; $large_fb_avatar = $wpdb->get_var("SELECT meta_value FROM $wpdb->usermeta WHERE user_id = $large_avatar_uid AND meta_key= 'facebook_uid'");
  7.         ?>
  8.         <img src="http://graph.facebook.com/<?php echo $large_fb_avatar; ?>/picture?type=large"/>
  9.         </a>
  10. </div><!-- #item-header-avatar -->