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 Nov 30th, 2013  |  syntax: None  |  size: 0.46 KB  |  views: 20  |  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. $url = $_SERVER["REQUEST_URI"];
  2. $isItProfile = strpos($url, 'change-avatar');
  3.  
  4. if ($isItProfile!==false) {
  5.         function avatar_size(){
  6.            define( 'BP_AVATAR_FULL_WIDTH', '150');
  7.            define( 'BP_AVATAR_FULL_HEIGHT', '150' );
  8.         }
  9.         add_action('bp_init', 'avatar_size', 2);
  10. } else {
  11.         function group_thumbnail_size(){
  12.            define( 'BP_AVATAR_FULL_WIDTH', '185');
  13.            define( 'BP_AVATAR_FULL_HEIGHT', '125' );
  14.         }
  15.         add_action('bp_init', 'group_thumbnail_size', 2);
  16. }