Replies
- Brajesh Singh on September 3, 2015 at 8:48 pm 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?
- Brajesh Singh on September 3, 2015 at 6:12 pm in reply to: [Resolved] mpp_register_media_size – image orientation #355
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.
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?
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.
- Brajesh Singh on September 3, 2015 at 5:43 pm in reply to: [Resolved] Profile Privacy causing Theme crash WordPress 4.2.4 #352
@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. - Brajesh Singh on September 3, 2015 at 11:17 am in reply to: Mediapress – upload image from mobile device #344
Hi,
I am sorry for the inconvenience. It does not seem to be a MediaPress issue rather a browser permission to access the photos. Please visit your phone settings and check if browser can access photos.I am not using anything specific, It is the browser that is responsible for browsing/selecting images and depending on your device privacy, It may or may not access that.
PS: We are using exact same setup as WordPress dashboard media upload. If one is working, the other will work too.
- Brajesh Singh on September 3, 2015 at 10:16 am in reply to: [Resolved] mpp_register_media_size – image orientation #342
Hi Aleksandar,
Thank you for asking.1. You have registered the size correctly. Good find there 🙂
2. We are using WP_Image_Editor and it’s multi resize method for resizing, so I don’t see a direct way to change the crop. There is still a way to do it though.
a). Please look at the documentation of WP_Image_Editor class here( and the first example is enough for us)
https://codex.wordpress.org/Class_Reference/WP_Image_EditorPlease do note, If you don’t pass any file name to save method, It saves to the original image.
You can filter on
mpp_generate_metadata
filter in core/storage/loca-storage.php
https://github.com/buddydev/mediapress/blob/master/core/storage/local-storage.php#L466and filter for the specific size and regenerate that( all the sized images are stored under $metadata[‘sizes’] )
Hope that helps.
- Brajesh Singh on September 3, 2015 at 10:05 am in reply to: [Resolved] Profile Privacy causing Theme crash WordPress 4.2.4 #341
Hi Leigh,
Thank you for the reply. Glad that fatal error is fixed.Please visit Settings->Profile Visibility and make sure that you haven’t enabled the hide last active time there.
If you enable that the plugin assumes that you don’t want to show the last active time and shows not recently active( that may be a bad label here and suggestion is welcome 🙂 )
It is just to hide the last active time when enabled by the admin or individual user. Please do let me know your suggestions. If I return empty string there, BuddyPress does not hide the last active time, also deleting a user’s last active time makes him/her invisible in directory. That’s why we need some sort of string here.
I am happy to change that label, please do let me know if you have suggestions.
Thank you
Brajesh - Brajesh Singh on September 3, 2015 at 9:58 am in reply to: [Resolved] Having problems with showing BuddyBlog posts in activity feeds #340
Hi Rojo,
I am sorry I could not put much time into it. Will be doing today for sure and will get back to you. - Brajesh Singh on September 3, 2015 at 9:58 am in reply to: [Resolved] Make Buddypress Community Private #339
Hi Jay,
Thank you. I will post the code in an hour.