Replies
- Brajesh Singh on September 16, 2019 at 10:42 pm in reply to: [Resolved] Hide member list/page from specific users #25322
Hi,
Here is the code.1. Let us define a function to check if the current user has one of the ids in the lsit
/** * Check if the directory should be visible to a user. * * @return bool */ function bp_custom_is_directory_visible() { $visible_to_user_ids = array( 1, 2, 3, 20 ); return is_user_logged_in() && in_array( get_current_user_id(), $visible_to_user_ids ); }You can add your own user ids.
In case you wish to use username instead of the id, we can redefine the same function as
/** * Check if the directory should be visible to a user. * * @return bool */ function bp_custom_is_directory_visible() { $visible_to_user_names = array( 'admin', 'xyz' ); return is_user_logged_in() && in_array( wp_get_current_user()->user_login, $visible_to_user_names ); }Please note, you can use only one of the above as I have used same function name. Putting both in your file will generate error.
Now that we have written the function for checking user, we can update our code from blog to use it as
/** * Hide Members Directory from everyone. */ function buddydev_hide_members_directory_for_all() { if ( bp_is_members_directory() && ! bp_custom_is_directory_visible() ) { bp_do_404(); load_template( get_404_template() ); exit( 0 ); } } add_action( 'bp_template_redirect', 'buddydev_hide_members_directory_for_all' );That’s all.
Hope it works for you.
Regards
Brajesh - Brajesh Singh on September 16, 2019 at 10:39 pm in reply to: Media Upload box not opening on iPhone #25321
Hi Dave,
I am sorry but I am unable to help with it currently. I am unable to create it on my linux or my colleagues windows desktop.is there anyway to check it via an emulator? or a browser addon. If I can see it, It will take me onlu minutes to fix.
I need to see the exact error in console or the behaviour.The worst case scenerio is I will by an ios based device sometimes around the end of year and fix it.
Thank you
Brajesh - Brajesh Singh on September 16, 2019 at 2:30 pm in reply to: BuddyPress User Badges – Badges position + bug WP message displays #25319
Hi Johan,
That is expected behaviour. We have a admin_notices hook there for showing notices. since it is common for all plugins to use and attach to this hook for showing the notice, you are seeing it.We can move the notice section above the badges if that helps.
regards
Brajesh - Brajesh Singh on September 16, 2019 at 2:26 pm in reply to: BuddyPress User Badges – Badges position + bug WP message displays #25317
Hi Johan,
Thank you for the topic.1. You are most probably using a WooCommerce plugin(seems related to stripe payment) which is showing the notice. Please look for that.
2. It is a valid question but we are not sure how to provide 3 way ordering. The solution to to provide a drag/drop interface in the admin and let you reorder as you please. We will explore it in future. For now, We don’t have much choice here.
Regards
Brajesh - Brajesh Singh on September 16, 2019 at 2:22 pm in reply to: BuddyPress Branded Login – Translation missing string #25316
Hi Johan,
Thank you for the translation and reporting issues. We will be releasing our next update soon to resolve it.Regards
Brajesh - Brajesh Singh on September 14, 2019 at 8:31 pm in reply to: [Resolved] Hide member list/page from specific users #25310
Hi,
Thank you for the question.Do you want to keep the list of user ids or name for allowing?
Regards
Brajesh - Brajesh Singh on September 14, 2019 at 8:29 pm in reply to: When will Community Builder 2.0 will be ready? #25309
Hi Claudia,
I am sorry I could not update you. We could not achieve our targets and now the release is scheduled for 29t/30th.It is a complete rewrite and our most important release of the last few years. On 4th, even after trying hard, we could not reach even near our goals with this theme.
I am sorry for the inconvenience. I will be happy to offer a full refund if you can not wait till 29th/30th. If you can, I can guarantee It will be something which is not present in the BuddyPress theme market currently(functionality wise) and will be a pleasant surprise.
Thank you for the patience.
Brajesh
- Brajesh Singh on September 14, 2019 at 8:22 pm in reply to: [Resolved] WordPress Question – Sorting Users #25308
Thank you. I do keep looking for interesting plugins 🙂
- Brajesh Singh on September 14, 2019 at 8:09 pm in reply to: [Resolved] WordPress Question – Sorting Users #25306
Hi Mike,
Thank you for the question.There are two plugin available which allow you list by registration date(ascending and descending both).
You may use
https://wordpress.org/plugins/recently-registered/
or
https://wordpress.org/plugins/users-by-date-registered/Both work great.
Regards
BRajesh - Brajesh Singh on September 13, 2019 at 7:32 am in reply to: Uploading Pic on Activity not working anymore #25301
Hi Daniel,
Thank you for the patience. I had a look today.You are not using MediaPress. It is some other plugin(buddy kit?). Please contact the relevant author.
Regards
Brajesh