MediaPress Now in Beta: A New Media Gallery Plugin for BuddyPress

mediapress-feature

For a long time, BuddyPress has been sorely in need of better support for media, as images, video, and audio play a major part in connecting people on social networks. BuddyPress core has adopted the features-as-plugin development model to help facilitate the development of a new media component called BP Attachments. This new Attachments API, once finished, would allow BuddyPress to store media as attachments, offering developers a standard way of extending the plugin to build media-related functionality.

With no way of knowing when or if BuddyPress will add a core media component, developers have struggled over the years to tackle media support with independent solutions. Brajesh Singh, a prolific BuddyPress plugin developer, created the popular BP Gallery four years ago to address this need, but the plugin is now outdated.

Last week Singh introduced MediaPress, his latest attempt at creating gallery/album capabilities for BuddyPress. The plugin is now in beta and boasts an impressive list of features, including:

  • User media/gallery/album support
  • Group media/gallery/album support
  • Built-in photo, audio, and video support
  • Supports privacy
  • Drag-and-drop uploader
  • Upload from Activity
  • Automatic wall galleries creation
  • Wall gallery support for Groups/Users
  • Grid layout for media
  • Playlist view support for audio/Video Galleries
  • Widgets and shortcodes to list galleries, media, playlist, audio, etc.

MediaPress adds upload buttons for images, audio, and video to the activity update box. Users can also upload from the gallery menu item in their profiles.

media-upload

MediaPress’ gallery support works very similar to Facebook. Images uploaded via the activity stream will be placed in a wall photo gallery where users can view, edit, or delete them.

user-galleries

MediaPress comes with an extensive array of admin options for controlling its features. It’s also tightly integrated with WordPress and BuddyPress, which is why audio playlists in the activity stream look similar to audio uploaded to posts.

audio-play-list-activity

Singh built MediaPress to be easy to customize and easy for other components to extend. Here are a few examples of what developers can do with the plugin:

  • Use a different storage manager (supports local uploads by default but you can write one for the cloud- check core/storage/storage-manager.php for details).
  • Add support for a new Media Type. (Check core/common/api.php, core/common/init.php for details.)
  • Write a custom media loop. (Check MPP_Media_Query in core/common/query-media.php.)
  • Write your own custom Gallery loop/list. (Check MPP_Gallery_Query for details.)

The Future of MediaPress

MediaPress does not utilize the BP Attachments API. I spoke with Singh to see what his plans are, when/if BP core adds better media support. “Yes, I will continue developing it even if BP adds its own media component,” he said. “MediaPress has a more versatile API than what will come in any media component in the next 2-3 years at least.”

Singh spent the last year and a half planning the plugin, but it was only within the last four months that he got serious about building it. “I spent most of the time planning the architecture and API. My basic goal was to make it easy for site admins as well as developers to use and extend the plugin,” he said.

MediaPress is open source and will remain free to use, as Singh’s primary goal is better community adoption. After the first release, he is planning on putting the plugin on GitHub and will also submit it to WordPress.org. He hopes to build a community around it.

Singh will be retiring BP Gallery in favor of MediaPress. “Things have changed in last 4 years – custom post types, taxonomy APIs made it into WordPress core, as well as multisite,” he said. “We needed a plugin to reflect these changes and work better with the current APIs. I did not feel updating BP Gallery will do it justice.”

There are very few media plugins for BuddyPress at the moment, and Singh said that it seemed all of them were either bloated or very limited in options. MediaPress is currently the most advanced gallery/album solution for BuddyPress, even though it’s still in beta. I tested the plugin and found its UI to be fairly intuitive. It fits in like a natural part of BuddyPress. Check out the live demo to see it in action.

In the future, Singh plans to add support for WordPress (non-BuddyPress) sites and bbPress. If you’d like to help test the MediaPress beta, you can download it from BuddyDev.com.

15 Comments


    1. It has inbuilt support for doc ,pdf and the viewer uses google doc viewer to show the document in that case. You can change the file types for documents from the MediaPress settings and add any valid type supported by google doc viewer.

      Report


  1. I like Brajesh’s plugins, I use 3 of them. I’m looking forward to this one, it would help a lot to improve my site.

    Report


    1. Have you really seen the code? I don’t think so. This plugin does not have a code structure like any other plugin on wp.org.
      Please avoid propagating misleading info.

      Thank you
      Brajesh

      Report


    2. and btw, what similarity did you see? I just checked bp media plugin and and see that even our data models are different . We boast an unrivaled API, Media Query, Gallery query which is inspired from WordPress core and at the moment neither a BuddyPress and nor a media plugin for WordPress( and I have tested around 500 plugins) has such architecture.

      Report


      1. Oh please dont get me wrong (well, i said it wrongfully maybe, my bad). I just checked your popups when click to images and checked its html structure, css class names etc. looked similar to me. I dont use that plugin so i am not too much familiar with it but one of my theme user asked me to add support file for it.

        Report


      2. ahh, sorry about that.
        It is the jQuery magnific popup plugin that we are using. I am using it in 2 of my other plugins too. BP Media is also using the same magnific popup and that’s why it might have looked similar.

        Report


    1. Hi Mathieu,
      I am sorry I could not reply on BuddyDev earlier too.
      No, this project is not abandoned and we have made some great progress in bringing more features.
      I have been working on a documentation site for this plugin to help developers adapt/extend this plugin. That’s why you haven’t seen any new news from me.

      Please do take a look at the most recent version which you can find here

      https://github.com/buddydev/mediapress

      It has a highly optimized version and a lot of functionality added in the admin panel.

      I will be writing a new post with the updates in next couple of days after finishing the documentation site.

      Thank You
      Brajesh

      Report


  2. Whenever I tried MediaPress, it wouldn’t save any of the galleries I made. It would let me uploade the media, but the instance I switched tabs (to view or edit) it would say there’s no media there. If I clicked the breadcrumbs to go back, it would say there are no galleries.

    Not sure what I’m doing wrong.

    Report


    1. Brajesh Singh’s complex or large plugins always break somewhere (excluding simple ones).

      Report


      1. HI Erasmus,
        What is the meaning of the last comment? Why don’t you take a look at the code on the github and point the issue? And yes, WordPress is a large Eco system, so even if we try our best, It will have some conflict for .5 – 1% of the users and that’s why we go through the beta and the other milestones.

        Btw, I assure you that the code quality and architecture is better than 99.5% of the plugins available on WordPress repo. If you are a developer, Please do take a look at the code and let me know if I am wrong about that.

        Report

Comments are closed.