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

    Thank you. That makes it clear. I will have some code in 30 mins to an hour.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25325

    Hi,
    Thank you for asking. I have a few questions before I can put the sample code for you.

    1. Do you want users to be able to upload from activity or not?

    2. Do you want to allow users to delete the predefined galleries or not?

    3. Can you please explain what do you mean by

    “Additionally, I need to split the images and videos into separate entities. Currently it’s all in one.”

    MediaPress does not allow uploading video/photo to one gallery. It is the default behaviour to have separate galleries for each of the type.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25325
    Brajesh Singh on in reply to: BP-Album Importer #2453

    Thank you.
    I will put a copy for you to test a little bit late today. giving a final push for activity, if not, will disable that and push the copy.

  • Keymaster
    (BuddyDev Team)
    Posts: 25325
    Brajesh Singh on in reply to: BP-Album Importer #2451

    Hi ,
    I am sorry to keep you waiting. How much important is gallery activity migration for your site?

    I have been working on it but the activity migration is not going in the right direction. I was even working on it in the day and was going to ask you the question.

    Also, do you use add from web or not or your site?

    If you can answer these two question, I may have something to showcase even today.

  • Keymaster
    (BuddyDev Team)
    Posts: 25325
    Brajesh Singh on in reply to: [Resolved] sitewide activity widget #2444

    Hi Jan,
    Can you please look into my suggestions and let me know if that worked for you or not?

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25325
    Brajesh Singh on in reply to: Secure media #2443

    Hi Jay,
    Thank you for clarifying.

    There are a few solutions for this available.

    You may want to look at these and see if it solves the issue

    1. https://wordpress.org/plugins/media-vault/
    2. https://wordpress.org/plugins/delightful-downloads/

    I will prefer the first one as that does not have any extra UI requirement and uses WordPress uploader.

    Please give it a try and let me know how it goes.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25325
    Brajesh Singh on in reply to: [Resolved] Hide Members based on Member Type? #2442

    Hi Kenny,
    Marking this topic as resolved a per email. The code works.

    In future, if you are unable to post reply, please try refreshing the browser and you will be shown as properly logged in. It happens sometimes due to caching.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25325
    Brajesh Singh on in reply to: No 'All Galleries' page and no 'Wall Photos' gallery #2441

    Hi Mike,
    I just implemented the shortcode today. It still needs final touch but is available on github repo now.

    https://github.com/buddydev/mediapress

    Here is a screenshot to show how it looks
    http://i.imgur.com/uAiM7BB.png

    I am not sure how to handle the case when a user does not have any gallery available, should we create one automatically when a user uploads for the first time?

    The shortcode can currently handle single gallery uploads(if you provide gallery_id or can list galleries based on other parameters and user access(status,type,component,component_id) and let users select the gallery to upload to.

    I still need some idea for what the real life needs are and will appreciate your suggestions here.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25325
    Brajesh Singh on in reply to: [Resolved] Hide Members based on Member Type? #2439

    Hi Kenny,
    Welcome to BuddyDev forums.

    Please use the following code

    
    
    add_filter( 'bp_after_has_members_parse_args', 'buddydev_exclude_users_by_member_type' );
     
    function buddydev_exclude_users_by_member_type( $args ) {
        //do not exclude in admin
        if ( is_admin() && ! defined( 'DOING_AJAX' ) ) {
            return $args;
        }
        
        $excluded_member_type = isset( $args['member_type__not_in'] )? $args['member_type__not_in'] : array();
     
        if ( ! is_array( $excluded_member_type ) ) {
            $excluded_member_type = explode(',', $excluded_member_type );
        }
        
    	//member types to exclude, change it
    	$types_to_exclude = array( 'student', 'teacher' );//add your own list
        
        $excluded_member_type = array_merge( $excluded_member_type, $types_to_exclude );
        
        $args['member_type__not_in'] = $excluded_member_type;
        
        return $args;
    }
    
    

    You can specify one or more member type by their unique name in $types_to_exclude array.

    Please let me know if that works or not?

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25325

    Hi George,
    finally managed to check on IE. It is working for me. I took a screenshot, so please confirm that the IE versions are same.

    http://imgur.com/t0h2Nu8

    Or please send me a screenshot of yours(while uploading).