Is this the only part where you can’t access ?
Ensure you followed correctly all install instructions
Installation in WordPress Multisite
BuddyPress does not work on installations where you give WordPress its own directory.
THANK GOD, I FINALLY GOT IT!!!
I’m going to share what I did with the community so they dont have to go through the crap I went though.
The directions that buddydev.com gives you is dated and didnt work with my theme. Since my theme did not have a activity.php I had to change out the file located in buddypress plugin ….
/plugins/buddypress/bp-templates/bp-legacy/buddypress/members/single/activity.php
inside that file go to line 48 should be something like this
if ( is_user_logged_in() && bp_is_my_profile() && ( !bp_current_action() || bp_is_current_action( ‘just-me’ ) ) )
ALL I CHANGED WAS THAT LINE OF CODE ABOVE TO THIS
if ( is_user_logged_in() && bp_is_my_profile() && ( ” == bp_current_action() || ‘just-me’ == bp_current_action()||BPCOM_ACTIVITY_SLUG == bp_current_action() ) )
IF YOU USE ANY OF THE CODE FROM BUDDYDEV SITE http://buddydev.com/buddypress/show-buddypress-communitysitewide-activity-on-user-profile/#comment-1497563 WITH ALL THE <?PHP BREAKS. IT WILL NOT WORK.
NOTE: For some reason when I tried to add this file to my theme folder, it broke my Activity stream, I didnt design the theme so I have no clue why it would be doing that. So if you add this to the buddypress plugin you will have to replace that file everytime you update buddypress.
HOPE THIS HELPS, THIS TOOK ME A BETTER PART OF A DAY ALMOST 2 DAYS TO ADD A POST FORM FOR THE ALL ACTIVITY IN PROFILE ON THE BOSS THEME. I HOPE IT HELPS THE COMMUNITY NOT HAVE THE FRUSTRATIONS I DID
PLEASE SHOW ME SOME LOVE AND SHARE MY WEBSITE ON YOUR BLOG OR COMMENT ON MY SITE.
http://www.modeltmedia.com
http://www.industrycallsheet.com
after I updated to the latest buddypress I have over 4 plugins throwing this error. I opened tickets to all plugin developers but they are taking their sweet time getting back to me.
Can someone explain to me what code I have to change to fix this error? what strings of code am I searching for and what do I need to replace it with? Any help would be greatly appreciated. Of course they are on plugins that have great functionality like
Buddyboss Global Search (really important and useful, I would like to have this working asap)
BP You are Blocked
Buddypress Edit activity
ERROR bp_setup_current_user was called incorrectly. The current user is being initialized without using $wp->init()
Never mind I used this css coding to add line breaks, still not perfect but it looks so much better than it used to!
#buddypress table.profile-fields p {
margin-top: 10px !important;
margin-bottom: 10px !important;
}
Thanks Henry and Mercime, yes I updated the Trac Ticket. Would you guys know of a css quick fix until they update the core of buddypress?
You found the right solutions, but you haven’t to use them in theme’s functions.php but in the template.
Template files are stored in bp-templates/bp-legacy/buddypress
activity-loop.php is in bp-templates/bp-legacy/buddypress/activity/
Create a child-theme and do your changes from there.
Theme Compatibility & Template Files
Template Hierarchy
Hi
I’m trying to filter the activity stream and I’ve found the solution but I don’t know where to place these codes. http://premium.wpmudev.org/blog/how-to-customize-the-buddypress-activity-loop/
and
http://codex.buddypress.org/developer/developer-docs/loops-reference/the-activity-stream-loop/
I added those codes to my theme’s functions.php but I get this error:
Call to undefined function bp_has_activities()
@serfma They posted a walk-through about setting up BuddyPress last year using the Divi 2.0 theme at http://www.elegantthemes.com/blog/tips-tricks/an-introduction-to-buddypress Check with them though if current Divi version is compatible with latest BuddyPress version.
There is a ticket about this issue. See if you’re concerned and don’t hesitate to mention your issue and this topic.
You can login to Trac with same credentials as here
Right. So it looks as though it could be something the BuddyPress core team might need to look at. Can you open a Trac ticket explaining how the profile fields are displaying in the wrong order? If you could provide as much info as you can that’d be great.
You can use the same username and password as you use here in the forums.
Hey Henry yup it even happens on the 2015 theme. I recently updated to buddypress 2.3.2 .. I also deactivated every plugin I had. its something in buddypress mobile coding they added in 2.3.
Hi guys,
I want to know how can i set the post setting in the site wide activity? For example, I post something and only my friend can see my post. But now i facing is everytime i post, everyone can see my post even they are no my friend they still can see.
The activity post form that is displayed on the site-wide activity page can be found here. You could use a modified version of that in your profile template?
You could use bp-custom.php for this if a hook is available but an alternative method would be to override the template. Check out the BuddyPress Template Hierarchy article for more info. This approach gives you more control over what exactly is to be displayed on your website.
This can be accomplished using BuddyPress. As to whether you’ll need plugins or custom code, I’d be tempted to say you’ll need to go down the custom route because I haven’t seen a plugin that will do this for you (I may be wrong so check the Plugin Directory first).
@danbp, I have an issue..
I have “Most Agreed” option in single group page. but the query is not returning desired value.
can you look into this?
Here’s the Screenshot

