Just noted some problems with the code on further inspection..
The code as it is makes the navigation menus disappear from the top and sides of the buddyblog page
Please see link to images below
Before code implemented
After code implemented
Just for other users who might be looking for the same solution:
The problem with the activity tab not having upload links for videos and images can be resolved with your new plugin (activity plus reloaded) located here https://buddydev.com/plugins/bp-activity-plus-reloaded/
Thank you so much… the code works brilliantly
Looking forward to the next update. I would suggest you make this a standard feature of the mediapress plugin as it takes mediapress to another level… Absolutely love it!!
Would be great if you can give me a code to temporarily filter out the video uploads for now…. so that I can allow my users to upload images but no videos (except video links). I don’t mind if it will not work on the activity screen for now.