Guest User

BP-Gallery - Video Size

a guest
Mar 20th, 2012
53
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. add_filter('bp_get_gallery_media_sizes','change_media_size',10,2);
  2. function change_media_size($settings,$media_type){
  3. if($media_type=="video"){
  4. $settings['thumb']=array('height'=>240,'width'=>312);
  5. $settings['mid']=array('height'=>240,'width'=>312);
  6. $settings['larger']=array('height'=>505,'width'=>640);
  7. }
  8. return $settings;
  9. }
RAW Paste Data