Hi, I would like to add content based from the ‘/activity/’ url into the ‘News Feed’ new menu. How can I achieve it. Thank you..
function news_feed_nav() {
global $bp;
bp_core_new_nav_item( array(
'name' => __( 'News Feed', 'buddypress' ),
'slug' => 'news-feed',
'position' => 100,
'screen_function' => 'news_feed_link',
'show_for_displayed_user' => true,
'default_subnav_slug' => 'news-feed',
'item_css_id' => 'news-feed'
) );
}
add_action( 'bp_setup_nav', 'news_feed_nav', 1000 );
function news_feed_title() {
echo 'News Feed';
}
function news_feed_content() {
echo "Add something";
}
function news_feed_link () {
add_action( 'bp_template_title', 'news_feed_title' );
add_action( 'bp_template_content', 'news_feed_content' );
bp_core_load_template( apply_filters( 'bp_core_template_plugin', 'members/single/plugins' ) );
}
Hi Prashant, thank you so much for your reply but I’m a tech noob and I’ve gone through the entire article but couldn’t quite understand it..
If it’s not too much trouble, is it possible for you to list out the steps to perform this? I run a multisite installation and I intend to make my BuddyPress network wide but registration, login etc will be done on the main site.
What I’ve done is separate my site into parts and each part is one subsite. So all the subsites in my network add up to form one single website. I hope I’m not confusing you…
I’m trying to figure out how to add a custom Buddy Form to a different user’s profile. Either post it to it after filling it out, or filling it out right on their profile (maybe as a “public message”).
I’m basically trying to make a site where you can review another members performance, and the custom form is what people use to fill out the review.
I’m using the latest version of Buddyform Members (premium), Buddypress, and WordPress.
Thanks!
Ok, so what I am doing is that I am navigating you to the file where it is coded and I guess it can only be commented in the plugin code itself and we can not remove it by the hook.
File: https://github.com/WPPlugins/activity-reactions-for-buddypress/blob/master/class/class.php
on line 1044 and 1062
If it does not help then there are two filters on line 1165 and 1165, we can try removing them also.
Thanks
This is a bug. I’m getting this error when I deactivate the activity component from the settings. I have submitted a ticket here
You can try enqueuing that with the conditional tag like:
function ps_buddypress_js_load(){
if(is_home()){
wp_register_script('buddypress', plugins_url( '/buddypress/bp-templates/bp-legacy/js/buddypress.js' , 'buddypress' ) );
wp_enqueue_script('buddypress');
}
}
add_action('wp_enqueue_scripts', 'ps_buddypress_js_load');
If you are using the nouveau template then can change the path accordingly.
Thanks
That’s not a default BuddyPress feature. You can try this plugin https://buddydev.com/plugins/bp-notify-post-author-blog-comment/ to see if it works fine for you.
Thanks
This is not the solution I am looking for. Let me explain what I clearly needs.
I have an existing WordPress website with a few posts. I have installed BuddyPress plugin. Now let’s assume I have two users A and B registered in the website and consider a post with Title “Hello All”
1. User A made a comment on the post “Hello All”
2. User B made a reply comment to the User A’s comment
it is expected to show a notification on User A profile under notification tab on site such us User B replied to your comment. Unfortunately this is not happening on the website. To cross check whether it is a theme issue, I have changed the theme to default themes of WordPress and notification is not yet showing. Please help. Looking forward to an immediate response.
Here is the website URL https://beanstalkminds.com/
Thanks for the reply Shane.
From what I understand this can only work using the multi-site feature? So if I had 2 different installations of WordPress for each website and wanted to have the BuddyPress accounts shared between the two websites – it would not work?
no, I know how to add the add-friend button but do I need to include the buddypress js somewhere to make it works with ajax? thanks
Seems like your theme is not compatible with BuddyPress. If you can check with the default theme, you will see that it works fine.
It is always included as a parent page in BuddyPress. It’s having it’s own functionality that’s why it is an individual page. You should not make that child page of registration.
Thanks
I am not sure if you are creating blog posts or activity. BuddyPress sends notification for these updates https://codex.buddypress.org/administrator-guide/notifications/
If it is a blog post then you have to go with this code to get notification https://wordpress.stackexchange.com/questions/263950/new-post-notifications-for-users-buddypress
Please check this link https://gschoppe.com/wordpress/buddypress-auto-pad-avatars/
If this can help, it will be great.
Thanks
Hi,
Please check this link https://codex.buddypress.org/getting-started/buddypress-links-in-wordpress-menus/
You can easily get BuddyPress menus on your site.
Thanks
Please check if there is any plugin conflicting with BuddyPress or any code written in your child theme that can break the process.
Thanks
You can override buddypress templates and even can change the registration to be happened with ninja form only but edit profile section can not be created with ninja form. Please see:
Theme Compatibility & Template Files
Thanks
Hi,
If you do not want to use plugins then I will suggest to write a new one for yourself. You can take references from all those shortcode plugins.
If you don’t want to write shortcodes then please check this thread https://buddypress.org/support/topic/how-to-make-my-buddypress-widgets-only-show-on-specific-pages/
You can add them in a specific sidebar and then can call them on your specific pages only.
There is a plugin also named Restrict Widgets that lets you choose on which page you want to show widgets.
Thanks
It’s because the js code is written to work with buddypress pages. Still you can take references from here https://stackoverflow.com/questions/14491524/adding-add-friend-button-anywhere-in-the-buddypress-site
And see if this of any help or not.
Thanks
I’m not familiar with RCP.
And multisite can get complicated.
But BuddyPress is free, so you can experiment.
You may want to network-activate BP, as opposed to installing it on both sites.
Hello, I intend to use RCP with multi site activated – users sign up to one site and the their sign up grants them access to my other website, as well.
Now my question is – if I use this multi site feature with RCP will users have the same user profiles across both sites? I will have BuddyPress installed on both websites.
https://docs.restrictcontentpro.com/article/1584-using-restrict-content-pro-with-wordpress-multisite
Thanks for reviewing my post. Hopefully I can make this work and join in with BuddyPress users
Hi there,
This doesn’t work for me. I’m building a theme from scratch and I think it’s just ’cause I haven’t included something. Do you know what that might be? Does a separate theme need to call something from the BuddyPress plugin?