Replies
- Brajesh Singh on September 9, 2019 at 11:04 pm in reply to: [Resolved] How to Hook into Mediapress Upload via PHP? (custom IPTC, EXIF & XMP data) #25262
Hi ,
‘mpp_media_added’ is more than efficient.The other action ‘wp_ajax_mpp_add_media’ is not advised. It was a way in case you want to handle the things completely differently.
I am glad it is working now.
marking ti resolved.
Regards
Brajesh - Brajesh Singh on September 9, 2019 at 11:02 pm in reply to: [Resolved] Having issues uploading an image in Activity page #25261
Hi Naly,
Thank you for the patience. It is fixed on your site now.The bug was related to MediaPress settings. Under BuddyPress settings tab, the number of media was not set and that was causing the issue.
Please check.
Regards
Brajesh Hi Mike,
Thank you.I had checked your site and I could see that it is applying default css(but your have overridden as you mentioned).
I hope that it is something minor.
Regards
Brajesh- Brajesh Singh on September 9, 2019 at 10:42 pm in reply to: How do allow people to create a subsite in buddypress? Is there a button? #25258
Hi,
BuddyPress does not provide a way for registered users to create new sites. If a new user registers, It does provide them the opportunity to create sub sites.Regards
Brajesh Hi Mike,
I am replying late as I wanted to verify it. I checked again and the option(selecting Yes/No) for css works. Please make sure to clear any browser cache if it does not.Regards
Brajesh- Brajesh Singh on September 9, 2019 at 6:00 pm in reply to: [Resolved] Having issues uploading an image in Activity page #25255This reply has been marked as private.
- Brajesh Singh on September 9, 2019 at 5:59 pm in reply to: [Resolved] The SEO Framework plugin. #25254
Hi Mike,
Thank you for posting.You will need to report it here
https://wordpress.org/support/plugin/autodescription/
It seems their 4.0 release has broken bugs with BuddyPress being active
Regards
Brajesh - Brajesh Singh on September 9, 2019 at 12:09 pm in reply to: [Resolved] How to Hook into Mediapress Upload via PHP? (custom IPTC, EXIF & XMP data) #25250
Hi Christian,
1. You can completely rewrite the upload by attaching to ‘wp_ajax_mpp_add_media’ on a high priority(say 9).
If you do that, you will need to emulate the whole upload process as you see in the add_media.It does not matter if the method is private as you are not using that method. You are simply getting called before that and return the response, so that method never gets called(since it is ajax request).
You can add to the action from anywhere, please make sure the file/code gets run before the action fires(it fires at very low priority, so even if you load on plugins_loaded, it will be fine).
Regards
Brajesh - Brajesh Singh on September 9, 2019 at 11:54 am in reply to: [Resolved] How to Hook into Mediapress Upload via PHP? (custom IPTC, EXIF & XMP data) #25248
Hi Almost, all of them provide you some opportunity to hook(action or filter) except the mpp_get_title_desc_from_meta.
I am hoping that you can hook into ‘mpp_media_added’ and update the settings/content for media as you please.
regards
Brajesh - Brajesh Singh on September 9, 2019 at 11:45 am in reply to: [Resolved] How to Hook into Mediapress Upload via PHP? (custom IPTC, EXIF & XMP data) #25246
Hi Christian,
Thank you for the question.We use the ajax action ‘wp_ajax_mpp_add_media’ to start upload. you can find this code in mediapress/core/ajax/mpp-ajax.php
https://github.com/buddydev/mediapress/blob/master/core/ajax/mpp-ajax.php#L66
It uses local storage helper for upload
https://github.com/buddydev/mediapress/blob/master/core/storage/class-mpp-local-storage.php
Hope that helps.
Regards
Brajesh