buddydev / mediapress Goto Github PK
View Code? Open in Web Editor NEWThe Most advanced Media Gallery Plugin for BuddyPress
Home Page: https://buddydev.com/mediapress/
The Most advanced Media Gallery Plugin for BuddyPress
Home Page: https://buddydev.com/mediapress/
=== MediaPress === Contributors: buddydev,sbrajesh,raviousprime Tags: buddypress, buddypress album, buddypress gallery, buddypress photo gallery, video gallery, audio gallery, document gallery, media Requires at least: 5.0 Tested up to: 6.4 Stable tag: 1.5.9 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html MediaPress is the most advanced and feature rich media gallery plugin for BuddyPress & WordPress. == Description == MediaPress is a modern media gallery solution for WordPress & BuddyPress. At the moment, MediaPress is almost(We need you to decide) the best option available for BuddyPress photo gallery, BuddyPress video gallery, BuddyPress audio and BuddyPress documents gallery. If you are looking for a lightweight, feature rich BuddyPress Media Gallery solution that provides pleasant experience for your users, Please give a try to MediaPress. MediaPress has modular architecture, that makes it easier for developers to extend while keeping the code simple to maintain. It is built to be reliable, scalable, secure and flexible. We have worked hard to make it easy to use and we will love your feedback in making it better. MediaPress core comes packed with powerful features, some of which are listed below:- = For WordPress:- = * WordPress Sitewide Photo Gallery, Video Gallery, Audio Gallery, Document Gallery * Front End Gallery Creation and upload * Allows adding videos from youtube, vimeo facebook etc to BuddyPress Activity and Gallery. * Add remote media using link(oembed or direct link to remote file). * Most awesome Gallery creation & Management via Dashboard(try and you will love it) * Flexible Privacy for photo, video, audio and other media types * Easily extensible Gallery/Media Views * If you are a theme designer, you can rewrite whole layout using your own templates * Extensive admin options * We will improve it a lot more for WordPress in future MediaPress gives full control to the site admins while making it easier for them/their users to upload media. = For BuddyPress, MediaPress provides following features:- = * BuddyPress activity wall upload for videos/audio/photos/documents * BuddyPress Photo Gallery, BuddyPress Video Gallery, BuddyPress Audio Gallery and Document Gallery for users and groups * Add youtube video, facebook video, photo etc to BuddyPress/WordPress(using oembed). * Add video, photos from another server using link. * Highly flexible privacy system (Inbuilt support for public, private, logged in, friends only, groups only, following only, followers only privacy) * Drag and Drop Uploader * Easy to extend API for other components * Easy to extend API to support [new media types](https://buddydev.com/mediapress/topics/api-reference/core/media-type/mpp_register_type/ "Registering new media type " ) * Multiple Layout for media(Grid, playlist, list) * Playlist view support for audio/Video Galleries * Shortcode for everything you want(almost). * Widgets to help you list galleries, media, playlist , audio etc. * Extensive [admin options](https://buddydev.com/mediapress/topics/getting-started/settings-options/configuring-mediapress/ "Configuring MediaPress"). = Are you a developer? = Here is a short list of things you can do with few lines of code:- * Use a different storage manager( we support local uploads in core, you can write one for the cloud, check core/storage/storage-manager.php for details) * Add support for a new [Media Type](https://buddydev.com/mediapress/topics/api-reference/core/media-type/mpp_register_type/). * Write a custom media loop using [MPP_Media_Query](https://buddydev.com/mediapress/topics/api-reference/core/mpp_media_query/) * Write your own custom Gallery loop/list using [MPP_Gallery_Query](https://buddydev.com/mediapress/topics/api-reference/core/mpp_gallery_query/) We have also got some nice developer documentation ready for you and more will keep coming in future. = Links = * [MediaPress Site](https://buddydev.com/mediapress/ "MediaPress site" ) * [Demo]( http://demos.buddydev.com/mediapress/ "MediaPress demo") * [Support](https://buddydev.com/support/forums/) * [Github Development Repo](https://github.com/buddydev/mediapress) * [API Guides](https://buddydev.com/mediapress/guides/api-guides/) * [Admin Guide](https://buddydev.com/mediapress/guides/getting-started/) * [API Reference](https://buddydev.com/mediapress/guides/api-reference/) - progressing * [Template Tags](https://buddydev.com/mediapress/guides/api-reference/template-tags/) * [Uploader Javascript Event Lifecycle](https://buddydev.com/mediapress/topics/api-guides/mediapress-uploader-events-lifecycle/) * [Lighbox Javascript API](https://buddydev.com/mediapress/topics/api-guides/lightbox/mediapress-lightbox-javascript-api/) * More to come soon. = Let us build MediaPress together = We are working on the next version of MediaPress that uses a different uploader and allows adding media with the activity comments too. Our expectation is to have it by the end of the year. Please help us create it better by testing the plugin from [https://github.com/buddydev/mediapress](https://github.com/buddydev/mediapress) and providing your suggestions at BuddyDev support forum or our github repo. If you are looking to extend MediaPress further, we have some free and paid addons for you = Extending with Addons = Here are some of our available addons for MediaPress. * [MediaPress Media Moderator](https://buddydev.com/plugins/media-moderator-for-mediapress/) * [MediaPress Media View Counter](https://buddydev.com/plugins/mpp-media-view-counter/) - Free * [MediaPress Media Rating](https://buddydev.com/plugins/mpp-media-rating/) - Free * [MediaPress Featured Content](https://wordpress.org/plugins/mpp-featured-content/) - Free * [MediaPress Set Profile Photo](https://buddydev.com/plugins/mpp-set-profile-photo/) - Free * [MediaPress myCRED Addon](https://buddydev.com/plugins/mediapress-mycred-addon/) - Free * [MediaPress Downloadable Media](https://buddydev.com/plugins/mpp-downloadable-media/) * [MediaPress Upload Terms of Service](https://buddydev.com/plugins/mpp-upload-tos/) * [MediaPress S2Member Storage Limit](https://buddydev.com/plugins/mpp-s2member-storage-limit/) * [MediaPress Flexible Storage Limit](https://buddydev.com/plugins/mpp-flexible-storage-limit/) * [MediaMark:- Watermarking solution for MediaPress](https://buddydev.com/plugins/mediamark/) * [MediaPress Paid Memberships Pro Restrictions](https://buddydev.com/plugins/paid-memberships-pro-restrictions-for-mediapress/) * more coming soon **Looking for more powerful BuddyPress plugins?** Check out our list of amazing [BuddyPress plugins](https://buddydev.com/plugins/). We are here to help with everything you need with MediaPress. Please use BuddyDev community forum or premium forums for support(We support both free & paid members without any differentiation ). MediaPress is young, If there is a feature that you need, please let us know at our forums. We will be happy to have it if it is going to help the community. MediaPress is a community project and we welcome all contributions, be it with Ideas, technical or anything you deem fit. If you are a developer, let us work together. Please use github repo for development. = BuddyPress & MediaPress Maintenance & Custom development = If you need any assistance with setting up or adding new features to BuddyPress or MediaPress, Our team is available for hire. Please use our [BuddyPress Development Services](https://buddydev.com/buddypress-custom-plugin-development-service/) for any custom development needs. == Installation == This section describes how to install the plugin and get it working. You may use our [Installation guide](https://buddydev.com/mediapress/guides/getting-started/installation-updating/ "Installation guide") (recommended) or follow the following steps. 1. Download `mediapress.xyz.zip` (where xyz is version number )and extract 1. Upload `mediapress` directory to the `/wp-content/plugins/` directory 1. Activate the plugin through the 'Plugins' menu in WordPress 1. Visit Dashboard->MediaPress->Settings and click save ( It is important ) 1. That's all. Go ahead and start uploading. 1. Want to understand each setting, please see our [Configuration guide](https://buddydev.com/mediapress/topics/getting-started/settings-options/configuring-mediapress/ "MediaPress Configuration guide") == Frequently Asked Questions == request you to use [BuddyDev Forums](https://buddydev.com/support/forums/) for all the support questions. We love helping. Using BuddyDev forums allows us to assist you better and quicker. = Where do I get support? = We request you to use [BuddyDev Forums](https://buddydev.com/support/forums/) for all the support questions. We love helping. Using BuddyDev forums allows us to assist you better and quicker. = Theme compatibility Issue = By default, MediaPress should work with 99% of the themes out of the box. There are still a small chance that it may have issues with some theme. Please let us know and we will support you. We are working on guides for theme developers to assist them supporting and making it look/feel like they want. == Screenshots == 1. Activity upload screen screenshot-1.png 2. Adding Youtube/Vimeo videos to BuddyPress Activity screenshot-8.png 2. Media grid screenshot screenshot-2.png 3. User Galleries Screenshot screenshot-3.png 4. Youtube/Vimeo videos in activity screenshot-9.png 5. Youtube vimeo videos in gallery screenshot-10.png 6. Admin Gallery Edit Page screenshot screenshot-4.png 7. Front end gallery manage page screenshot-5.png 8. Bulk Media Edit screenshot screenshot-6.png 9. Admin settings screenshot screenshot-7.png Please see the demo or the MediaPress site for more screenshots. == Changelog == = 1.5.9 = * Fixed function argument at the time of calling. = 1.5.8 = * Added an option to Settings->Theming->Lightbox section to disable linking of photo to their permalink. * This release has 2 changes in template files(mediapress/default/gallery/media/views/lightbox/photo.php and mediapress/default/gallery/media/views/lightbox/media-info.php). If you are overriding these templates, please update your template files. = 1.5.7 = * Fixed mime type not being stored for some of the media types. = 1.5.6 = * Fixed single gallery issue with FSE themes. Props Andy. = 1.5.5 = * Ensure media cache gets always clear on media delete. = 1.5.4 = * Ensure that extensions are typecast to array before looping. = 1.5.3 = * Tested with PHp 8.1 & WordPress 6.1. * Fixed a compatibility issue with WP Cerber plugin = 1.5.2 = * Fixed a notice thrown by php when transient did not return array for the directory size cache. = 1.5.1 = * Add WordPress 5.5 compatibility = 1.5.0 = * Add gallery view id to gallery css classes. * Allow filtering shortcode templates. = 1.4.9 = * Fix support for Facebook video. * Add better directory support for BP Nouveau template pack. = 1.4.8 = * Add icon to close the activity uploader. * Fix directory filtering for some theme expecting json response. * Make the object counting flexible by allowing meta query. * Fix a js notice for query extraction from url. * Better Compatibility with Community Builder Theme. = 1.4.7 = * Fix mpp-show-gallery shortcode to only list relevant media. * Fix upload error for first upload when default privacy is not public for wall. * Fix option to disable auto file chooser for browsers. * Add a filter to disable local uploads(only for single gallery upload page). = 1.4.6 = * Fix jQuery conflict issue due to non scoped use of $. Props @raviousprime . * Add a filter for media comment. Props Charles. * Fix the activity action string for single media. = 1.4.5 = * Allow remote only media mode(MediaPress->Settings->General->Add/Upload media setting). * Allow lightbox to be disabled for specific media types. * Don't delete MediaPress notifications for user. Mark them as read instead. * Using css flexbox for lighbox layout. * Cache user gallery count for better performance. * If you want to enable single media upload activity comments to be visible on media wall, please use the filter 'mpp_use_single_media_upload_as_media_activity'. = 1.4.4 = * Fix the activity action showing html with BP Nouveau template pack. * Fix the notices with taxonomy registration * Add 2 new template actions. = 1.4.3 = * Added Lightbox option to use media only lightbox. See mediapress->Settings->Themes panel. * Add the oembed media view support in widgets. * Add the oembed media view support in shortcodes. * Better sitewide gallery support. * Update gallery admin visibility to check for permission against individual management menu items. = 1.4.2 = * Fix Media widget fto use proper context. * Remove create_function in favor of closures. = 1.4.1 = * Fix the media editing breaking oembed media * Change activity action string to be more consistent. = 1.4.0 = * Added support for oembed videos/photos(videos from youtube, vimeo, facebook etc). * Added support for adding direct link to remote media(audio,video,photo doc etc) * Option to automatically download remote media to the server * Added filter to enable media/gallery comment. * A lot of other enhancements. * For more details, please see the [blog post](https://buddydev.com/mediapress-1-4-0-and-support-for-remote-media/) = 1.3.7 = * Add compatibility with BuddyPress 3.0 Nouveau template pack for empty activity with media attachment. * Add namespaced js events * Minor enhancements to media upload list = 1.3.6 = * Fix Original size not being used in the lightbox/Single Media page. * Add Compatibility with Sitewide Activity Widget. * Add API to allow saving binary data as media. * Allow 0 to be a valid storage value. * Re-written javascript API for lightbox. [Docs](https://buddydev.com/mediapress/topics/api-guides/lightbox/mediapress-lightbox-javascript-api/) * API for importing WordPress attachment to MediaPress gallery as MediaPress media. [Docs](https://buddydev.com/mediapress/topics/api-reference/media/import-wordpress-attachment-mediapress-gallery/) * API to import file from server's directory to MediaPress Gallery. [Docs](https://buddydev.com/mediapress/topics/api-reference/media/importing-file-mediapress-gallery/) * Javascript API for hooking into the lifecycle of MediaPress Uploads. [Docs](https://buddydev.com/mediapress/topics/api-guides/mediapress-uploader-events-lifecycle/) = 1.3.5 = * Fix ios activity upload button issue. Thank you Aubrey. * Add 'for' option for Media/Galley shortcode to use 'logged', 'displaye', 'author' context. * Add support for Logged In User/Displayed User context in the media/galelry widget. * Fix compatibility with Gravity Form Registration addon. * Other enhancements to the uploader. = 1.3.4 = * Fix deleted gallery causing "The gallery is not selected" issue. * Fix autoloader path to avoid fatal on Admin settings on some of the installs. * Fix the visibility of Gallery/media by detaching the pre_get_posts hook and reattaching it after our query. = 1.3.3 = * Fix Gallery menu item visibility on private groups. Thank you Graham. * Fix php notice when user is being deleted(in the cleanup section). * Coding style for admin settings section to follow WordPress Coding standards now. = 1.3.2 = * Fix opening of the incorrect media when opening from activity(Regression caused by 1.3.1). * Fix document files not opening directly from activity when google doc viewer is disabled. * If you are overriding mediapress/default/buddypress/activity/(any of the activity templates), Please update your template file. = 1.3.1 = * Fix issue with crop settings. Crop settings were not applied properly and was always forcing to crop(issue caused by 1.3.0) . Thanks @petrha * Fix Prev/Next media issue with sorted gallery. Thanks to @georgio-1 . * Added option to enable/disable google doc viewer for documents. * Improved the document viewing option by detecting file type and directly linking to file if it can't be viewed. * Documents list improvement. Added title everywhere. * Lightbox improvement for the documents. * Better activity listing for doc items. * Some more internal improvements. = 1.3.0 = * Allow lightbox for all media type(document lightbox may not work on local installs). * Improved lightbox for mobile devices. * Include galleries with 'logged in' status on directory too. * Better Activity upload:- Disable post button when media is still loading. * Enable lightbox on activity comment. Opens a better lightbox. * Allow opening gallery/media in lightbox from any link with proper data attributes. * Allow resetting MediaPres settings to default. * Improved upload, hardened tests for status and type. * On Create Gallery, make sure to test for supported status/type and component enable state. * Display storage stats for groups too. * Add close button in the lightbox. * Display media title in the lightbox. * Changed default sitewide gallery slug to 'site-gallery' and sitewide archive to 'sitewide-galleries'. Please feel free to change it. * Fix:- Empty activity on single page. * Fix:- Media reordering on the mobile devices. * Fix:- Crop notice. * Fix:- Lightbox showing only 10 images. * Note:- There are change sin the activity media list template. If you are overriding it, please consider updating. = 1.2.0 = * Security Fix:- Unauthorized users should not be able to bulk update media. * Security Enhancement:- Do not allow unauthorized users to view edit screen. * Many code improvements to allow us streamline future developments. * Code refactoring for core, media, widget, shortcodes. Added doc comments. * Added filters on media views/gallery views. = 1.1.9 = * New feature: Allow editing media details inside the lightbox. * Fix: Better previous/next link for media and gallery. * Note: the template for lightbox-comment.php has been updated for allowing editing media. = 1.1.8 = * Fix: Upload permission error caused by 1.1.7. Reverting strict type checking in permissions functions as it cause issues with the normal user upload. * Fix: translation for the Bulk Actions, delete label. = 1.1.7 = * Add option to show the maximum allowed file size inside the upload dropzone. * Fix WP_Query notice on profile galleries when static page is set as front page. * Hide activity upload buttons when user does not have permission to upload. * Better performing user gallery count and media count functions. * Compatibility with activity as wire and wall plugin to allow posting on other user's wall. = 1.1.6 = * Fix bug from 1.1.5 that caused listing of sitewide galleries on user profile(sorry for the 1.5 hour of trouble). * Fix pagination links on ajax loaded gallery list. = 1.1.5 = * Site admins can choose which image size to use in lightbox. * Site admins can choose which image size to use for single media page. * Media Type labels are now translatable. * Activity actions containing type labels are translatable. * Added filter 'mpp_wall_gallery_title' to easily modify the naming convention for the wall gallery. * Added support for showing the gallery creator when using the shortcode [mpp-list-gallery]. * Added support for showing the media creator when using the shortcode [mpp-show-gallery]. * Added support for showing the media creator when using the shortcode [mpp-list-media]. * A lot of inline code documentation and cleaning(Will continue for next 2 releases) = 1.1.4 = * Add smaller loader image for better usability. * Creating a new version since wp.org is not regenerating the old zip. = 1.1.3 = * Allow uploading from activity stream without needing to post content. It make the uploading more easier and user friendly. * Add options to allow site admin control the media size and cropping behaviour. Size settings are available from MediaPress->Settings->General screen. * Use 'large' image size instead of the original on single media page and lightbox. * Better lightbox comment. = 1.1.2 = * Add filter 'mpp_used_space' to allow filtering total used space. * Fix the callback for 'private' status to check for the user id instead of relaying on the bp_is_my_profile() = 1.1.1 = * Better caching support. Cleans up media/gallery after update. * Introducing multiple new template tags. * Updated the templates and MPP_Gallery View to accept activity id too. Any child view should update.. * Added admin notice to ask the admins to save the settings atleast once. = 1.1.0 = * Added option to enable lightbox for clicking on photo inside gallery. * Brand new icon images for photo, video, audio, doc uploads. * Fixed the lightbox not loading all photos. * Fixed the error "This file type is not allowed" when the extensions had space * Fixed raw media description on bulk edit page to avoid showing the html inside text area. * Fixed delete warning text. * API Enhancement, allow excluding/including media in queries. * A lot of code cleanup = 1.0.9 = * Fixed the recursion causing error on gallery delete. = 1.0.8 = * MediaPress Tools screen warning fix for the Browser class. * Almost 30% of codebase inline documentation updated, more to follow. * Fix path error for loading logger class. * mpp-show-gallery shortcode now defaults to grid if not view is specified. * Better current component handling when BuddyPress is disabled. * Allow using custom taxonomy query in MPP_Media_Query and MPP_Gallery_Query * Improve css class names and a few other small tweaks. = 1.0.7 = * Fix upload shortcode to avoid it generating the form at the top. * Fix Private status issue in groups. * Fix single media edit form layout opn mobile devices. * Template cleanup * User Gallery edit/delete permissions are more granular now. * Add filter 'mpp_gallery_auto_update_cover' to allow disabling the auto update of cover to first photo. * Fix to respect the default group gallery preference at group creation. * Fix date related template functions to show correct date. = 1.0.6 = * Numerous accessibility improve. Huge thanks to @mercime for the contribution. * Fix the js error on media edit page. Thank you Sarah( @sitesforchrist ) * Fix Uploading to group gallery from sitewide activity. Thank you Leo, @valuser * Fix the issue which caused attachments to not work on activity screen for some of the users. * Added functions fro moving media from one gallery to another gallery. * Added support for ondemand gallery creation using the mpp_get_context_gallery hook * Updated default archive/single gallery permalink slug to use same string 'galleries' = 1.0.5 = * Fix the problem with media upload on new gallery screen in the dashboard * Fix a fatal error on BuddyPress 2.6.0 when group is not active * Fix a few notices, thanks to @danbp * Allow replacing the media selector icons on activity from theme template * Use proper url schema for the google doc viewer(for https/non https sites) * Fix a few admin translations. Thanks to @danbp = 1.0.4 = * Lightbox javascript API. Now developers can leverage our lightbox Javascript API to open media, list of media in lightbox. * Enabling Lightbox for Media list shortcode using lightbox=1 in the shortcode. * Enabling lightbox when clicking on single photo in the activity comment on photo. * Fix lightbox settings to be applied properly(enabling/disabling). * Adding basic debug info for Media. * Default status is set to public for media list shortcode to avoid listing private media. * Fix Wall Gallery issue with the Doc type. * Single Media/Gallery Activity Fix:- Now, will show the activity from all members. * Limit number of media visible in activity stream. * Add "Galleries" link to User list in the admin for quickly viewing user galleries. * Implementation of the Orphaned Media deletion using wp cron. * Fallback to default view when the active view is not available. * Release notes in details: [Link](https://buddydev.com/mediapress-development/mediapress-1-0-4-availa-now/) = 1.0.3 = * Added pagination support in shortcodes. * Fixed Gallery directory pagination. * Updated activity privacy to be stricter when the Activity privacy plugin is not enabled. * Fixed avatar issue in lightbox. * Enhanced the [mpp-uploader] shortcode. It fixes an issue when uploads are for sitewide galleries and provides better experience. * Enhanced Create gallery status dropdown to use the default status by default. * Fix 2 typos in strings. Thanks to Joost(@joost-abrahams ). * Numerous other subtle enhacements ( like allowing extending shortcode etc). = 1.0.2 = * Fixed double form issue on Create gallery page. * Fixed a typo in method name for loading templates. * Please upgrade if you are seeing double form on create gallery page. = 1.0.1 = * Added uploader shortcode [mpp-uploader]. * Added My Gallery filters for Group Galleries. * Added type filters for User Galleries. * Other enhancements. * Release notes: [Link](https://buddydev.com/mediapress-development/mediapress-1-0-1-is-available-now/) = 1.0.0 = * Initial Release on wp.org repo.
Multsite Wordpress-Buddypress members cannot upload photo - they get error message
" xxx.jpg(28 kb)x This file type is not allowed in current gallery. Only files are allowed!"
Multsite Wordpress-Buddypress members - by this I mean - members who can both register and create site. Other photo/gallery like rtmedia, buddypics etc have NO such problem in exactly similar set-up
Individually activating or network-activating - all gives same error as above.
Note : If members can only register but not create individual blog/site, they can upload photos by mediapress. No problems.
Can you please correct this or suggest some work-around ? Is the dev work not happening now? Thanks.
The photo page, that is, the page in which the individual photo is viewed do not have the favorite button.
Please note that a photo can be favorited from both the activity stream as well as the photo page ( like a two way electric switch). When there are multiple photos thumbnails in the stream no favorit link is shown, when there is single photo Favorit link is shown - this is the usual behavior.
In the other gallery by Modemlooper (Buddypics) you can favorite from both the stream as well as the individual photo page. Rtmedia free version is also implementing this.
If this setting is left unchecked in the group the upload buttons still appear:
This means that when you click on the image when it posts to the group wall (which it will), the link will give a 404 error because the gallery is not enabled.
There should be a check against that setting in this function: https://github.com/buddydev/mediapress/blob/master/core/activity/template.php#L5-L43
If the setting is not enabled, return and don't show the buttons.
Currently we have the function names split into mpp_{some_action}{some_module}something()
and also mpp{some_module}{some_action}_something()
We need to choose one convention and strictly follow that. I am more inclined to go with mpp_{submodule)}_whatever() convention
For example:-
a) mpp_get_gallery_cover_src() vs
b) mpp_gallery_get_cover_src()
Though the first option is more readable, at places it may conflict with other sub modules and makes difficult for new developers exploring MediaPress to remember the names.
The second option is a little inconvenience at first but once we get into the habit of using it, it does not require us to remember any function. All we need to do is think like what action is being performed and append that to mpp_{submodule}_action_name etc
Let us make the naming consistent before going stable.
I've tested this with a few different themes and everytime Mediapress is activated the cropping pane for buddypress profile and group avatars disappears. Clicking crop image just bumps you to the top of the page. If I disable mediapress, the upload and cropping function of avatars works fine.
Need some suggestion here. Should we allow the media titles to be obfuscated if the file name obfuscation is allowed?
I am concerned that the titles will become some random string and make it useless. If any of you have a views about this, please do let me know.
Hi, great plugin but I'm seeing an issue where a gallery when deleted isn't removed. "Yes, I understand and I want to delete!" is clicked but nothing further happens.
Galleries can be deleted and binned from the WP administration area only.
When static frontpage is set in admin. some errors are showing on gallery child pages. Is_Page related issue.
When a comment is made under a photo (an individual photo) in the activity stream by clicking the buddypress comment button it does not show up in that particular photo page. This is confusing as blog posts do not follow this behavior.
I suggest - to test : post comment to a photo in the stream by clicking the buddypress comment button. Also make another different comment in the photo page containing one single photo.
There seems to be NO sync or logic to what is happening. Thanks for looking into the matter.
Having an issue in some themes when Gallery Image Uploader is not showing on the front end when clicking on view or upload.
For example using Genesis framework will replicate this issue but most Genesis Child Themes are ok, I am trying to find out why the issue occurs if just using the framework.
Attached are 2 screen grabs one showing the gallery and the other showing what happens when upload is selected - both grabs also have all the page hooks displaying - it is also odd that the hooks stop being rendered to the page at a certain point near the gallery uploader when the issue occurs.
No other plugins running, no JS errors in console and no PHP errors in debug.
Hi Brajesh,
i'm very concerned by MediaPress, as an interesting enhancement of BuddyPress. I'm not a delopper, so i won't tell to much about your work, at least for now. That said, the demo site using BP Default and only a single install, is a bit reducing the magic of possibilities and avaible improvements introduced since BP 2.x
If you allow me a suggestion, take a look at BuddyDrive and Rendez-Vous plugins, as examplary coding for specific BP plugins. There is also a project by Mark Jaquith, which could be interesting to check. https://github.com/markjaquith/Showdown
Concerning my issue
network multisite local,
WP 4.1
BP 2.2
PHP 5.5.12
Apache 2.4.9
Twenty Thirteen
Issue description
When loged out
Strict standards: Declaration of MPP_Group_Gallery_Extension::display() should be compatible with BP_Group_Extension::display($group_id = NULL) in ..\mediapress\modules\groups\group-extension.php on line 4
When login
Additionally to the above, 2 warnings related to
Warning: Cannot modify header information - headers already sent by (output started at C:\wamp\www\buddy\wp-content\plugins\mediapress\modules\groups\group-extension.php:4) in ..\wp-login.php on line 424 and 437
I'm running MediaPress live on bp-fr.net
If interested, i can give you access to his dev environment(MS), just let me know. PM me on the live site.
GAMEPLAN:
You can add shortcode support for activity statuses
function oi_add_shortcodes_to_activity_stream() { add_filter( 'bp_get_activity_content_body', 'do_shortcode', 1 ); } add_action('bp_init', 'oi_add_shortcodes_to_activity_stream');
Going to code a way to automatically add
[mpp-media id=XXX]
or[mpp-list-media id=XXX]
into the current activity item so that when you DO press 'Post Update' it also includes a shortcode to the just uploaded media.
Also it might be possible to implement a repost / reblog feature using this method? The same way Default Buddypress allows to @ people by clicking on a button on their profile page.
Is this a good way to approach it?
Action "mpp_gallery_updated " should fire from backend as well when gallery is updated.
Hi there,
I have not used MediaPress yet, but was wondering, if it makes use of the new BP Attachements API?
I guess it would make sense if it did, but then I am by no means an expert...
Fatal error: Call to undefined function get_current_screen() in plugins/MediaPress-master/admin/functions.php on line 11 as reported by Zabrina here http://buddydev.com/buddypress/presenting-mediapress-media-plugin-will-ever-need-buddypress/#comment-1218927
It should be available as a Network Plugin just like Buddypress, so that in WP Multisite-BP environment its settings can be saved centrally
for example its admin url should be like wp-admin/network/settings.php?page=mediapress
Since this is "Network Activated" with no settings options there, users in such a network can create Gallery but when they try to upload pictures the pictures are not uploaded, instead an error message is shown. Unless the end-user manually configures the settings (which he is not aware he has to do) pictures cannot be saved
Having two interfaces - the WP dasboard interface and again Buddypress interface is confusing for the end-user - can there be any sync between the two?
Hi there,
In wp-content/plugins/mediapress/modules/buddypress/activity/mpp-activity-hooks.php you're disabling the bp_nouveau_activity_secondary_avatars filter because of a bug.
Isn't it fixed ?
Please check https://buddypress.trac.wordpress.org/ticket/7963
Regards,
Allow to Favorite a photo both from the stream and the individual photo.
Favoriting or Liking is such an important activity these days and it seems BP will never implement it properly. Now that FB has also introduced other emotions along with Like, for example a sad icon, for example at demise of some person (you cannot Like a death) ... it seems BP or Wordpress will never catch up. Emotions aside :
Since this and photo tagging are so urgent needs and are stopping public release of many sites these can be Paid or Premium options. Eg. Rtmedia has Like/Favorite a photo in lightbox as Free option but photo Tagging as a paid option (though in their demo it works eratically or does not work).
Hello there is a typo mistake in groups (in mediapress/modules/groups/loader.php line 36)
mpp_check_group_access
and should be
mpp_check_groups_access
Because in functions.php the function name is mpp_check_groups_access
function mpp_group_init() {
mpp_register_status( array(
'key' => 'groupsonly',
'label' => __( 'Group Only', 'mediapress' ),
'labels' => array(
'singular_name' => __( 'Group Only', 'mediapress' ),
'plural_name' => __( 'Group Only', 'mediapress' )
),
'description' => __( 'Group Only Privacy Type', 'mediapress' ),
'callback' => 'mpp_check_group_access'
));
}
Best regards
I've just found that there is an issue with Mediapress and WordPress HTTPS,
Media uploads fail on frontend only when Force SSL Administration is enabled on WP HTTPS plugin.
Need to update the signature of the lib class.
I have found if MediaPress is enabled and Gravity Forms with the User Registration Add on and User Activation is checked as below.
The form will not post and a server 500 error occurs - if MediaPress is disabled the form posts successfully.
Here is some output from debug log...
[29-Nov-2016 00:50:48 UTC] PHP Fatal error: Cannot redeclare get_dirsize() (previously declared in /home/roomxchange/public_html/wp-content/plugins/mediapress/core/storage/class-mpp-local-storage.php:922) in /home/roomxchange/public_html/wp-includes/ms-functions.php on line 1690
is there a function to get the gallery author? thanks!
so when my users upload photos/videos it comes up in the update but then when they post its not there please help
Fatal error: Call to a member function activity_display() on boolean in /home/user_dir/public_html/folder_name/wp-content/plugins/mediapress/modules/buddypress/activity/mpp-activity-hooks.php on line 92
I can't seem to beat this one.. any sggestions?
https://buddydev.com/mediapress/shortcodes/mediapress-gallery-listing-shortcodes/
Here it says August, 2015 you would have a TinyMCE plugin, but it isn't linked. TinyMCE isn't a thing any more, Gutenberg has taken its place, can you please embed a widget directly into the Wordpress Gutenberg editor that comes with Wordpress now.
At present, testing with the latest Mediapress beta, in the scenario below, end-users always get error message and cannot upload images even if they have individually saved the settings
Install WP 4.1 and install BP 2.1.1 - fresh installs, nothing else
Enable WP multisite - define('MULTISITE', true); define('SUBDOMAIN_INSTALL', false); etc etc
Enable Mediapress, SAVE settings - all checked, Saved
Go to wp-admin/network/site-new.php and create a new site - a new user is created automatically by wordpress if email address was not in the database
Now edit end-user password etc ( and send email to him with password etc)
Login as that end-user and try to create gallery, upload an image
You can create gallery as an end-user but when you try to upload image
You will get an error-message "xyz.jpg(xyz kb) x This file type is not allowed in current gallery. Only files are allowed!"
This error message and failure to upload happens even if the end-user has visited wordpress/end-user-site/wp-admin/edit.php?post_type=mpp-gallery&page=mpp-settings and checked "Enabled Media/gallery types" etc
This is a pretty awesome plugin - thank you!
Testing on a multisite local install with the newest version of everything inculding Kleo (premium) theme.
When the icons are clicked in any activity screen the upload panel appears but the "select the file" option also immediately or simultaneously goes into action.
Otherwise all good so far.
Could well me inattention on my part re settings --- but haven't found it so far.
Any guidance much appreciated.
Trying to set permissions in User Role Editor for MediaPress but I can't seem to find any permissions to set to users?
As reported by Carl, the file extensions are currently case sensitive. It should not be case sensitive.
Hey,
first off, sbrajesh, nice plugin. It works well so far. There are some things here and there, but i hope i can contribute soon.
i am customizing all mediapress templates from inside my theme and it would be great for styling if we had more finer grained body classes.
currently it only show »mediapress«
but better would be »mediapress single-gallery-view« or »mediapress single-media-view«
Maybe you can point me in the direction, i would make a PR.
cheers,
Felix
I marked a album for logged in users and when visiting http://localhost/buddypress/gallery/gatets/media/h8733d98f/ i returns an error, but the full url to image works http://localhost/buddypress/wp-content/uploads/mediapress/sitewide/1/4/h8733D98F.jpeg
I think private albums should create a .htaccess file to check for logged users (when a simple logged users permission is required).
When using buddypress a php script could check & serve images to ensure the user is allowed to see the image.
I know it would be more resource intensive, it could be optional activating a "paranoid mode". I am new to wordpress development, but I would:
It should be backwards compatible.
Any interest in adding this to the module?
Can you please provide a checkbox for people to allow PHP file uploads? I know it is for security reasons, but can you still make it (maybe even looking for some bad stuff in the file itself)?
I have a code-sharing file http://codify.maweb.eu/. Thank you, regards Filip.
Hi there,
I have tweak the function mpp_media_user_can_comment() at the end of file wp-content/plugins/mediapress/core/mpp-permissions.php starting at line 619 to add this filter giving a hook to control wether a user can comment on the given media.
/**
* Check if user can comment on the given media.
*
* @param int $media_id media id.
*
* @return bool
*/
function mpp_media_user_can_comment( $media_id ) {
/**
* Filters whether a comment can be made on this media.
*
* Customisation by Charles Rozier <[email protected]>
* Mimics BuddyPress function bp_activity_can_comment() defined in BuddyPress/bp-activity/bp-activity-template.php:2880
*
* @param bool $can_comment Status on if media can be commented on.
* @param int $media_id Current media id being checked on.
*/
$can_comment = true;
return apply_filters( 'mpp_media_user_can_comment', $can_comment, $media_id );
// in future, add an option in settings and also we can think of doing something for the user.
if ( mpp_get_option( 'allow_media_comment' ) ) {
return true;
}
return false;
}
Could you please add this in your next release ?
Regards,
Marking on photo to demarcate some square area and label/tag it
How to show multiple photos in a grid (suppose a grid of 5 or 6 or similar) in the activity stream when multiple photos are uploaded simultaneously. An user uploading say 12 or 15 photos will easily "spam" the stream at the current settings.
This appears to be coming from this line: https://github.com/buddydev/mediapress/blob/master/core/activity/template.php#L152
...except that when I var_dump $media_ids
I get an empty array, so the count is always 0.
Is there a way to allow admins to access the Wordpress Media for Galleries? I would have assumed using the site-galley for admin only from the admin panel would have just allowed this instead of having to upload media a second time.
Hi, I have been trying the latest github version of Mediapress with WP 4.1 and BP 2.2
I have the following settings:
Both sites and user accounts can be registered.
define('MULTISITE', true);
define('SUBDOMAIN_INSTALL', false);
The site super admin can upload photos.
But people who register, and have both accounts and sites, can create gallery but cannot upload photos.
They get the error message "This file type is not allowed in current gallery. Only files are allowed!"
The created Gallery does not show up later that is, it is not saved.
Same thing happens for them from dashboard/backend and frontend.
I have tried not to Network-Activate Mediapress but activate it from the individual user's dashboard.
But things do not work. That is to say, users cannot see "Create Gallery" etc. When the Network-Activation is done they can see "Create Gallery" and can create gallery but cannot upload pictures as described above.
Same results with previous version, latest github master, infact all available versions of Mediapress.
Using the same settings, Modemloopers Buddypics and Rtmedia free version works without any problem.
I have a database with more than 5000 galleries and calling theses functions is very slow (more than 10 seconds) due to IN in the query.
the query for mpp_get_object_count is:
SELECT COUNT( DISTINCT p.ID ) AS total
FROM wp_posts AS p
INNER JOIN wp_postmeta AS pm ON p.ID = pm.post_id
WHERE p.post_type = 'mpp-gallery'
AND p.post_status = 'publish'
AND pm.meta_key = '_mpp_component_id'
AND pm.meta_value =1
AND ID
IN (
SELECT DISTINCT t.object_id
FROM (
SELECT DISTINCT tr.object_id AS object_id
FROM wp_term_relationships AS tr
WHERE tr.term_taxonomy_id
IN (
'29'
)
UNION ALL SELECT DISTINCT tr.object_id AS object_id
FROM wp_term_relationships AS tr
WHERE tr.term_taxonomy_id
IN (
'31', '32', '35'
)
UNION ALL SELECT DISTINCT tr.object_id AS object_id
FROM wp_term_relationships AS tr
WHERE tr.term_taxonomy_id
IN (
'38'
)
) AS t
GROUP BY object_id
HAVING count( * ) >=3
)
it much more faster to convert the IN clauses to INNER JOIN clauses:
SELECT COUNT( DISTINCT p.ID ) AS total
FROM (
SELECT DISTINCT t.object_id as inid
FROM (
SELECT DISTINCT tr.object_id AS object_id
FROM wp_term_relationships AS tr
WHERE tr.term_taxonomy_id
IN (
'29'
)
UNION ALL SELECT DISTINCT tr.object_id AS object_id
FROM wp_term_relationships AS tr
WHERE tr.term_taxonomy_id
IN (
'31', '32', '35'
)
UNION ALL SELECT DISTINCT tr.object_id AS object_id
FROM wp_term_relationships AS tr
WHERE tr.term_taxonomy_id
IN (
'38'
)
) AS t
GROUP BY object_id
HAVING count( * ) >=3
) a
JOIN wp_posts AS p ON a.inid = p.ID
INNER JOIN wp_postmeta AS pm ON p.ID = pm.post_id
WHERE p.post_type = 'mpp-gallery'
AND p.post_status = 'publish'
AND pm.meta_key = '_mpp_component_id'
AND pm.meta_value =1
Hi, I can write a comment for the photos, but when I get back on the photo it may not appear.
// Generated by the MediaPress Debug tool //
Multisite: No
SITE_URL: http://localhost/criteria
HOME_URL: http://localhost/criteria
WordPress Version: 4.4.1
Permalink Structure: /%year%/%monthnum%/%day%/%postname%/
Active Theme: Twenty Sixteen 1.1
Registered Post Stati: publish, future, draft, pending, private, trash, auto-draft, inherit
// Browser Details //
Browser Name: Firefox
Browser Version: 43.0
Browser User Agent String: Mozilla/5.0 (X11; Linux x86_64; rv:43.0) Gecko/20100101 Firefox/43.0
Platform: Linux
// End Browser Section //
PHP Version: 5.6.15
ACTIVE PLUGINS:
BP Profile Search: 4.4.1
BP Xprofile Member Type Field: 1.0.1
BuddyPress: 2.4.3
BuddyPress Member Type Generator: 1.0.1
Disable Feeds: 1.4.2
ezPHP: 150214
Hide Admin Bar and Toolbar: 1.6.1.1
MediaPress: 1.0 Beta 1 (master)
s2Member Framework: 151218
You Have a New (BuddyPress) Message: 1.1
// MediaPress Settings //
active_components: members
default_status: loggedin
active_statuses: public,private,loggedin,friendsonly
active_types: photo,video
extensions: jpeg,jpg,gif,png,mp4,flv,mpeg,mp3,wmv,midi,zip,gz,doc,pdf,docx,xls
mpp_upload_space: 10
mpp_upload_space_groups: 10
show_upload_quota: 0
default_storage: local
has_gallery_directory: 1
has_media_directory: 1
activity_upload: 1
activity_photo_default_view: default
activity_video_default_view: default
show_orphaned_media: 0
delete_orphaned_media: 0
members_active_types: photo,video
members_photo_gallery_default_view: default
members_video_gallery_default_view: default
galleries_per_page: 20
media_per_page: 20
media_columns: 4
gallery_columns: 4
show_gallery_description: 0
show_media_description: 0
enable_audio_playlist: 0
enable_video_playlist: 0
enable_media_comment: 1
enable_gallery_comment: 1
load_lightbox: 1
enable_activity_lightbox: 1
enable_gallery_lightbox: 1
// End of MediaPress Settings //
Validate the selected file types on client side if possible instead of testing for the type serverside.
Hello,
MediaPress not showing galleries using galleries ids for example [mpp-list-gallery in="1,3,5,6"].
Please look into the issue.
Regards
Ravi
The problem is that we are not sure how to provide the Ui for the display of these links on user profile. Adding is fine but should we create separate types for remote videos( Their player have different UI than the local hosted video) or keep them as mixed content in all the galleries ?
Please let us know your suggestions here.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.