and Here’s the code
if( class_exists( 'BP_Group_Extension' ) ) :
class bpgmq_feature_group {
public function __construct() {
$this->setup_hooks();
}
private function setup_hooks() {
$bp = buddypress();
add_filter( 'bp_ajax_querystring', 'custom_filter_ajax_querystring' , 999, 2 );
// you need to do it for the group directory
add_action( 'bp_group_activity_filter_options', array( $this, 'agreed_option' ) );
}
public function agreed_option() {
?>
<option value="featured"><?php _e( 'Most Agreed' ); ?></option>
<?php
}
}
function custom_filter_ajax_querystring( $querystring, $object ) {
#var_dump($querystring);
if($object != 'activity' )
return $querystring;
$defaults = array('type'=>'active','action'=> 'active','scope'=> 'all','page'=>1,'order'=>'DESC');
#exit;
/*if( $bpgmq_querystring['type'] != 'featured' )
return $querystring;*/
$bpgmq_querystring = wp_parse_args( $querystring, $defaults );
if( $bpgmq_querystring['type'] == 'featured' ){
$bpgmq_querystring['meta_query'] = array(array('key'=> 'favorite_count','value'=> 1,'type'=> 'numeric','compare' => '>='));
return apply_filters( 'bpgmq_filter_ajax_querystring', $bpgmq_querystring, $querystring );
}
var_dump($querystring);
}
function bpgmq_agreed_group() {
if( bp_is_active( 'activity') )
return new bpgmq_feature_group();
}
add_action( 'bp_init', 'bpgmq_agreed_group' );
endif;
Thanx in Advance
wp 4.2.2
bp 2.3.2.1
I need to remove open registration (by any user) on buddypress, since all users will be manually registered by an admin user, I have been searching about it but havent found solutions.
Any help will be appreciated, thank you
Alex
Hi guys
Im building a social networking site and im looking for people to also have their company’s profile and also categorize these companies so you can search them by category.
Then anybody can make a request for a service that they need, for example, “social media managment” and if there’s a company with that category it notifys this company/person
Can thise be accomplished by Buddypress + extra plugins? Or does this need to be a custom job?
Hey Danbp,
Thank you for the quick responses and all your help. I tried playing around with your way but I’m not advanced enough for working with hooks and custom coding just yet.
I did find an easier work around that I just pasted into my bp-custom.php and it did the trick. But for other members trying to do this, you need to have the plugin http://buddydev.com/buddypress/show-buddypress-communitysitewide-activity-on-user-profile/ for this to work.
function bp_change_activity_subnav_default() {
if ( bp_is_user_activity() ) {
$args = array(
'parent_slug' => 'activity',
'subnav_slug' => 'all-activity'
);
bp_core_new_nav_default($args);
}
}
add_action('bp_setup_nav', 'bp_change_activity_subnav_default', 5);
I understand you guys aren’t getting paid for your services but now i’m just struggling on adding a “whats new” post form to the all activity page. Buddy dev had some directions on how to add it but I think its dated cause I couldn’t find the code that we needed to switch out. Is there a simple way to add a whats new post form to the all activity page? It would be awesome if it was simple enough to paste it into bp-custom.php.
Thanks again for everything you guys are great!
Can anyone help with this?
When I send an email through BuddyPress (i.e. send a private message to another user) various non-alphabet characters appear as code numbers or escape sequences. & appears as & etc.
With the plugin Log Emails installed it logs the email correctly without the escapes, yet the delivered email has the escape sequences.
If I send from a WordPress part of the site (not from BuddyPress) then all is well, so this seems specific to emails sent from the BuddyPress part.
I have tried deactivating all plugins apart from BuddyPress and also switched to the theme 2010 – no better.
In my config.php file I have
define(‘DB_CHARSET’, ‘utf8’);
Any suggestions, please?
WP 4.2.2
BuddyPress 2.3.2.1
bbPress 2.5.7
I have never used kendo, so i can’t help you about how it works, or not, with BuddyPress or with your theme.
But you can deregister a script or add more scripts into the theme…
Read here if it inspires you:
http://wordpress.stackexchange.com/questions/152559/wordpress-script-loading-unloading-wp-deregister-scriptjquery
Shane, thank you for your reply.
My code now looks like this:
<?php
/**
* Template Name: Spanish
*/
get_header(); ?>
<?php get_template_part('page-parts/general-title-section'); ?>
<?php get_template_part('page-parts/general-before-wrap'); ?>
<?php $members = my_custom_ids( 'country', 'Spain' ); ?>
<?php
$query = new WP_Query( array( 'author__in' => $members ) );
if ($query->have_posts()) :
// Start the Loop.
query_posts($query);
while ($query->have_posts() ) : $query->the_post();
/*
* Include the post format-specific template for the content. If you want to
* use this in a child theme, then include a file called called content-___.php
* (where ___ is the post format) and that will be used instead.
*/
get_template_part( 'page-parts/post-content-small' );
get_template_part( 'page-parts/posts-social-share' );
?>
<?php if ( sq_option( 'page_comments', 0 ) == 1 ): ?>
<!-- Begin Comments -->
<?php comments_template( '', true ); ?>
<!-- End Comments -->
<?php endif; ?>
<?php
endwhile;
endif;
?>
<?php wp_reset_postdata()?>
<?php get_template_part('page-parts/general-after-wrap'); ?>
<?php get_footer(); ?>
When I tried doing it with only my_custom_ids I suddenly get nothing displayed at all. Now even when I try the example code from members_loop in codex I get an error like this:
Warning: Creating default object from empty value in C:\xampp2\htdocs\wp-content\plugins\buddypress\bp-members\bp-members-template.php on line 627
Viewing 1 – 0 of 0 members
Fatal error: Call to undefined method stdClass::members() in C:\xampp2\htdocs\wp-content\plugins\buddypress\bp-members\bp-members-template.php on line 609
Sorry for prolonging this topic, this is the last feature I need to add and I thought it’d be easier.
Thank you for your help
Best
David