Replies
Hi George,
That’s good to know.Yes, you can use
mpp_update_media() functionHere is the function definition
https://github.com/buddydev/mediapress/blob/master/core/media/mpp-media-functions.php#L299and here is an example use
https://github.com/buddydev/mediapress/blob/master/core/media/mpp-media-actions.php#L89
This is what we use to update the single media details.
Hope that helps.
Brajesh- Brajesh Singh on June 10, 2018 at 10:13 am in reply to: BuddyPress Custom Xprofile Fields, compatibility with BP Profile Search #15598
Hi Carsten,
Just wanted to let you know that I have added compatibility with BP Profile Search plugin in 1.0.3. It is now available for upgrade from wp.org. Hi Audiomonk,
Thank you for clarifying. That is doable. I will ask my team member to put some code on Monday for the same.I am not sure what you bought(is it about your site?), but we will assist with our plugin.
- Brajesh Singh on June 9, 2018 at 9:37 pm in reply to: Hidden Profile Shows when Ordered by Alphabetical #15590
Since you are using BP Nouveau, Here is an example to remove the alphabet filter
/** * Remove alphabetical filter for members(everywhere) when using nouveau template pack. * * @param array $filters filters * * @return array */ function buddydev_remove_nouveau_members_filter( $filters ) { unset( $filters['alphabetical'] ); return $filters; } add_filter( 'bp_nouveau_get_members_filters', 'buddydev_remove_nouveau_members_filter' );You may use the keys ‘active’, ‘newest’ etc to remove the other filters.
Best Regards
Brajesh - Brajesh Singh on June 9, 2018 at 9:09 pm in reply to: [Resolved] Adding field to private message form? Howto do this? #15588
This should be easy. I will ask @ravisharma to assist you with this on Monday.
PS:- which template pack are you using? legacy or Nouveau?
Thank you
Brajesh I will test for the admin update. It might have happened recently if I did not notice it.
For the UX
1. In MediaPress we do auto upload. It means, the file gets queued and uploads as soon as it is selected. A little modification to your strategy will work though.
a. When the file upload is complete, show the title/description form for the media
You can attach to the event “mpp:uploader:upload.success”You can see that it passes the uploader as well as the received data from server.
https://github.com/buddydev/mediapress/blob/master/assets/js/uploader.js#L254
This even is fired for each file upload. If you want to hook to when all the selected files get uploaded, you can attach to “mpp:uploader:upload.complete” as implemented here
https://github.com/buddydev/mediapress/blob/master/assets/js/uploader.js#L262Here is an example on how to attach
$(document).on('mpp:uploader:upload.success', function (event, mpp_uploader, attachment ) { // do something. });There are other events available too(on selection etc). Please do note that if you go this route, It may need more attention that what seems on the surface.
Regards
Brajesh- Brajesh Singh on June 9, 2018 at 8:59 pm in reply to: Ajax Registration optimization against spammers #15586
Hi Daniel,
Spam is a huge issue with BuddyPress. I will suggest three options1. Using this plugin to enable https://wordpress.org/plugins/buddypress-captcha/
2. If there are too many registrations(spam registrations) from specific domain, use our ban registration domain to ban some of these
https://buddydev.com/plugins/wp-ban-registration-domain/3. If nothing works, you may use BP Registration Option plugin to keep the new users on hold and manually activate them.
Best regards
Brajesh - Brajesh Singh on June 9, 2018 at 2:41 pm in reply to: Hidden Profile Shows when Ordered by Alphabetical #15579
Hi Charles,
Thank you for getting back.1. Most probably RCP addon is also filtering on the user list. There is no issue with that, they should make sure that it does not affect the existing exclusion.
2. About the alphabetical issue, It has been there for a long time with BuddyPress. We checked last time and a user who was excluded from the profile visibility was correctly excluded there too. I will be rechecking this and getting back to you in a day.
Thank you
Brajesh - Brajesh Singh on June 9, 2018 at 1:35 pm in reply to: Media Press Audio uploads – autofill Media Description from MP3 Information #15578
I will be testing it tonight. It’s strange but there might be some issue. Will test and get back to you later today.
Regards
Brajesh 1. Please visit Dashboard->MediaPress->settings->Theming and enable “Show Media description”.
That will do it.2. Bulk edit, I haven’t tried but I too want to have a better way to allow updating title/description at the time of upload. For me, UI is the biggest issue and that’s why haven’t done it on upload till now.
I will explore it next week and let you know if we can do a selective bulk update.
Thank you
Brajesh