Advertisement
Guest User

Untitled

a guest
Nov 30th, 2013
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  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. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement