BuddyDev

Search

Replies

  • Keymaster
    (BuddyDev Team)
    Posts: 25130
    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: 25130
    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: 25130
    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: 25130
    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: 25130
    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: 25130
    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: 25130
    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: 25130

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

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

    Hi Jay,
    Thank you for asking.

    1. It’s is very resource intensive to block media completely by media file url. Even Facebook does not do that. If you have direct url to the image(image file), You can access it even on facebook. What facebook does is creates obfuscated file names to avoid simple recognition. It is still doable per media file, but I do not recommend that as it will exhaust the servers.

    If we instead obfuscate the file name and use media page url instead of media file url(the file url is not visible, but someone can right click and say open image url ), It is easy to restrict users out of the box.

    Yes, MediaPress is capable of blocking completely, but I do not recommend that method as it will a lot more exhustive for resources( example, filer are not directly accessible and are read via php, will consume memory and cpu).

    2. MediaPress comes with doc files support. It also includes google doc viewer for doc files by default. So, all you need to do is configure the extensions on MediaPresssettings page. If you want to use a different viewer, It is possible to write that and plugin instead of google doc viewer.

    So, easy solution will be marking a Media as friend only(or private) and only friends will be able to see that.

    It is even possible to share a Media with an individual person(we have flexible API inbuilt, but that will need some custom coding to provide an interface).

    Please let me know which way you want to go.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25130

    Hi George,
    I am sorry, It skipped me.

    I will be looking at it in an hour and will get back to you.

    Thank you
    Brajesh