Shape the future of Social networking with WordPress: Join Project Midnight Sun! The next generation platform for community building with WordPress!

BuddyDev

Search

Replies

  • Keymaster
    (BuddyDev Team)
    Posts: 25302
    Brajesh Singh on in reply to: Mediapress features #15599

    Hi George,
    That’s good to know.

    Yes, you can use

    
    mpp_update_media() function
    

    Here is the function definition
    https://github.com/buddydev/mediapress/blob/master/core/media/mpp-media-functions.php#L299

    and 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

  • Keymaster
    (BuddyDev Team)
    Posts: 25302

    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.

  • Keymaster
    (BuddyDev Team)
    Posts: 25302
    Brajesh Singh on in reply to: Comments link in gallery view #15591

    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.

  • Keymaster
    (BuddyDev Team)
    Posts: 25302

    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

  • Keymaster
    (BuddyDev Team)
    Posts: 25302

    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

  • Keymaster
    (BuddyDev Team)
    Posts: 25302
    Brajesh Singh on in reply to: Mediapress features #15587

    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#L262

    Here 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

  • Keymaster
    (BuddyDev Team)
    Posts: 25302

    Hi Daniel,
    Spam is a huge issue with BuddyPress. I will suggest three options

    1. 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

  • Keymaster
    (BuddyDev Team)
    Posts: 25302

    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

  • Keymaster
    (BuddyDev Team)
    Posts: 25302

    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

  • Keymaster
    (BuddyDev Team)
    Posts: 25302
    Brajesh Singh on in reply to: Mediapress features #15577

    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