BuddyDev

Site Navigation

  • Menu
  • BuddyDev Logo
  • Blog
    • Recent Posts
    • BuddyPress
    • WordPress Multisite
    • WordPress
  • Plugins
    • Premium Plugins
    • Free Plugins
    • MediaPress
    • Suggest a Plugin
  • Themes
    • Premium Themes
    • Free Themes
    • Suggest a Theme
  • MediaPress
    • MediaPress
    • Addons
    • Documentation
    • Support
  • Support
    • Forum
    • Docs & Manuals
    • MediaPress Docs
    • Code Snippets
    • FAQ
    • Community
    • Contact
  • Services
    • BuddyPress Plugin Development
    • BuddyPress Plugin Customization
    • BuddyPress Website Troubleshooting
    • BuddyPress Custom Development
  • Pricing
    • Pricing
    • Membership FAQ
    • Refund Policy
    • Checkout
  • Register
  • Login
  • Profile picture of jeremy

    jeremy posted an update 13 years, 2 months ago

    @mimo sorry to disturb you. I want to ask you. Do you understand how to change video in activity to use mid size not using thumb size?

    • Profile picture of mimo
      mimo replied 13 years, 1 month ago

      Hi sorry for late reply.

      You can try this for example (put it in your functions.php file in the theme):

      add_filter(‘bp_get_gallery_media_sizes’,’change_media_size’,10,2);
      function change_media_size($settings,$media_type){
      if($media_type==”video”){
      $settings[‘thumb’]=array(‘height’=>240,’width’=>312);
      $settings[‘mid’]=array(‘height’=>240,’width’=>312);
      $settings[‘larger’]=array(‘height’=>505,’width’=>640);
      }
      return $settings;
      }

      It works but it will only affect the new videos.
      Hope it helps

    • Profile picture of mimo
      mimo replied 13 years, 1 month ago

      it’s better to copy it from this link : http://pastebin.com/y6t2Ux6D

  • Resources
    • Free Buddypress Themes
    • Free Buddypress Plugins
    • Buddypress Premium Themes
    • Buddypress Premium Plugins
    • Blog
  • Support Center
    • Membership
    • Faq
    • Join
    • Terms & Conditions
    • Privacy Policy
    • Contact Us
    • Hire Us
  • Useful Links
    • Download BuddyPress
    • Download WordPress
    • BuddyPress Codex
    • WordPress Documentation
    • Our Documentation
  • Connect with Us
    • Connect with Brajesh

Copyright © 2009-2025 BuddyDev.com