BuddyDev

Search

Replies

  • Keymaster
    (BuddyDev Team)
    Posts: 24447
    Brajesh Singh on in reply to: [Resolved] Setting Privacy in MediaPress #372

    Hi Milo,
    I am looking at it right now. Will have an update about it soon.

  • Keymaster
    (BuddyDev Team)
    Posts: 24447

    Thank you.
    I will push it tonight Indian time with 2 other changes.

  • Keymaster
    (BuddyDev Team)
    Posts: 24447
    Brajesh Singh on in reply to: [Resolved] Make Buddypress Community Private #365

    Hi Jay,
    I am sorry, I overlooked the homepage exclusion. I have updated the code below. Please update and check if this works.

    
    /**
     * Make a site Private, works with/Withouthg BuddyPress
     * 
     * @author sbrajesh
     * @global string $pagenow
     * 
     */
    function buddydev_private_site() {
    	
    	//first exclude the wp-login.php
    	//register
    	//activate
    	global $pagenow;
    	
    	//do not restrict logged in users
    	if( is_user_logged_in() ) {
    		return ;
    	}
    	//if we are here, the user is not logged in, so let us check for exclusion
    	//we selectively exclude pages from the list
    	
    	//are we on login page?
    	if( $pagenow == 'wp-login.php' ) {
    		return ;
    	}
    	
    	//let us exclude the home page
    	if( is_front_page() ) {
    		return ;
    	}
    	
    	$exclude_pages = array( 'register', 'activate', 'alphabeta', 'groups', 'members' );//add the slugs here
    	
    	//is it one of the excluded pages, if yes, we just return and don't care
    	if( is_page( $exclude_pages ) ) {
    		return ;
    	}
    	
    	$redirect_url = wp_login_url( site_url('/') );//get login url,
    	
    	wp_safe_redirect( $redirect_url );
    	exit( 0 );
    }
    
    add_action( 'template_redirect', 'buddydev_private_site', 0 );
    

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 24447

    Hi Aleksandar,
    It is definitely the “JPEG Rotation and EXIF Orientation” issue. We haven’t put any mechanism to check for that and relay on default WordPress implementation( which suffers from same if I remember correctly).

    I will put a fix for the rotation by in tomorrow’s update.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 24447
    Brajesh Singh on in reply to: Individual Images #362

    Hi Milo,
    Thank you for the reply and showing it with the image.

    1. I agree that the current comment in the activity stream is not good, It needs to have context. I will commit this change in 24 hours to include the referenced media( think about facebook share with comment )

    The current architecture makes each new top level comment independent, and this is by design. It helps us to resolve many issues.

    The thing is all media upload action may not be available as activity. Also, we have to differentiate between gallery activity( say multiple uploads ) and single media activity.

    We had given enough thought to create a top level activity and associate it with a media, then add each comment as it’s child. The problem is we need to create an extra activity( hopefully hidden that acts as the parent activity of an uploaded media if the media was not published to the activity stream). It causes other complications deletion and keeping log. We are using Media activity as log( you will see more of it when a few addons come ).

    The best possible solution without sacrificing any performance is to list the comment as it is now but include the parent Media in the comment content

    Something like:-

    Xyz commented on abc's photo
    {image}
    
    

    Any comment on this comment will behave normally( be listed as child comments under parent). The issue is only with top level comments. Do you think that will be good enough for your use?

    About Privacy: Please open a new topic and make to to let me know if you are setting privacy in the activity privacy plugin or it is about MediaPress privacy.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 24447
    Brajesh Singh on in reply to: [Resolved] Make Buddypress Community Private #360

    Hi Jay,
    Thank you.
    Please find the code below.

    you can put the code in your bp-custom.php or your theme’s functions.php (I will prefer bp-custom.php )

    
    /**
     * Make a site Private, works with/Withouthg BuddyPress
     * 
     * @author sbrajesh
     * @global string $pagenow
     * 
     */
    function buddydev_private_site() {
    	
    	//first exclude the wp-login.php
    	//register
    	//activate
    	global $pagenow;
    	
    	//do not restrict logged in users
    	if( is_user_logged_in() ) {
    		return ;
    	}
    	//if we are here, the user is not logged in, so let us check for exclusion
    	//we selectively exclude pages from the list
    	
    	//are we on login page?
    	if( $pagenow == 'wp-login.php' ) {
    		return ;
    	}
    	
    	
    	$exclude_pages = array( 'register', 'activate', 'alphabeta' );//add the slugs here
    	
    	//is it one of the excluded pages, if yes, we just return and don't care
    	if( is_page( $exclude_pages ) ) {
    		return ;
    	}
    	
    	$redirect_url = wp_login_url( site_url('/') );//get login url,
    	
    	wp_safe_redirect( $redirect_url );
    	exit( 0 );
    }
    
    add_action( 'template_redirect', 'buddydev_private_site', 0 );
    

    You can exclude any page by using the slug, It will work irrespective of the fact that BuddyPress may or may not be active.

    Please do check and let me know if that worked for you or not?

  • Keymaster
    (BuddyDev Team)
    Posts: 24447

    Before assisting further, May I ask a question:-
    1. do you want to fix the wrong orientation problem on iOS devices? or do you want to do the rotate & crop thing.

    First is a generic issue and I can put a fix in the core, for second, I will need to share the code here.

    Please let me know.

  • Keymaster
    (BuddyDev Team)
    Posts: 24447
    Brajesh Singh on in reply to: Individual Images #354

    Hi Milo,
    Now I get the idea. You are referring to the top level comments made on the media from single media page right? They are infact individual items and not related(Only for the top level comments), any child comment on that will be threaded.

    The best option I see here is when listing top level comment, we should include that media in the content of the activity. Will that approach be good?

    By Privacy, you mean activity privacy and not the gallery privacy right?

  • Keymaster
    (BuddyDev Team)
    Posts: 24447
    Brajesh Singh on in reply to: BP User Testimonials widget #353

    That is not feasible at the moment. We don’t supply any such widget with the plugin and planning to add one will take significant time.

    We may get this in our next update if we see enough interest, otherwise It does not seem proper to invest time here.

    PS: If you are a developer, I can provide you some code to get started with this. Please do let me know if you are a developer.

  • Keymaster
    (BuddyDev Team)
    Posts: 24447

    @Hans,
    The auto updater will not report it will 1.3, We have yet to sort this for the a few plugins and this is one of those plugins.

    The problem is the difference between the file name vs the plugin slug. We will be renaming the download to the slugname.zip in 1.3, till then, this plugin will not support automatic upgrade.
    My apologies for the inconvenience.