Replies
- Brajesh Singh on September 22, 2022 at 10:44 am in reply to: [Resolved] Create a tab (nav_item) that can display custom post type items of user. #46611
Hi Lefteris,
Thank you for the replies.
I had a look.You can update your function tot his to limit to certain roles.
function mb_bp_profile_menu_radio_shows() { if ( ! bp_is_user() ) { return; } $user = get_user_by( 'id', bp_displayed_user_id() ); if ( ! array_intersect( $user->roles, array( 'editor', 'administrator', 'author' ) ) ) { return; } bp_core_new_nav_item( array( 'name' => 'ΕΚΠΟΜΠΕΣ', 'slug' => 'shows', 'position' => 30, 'default_subnav_slug' => 'shows', 'screen_function' => 'producer_shows', ) ); }For cleaning up the second part, I will suggest using get_template_part to load content from your theme/child theme.
Here, i have loaded the file producer-content.php from theme(you can change as you please)
function producer_shows_content_screen() { get_template_part( 'producer-content' ); // loads producer-conten.php from theme. }and you can put the markup there in this template file.
Hope that helps.
Regards
Brajesh Hi David,
Thank you for the reply.
The plugins will be compatible with 8.0, 8.1 both.Regards
Brajesh- Brajesh Singh on September 22, 2022 at 9:04 am in reply to: Moderation Tools: Error When Trying to Make a Report #46608
Hi,
I am sorry for the issue. The only reason this may happen is when the database save fails.1. is the table prefix same as your other tables?
2. Which version of PHP and MySQL are you using(You can check it from site health).Please share the details and I will assist.
Regards
Brajesh Hi David,
Thank you for bringing it.We are in the process of testing our plugins with PHP 8.1. we will have a blog post about the same by end of this month.
Regards
Brajesh- Brajesh Singh on September 20, 2022 at 12:52 pm in reply to: [Resolved] Group Tabs Pro: Can I Hide a BuddyBoss Sub-Tab #46600
Hi Dianne,
Thank you for the patience.
I had a look and I see that our plugin does not have the ability to remove sub tabs from group currently.
At the time we had developed this plugin, there were no front end sub tabs for groups. We will ad dthe ability to remove sub tabs in near future.For the time being, if you need, I can share the code for the same. Though I see that this is going to be problemetic as the screen callback attached for the “send group Message” and “send private message” sub tabs and removing one will be breaking other unless we re-add that.
Regards
Brajesh - Brajesh Singh on September 20, 2022 at 11:46 am in reply to: BuddyBlog Pro – BuddyBoss – Ability to link and restrict a post to a group #46599
Thank you.
- Brajesh Singh on September 20, 2022 at 11:45 am in reply to: [Resolved] BuddyBlog Pro Media Uploader and Article Images #46598
Thank you Cristi.
Regards
Brajesh - Brajesh Singh on September 20, 2022 at 11:45 am in reply to: [Resolved] [x] icon to delete subscriptions #46597
Hi Mike,
You are welcome.It seems someone had reported it earlier on bbPress trac and our topic was linked there too today.
https://bbpress.trac.wordpress.org/ticket/3454
Regards
Brajesh - Brajesh Singh on September 20, 2022 at 12:18 am in reply to: [Resolved] BuddyPress Auto Friendship Pro: Before Purchase Question #46588
Hi Dianne,
I am sorry, It seems that something is causing error.Please allow me to get back to you in 24 hours after testing the code again.
Regards
Brajesh - Brajesh Singh on September 20, 2022 at 12:18 am in reply to: how to add reach text field in a user profile #46587
Thank you for your reply.
Please allow me a day to think if we should really have it in the profile data control.
Regards
Brajesh