Replies
- Ravi on November 26, 2021 at 6:34 am in reply to: [Resolved] Add Private Message button to Profile Pages #41748
Hello Princy,
Thank you for the acknowledgment. But I can not help you much with this. As it is beyond our forum support.
Regards
Ravi Hello Kiki,
Sorry for the inconvenience and thank you for reporting the bug. I will check it by the day end and will update you.
Regards
RaviHello Nick,
Please take a following code as a reference for your requiement. Just create a shortcode that will render content based on group actions like wiki, qa
add_shortcode( 'buddydev-tab-content', function ( $atts ) { if ( ! bp_is_group() ) { return ''; } $action = bp_action_variable( 0 ); if ( empty( $action ) ) { return ''; } $wiki_forum_id = 1; $qa_forum_id = 2; $shortcode = ''; // Slug should with your tab slug. if ( 'wiki' == $action ) { $shortcode = "[bbp-single-forum id={$wiki_forum_id}]"; } elseif ( 'qa' == $action ) { $shortcode = "[bbp-single-forum id={$qa_forum_id}]"; } ob_start(); echo do_shortcode( $shortcode ); return ob_get_clean(); } );
Please let me know if it helps you or not.
Regards
Ravi- Ravi on November 24, 2021 at 5:44 am in reply to: [Resolved] Add Private Message button to Profile Pages #41704
Hello Princy,
As seems Sub navigation item is marked hidden by the theme author. Please contact the Theme author and ask if there is any theme setting to enable Member’s secondary nav items.
Or use the following CSS rule:
.buddypress-wrap .bp-subnavs { display: block; }
Regards
Ravi Hello Emon,
Thank you for posting here. Please check the following document for fetching activity:
https://developer.buddypress.org/bp-rest-api/reference/activity/
Look for arguments: scope and group_id
You can fetch activities based on these arguments values.
Regards
Ravi- Ravi on November 23, 2021 at 9:09 am in reply to: [Resolved] Add Private Message button to Profile Pages #41691
Hello Princy,
Thank you for Marking this topic resolved.
Regards
Ravi- This reply was modified 3 years, 8 months ago by
Ravi.
- This reply was modified 3 years, 8 months ago by
Hello Michael,
Sorry for the inconvenience and Thank you for sharing the details. Please share the error you are getting so that we can help.
Regards
RaviHello Philip,
Sorry for the inconvenience. Please let me know the following things:
1. Are you using BuddyPress or BuddyBoss Platform?.
2. If BuddyPress, Which theme you are using.Regards
Ravi- Ravi on November 22, 2021 at 11:20 am in reply to: [Resolved] Add Private Message button to Profile Pages #41681
Hello Princy,
For me it is working fine. Please look at the markup weather button have text or not. Also, make sure any CSS rule not hiding this button text.
https://www.awesomescreenshot.com/image/17170180?key=8f013c35d7d5ae8411141d5633f160e7
Regards
Ravi - Ravi on November 22, 2021 at 10:18 am in reply to: [Resolved] Add Private Message button to Profile Pages #41679
Hello Princy,
Yes, you can add there. I have tried the following code please look at it and let me know if helps or not.
add_action( 'bp_member_header_actions', function () { echo do_shortcode( '[bp_better_messages_pm_button text="Message" target="_self" class="extra-class" fast_start="0"]' ); } );
Regards
Ravi