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: 25472
    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: 25472

    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: 25472

    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: 25472
    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: 25472

    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: 25472

    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: 25472

    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: 25472
    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

  • Keymaster
    (BuddyDev Team)
    Posts: 25472

    Hi Razor,
    Thank you for posting. BuddyPress does not have a proper/efficient function for checking if the field group exists.

    You may define your own(put it in functions.php or bp-custop.php )

    
    /**
     * Check if a field group exists.
     *
     * @param string $name group name.
     *
     * @return int
     */
    function bpcustom_profile_field_group_exists( $name ) {
    	$bp = buddypress();
    	global $wpdb;
    
    	return $wpdb->get_var( $wpdb->prepare( "SELECT id FROM {$bp->profile->table_name_groups} WHERE name = %s", $name ) );
    }
    
    

    and after that you can use it to check if the groups exists or not.

    Hope that helps.

    Regards
    Brajesh

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

    Hi Audiomonk,
    Since you are using a custom lightbox, we are only using it to show the image. I am not sure we can handle this in your case as we lack the control over what gets shown in the lightbox.

    Sorry about this. We are working on a better version of our own lightbox too and I certainly hope that you will reconsider it around 1.5

    Regards
    Brajesh