Replies
- Brajesh Singh on April 8, 2019 at 6:51 am in reply to: [Resolved] BP Ajax Registration – Overriding modal styles from theme #22085
Hi Diana,
Thank you for the reply.
yes, you are right about it.We need to maintain the same hierarchy as in the plugin.
PS:- Thank you for the email.
Best regards
Brajesh - Brajesh Singh on April 8, 2019 at 6:50 am in reply to: [Resolved] hiding users by id, not just admins #22083
Hi Kristian,
Thank you for teh question.Please change this line
$new_excluded = array_merge( $excluded, $user_ids );to
$other_ids = array( 1,2,3,4,5); //update it with correct ids $new_excluded = array_merge( $excluded, $user_ids, $other_ids );That should do it.
Regards
Brajesh - Brajesh Singh on April 8, 2019 at 6:49 am in reply to: [Resolved] How to get the avatar associated with a member type? #22082
Hi Timothy,
At the moment, we don’t have an API for retrieving the Avatar URL for member type. It is an isolated module.There is a way to get the avatar url efficiently(there are other option but that does not uses proper caching).
I wrote a custom function that you may use
/** * Get avatar associated with a member type. * * @param string $member_type member type. * @param string $thumb_type thumbnail type(thumb|full). * * @return string */ function mtp_custom_get_avatar_url( $member_type, $thumb_type = 'thumb' ) { $mtp_object = bpmtp_get_member_type_entry( $member_type ); if ( ! $mtp_object ) { return ''; } $post_id = $mtp_object->post_id; if ( ! $post_id ) { return ''; } $avatar_url = ''; switch ( $thumb_type ) { case 'thumb': $avatar_url = get_post_meta( $post_id, '_bp_member_type_associated_avatar_thumb_url', true ); break; case 'full': $avatar_url = get_post_meta( $post_id, '_bp_member_type_associated_avatar_full_url', true ); break; } return $avatar_url; }Once you have put it in your theme’s functions.php or bp-custom.php in wp-content/plugins. you can use it to get the url of the avatar image.
Hope that helps.
Regards
Brajesh- This reply was modified 6 years, 10 months ago by
Brajesh Singh. Reason: Code updated
- This reply was modified 6 years, 10 months ago by
- Brajesh Singh on April 7, 2019 at 6:46 pm in reply to: [Resolved] Plugin or snippet for limit the number Go #22071This reply has been marked as private.
- Brajesh Singh on April 7, 2019 at 6:46 pm in reply to: [Resolved] BuddyPress User Profile Tabs Creator Pro – Modifying Profile Menu Items #22070
Hi Mic,
Thank you.I am glad you found that option 🙂
The Content is the actual content shown on the tab page. It is used in case you add a new Tab or add a new sub tab. When you visit that sub tab, the content is shown.
If a plugin allows passing user id in the shortcode, you can use their shortcode to show displayed user specific content on the profile tab.
Hope that clarifies.
Regards
Brajesh - Brajesh Singh on April 7, 2019 at 6:39 pm in reply to: [Resolved] User Profile Tabs Creator – Tab Visibility – Multiple Options Not Working #22067
Hi Mic,
I am sorry I could not test it earlier. Will do on Monday(tomorrow) and post an update.Regards
Brajesh - Brajesh Singh on April 7, 2019 at 6:38 pm in reply to: [Resolved] FEATURE IDEA – Limit Groups Per User – Redirect after #22066This reply has been marked as private.
- Brajesh Singh on April 7, 2019 at 6:36 pm in reply to: [Resolved] BP Multi Network (need some advice, please.) #22064
Hi Rick,
I am sorry, we have been unable to reply in time on forum due to office move and have been trying to resolve most issues last week.About your issue:- There is a solution if the users are being registered on sub sites and not on the main site. In order to add a user to a specific sub site, we need to know if they registered on it or not. If they are registering on the main site, we can not automate(if we do, all new users will be added to the main site).
If you are letting users register on sub sites(the registration form is on the sub site), then we may have an option. We can
user_registerand add user to the current sub site.
Regards
Brajesh - Brajesh Singh on April 7, 2019 at 6:30 pm in reply to: [Resolved] BP Ajax Registration – Overriding modal styles from theme #22063
Hi Diana,
Thank you for the kind words.1. Please remove the enqueue statement.
2. Please name your css file ‘bpajaxr-style.css’ and put it in your
M:\Ampps\www\wp\wp-content\themes\customizr-child\bpajaxr\default\assets\We need to create an assets directory inside the bpajaxr/default and put the css file there.
It will be loaded automatically and the original style won’t be loaded.
I am looking forward to see your implementation 🙂
Regards
Brajesh - Brajesh Singh on April 7, 2019 at 6:26 pm in reply to: [Resolved] BuddyPress User Profile Tabs Creator Pro – Modifying Profile Menu Items #22062
Hi Mic,
My apologies for the inconvenience.Limitations:- You can not reorder menu items in the adminbar without code currently. That is a limitation I won’t be able to fix in the right way unless WordPress adds support for positioned adminbar nav items.
I did test other things:-
1. You can add admin bar menu item correctly with current plugin. Please make sure you have enable add to admin bar option and have provided admin bar item id.2. For changing label/link of existing tabs in adminbar:- This is not available in current version but it is easily doable. I will post an updat on Monday or latest by Tuesday with it.
I can gladly post a video to assist you adding menu to the adminbar if needed.
Regards
Brajesh