What you’re asking for is something we used to call “Multiblog Mode” back in the day. It’s not a popular configuration, because it’s usually pretty confusing to users.
You can enable it a few different ways:
define( 'BP_ENABLE_MULTIBLOG', true ); in your wp-config.php
add_filter( 'bp_is_multiblog_mode', '__return_true' ); in an mu-plugin
There’s not a ton of documentation about multiblog, but it will make BuddyPress behave like you’re looking for it to.
Hi!
So i have a multiste, where my secondary theme is a dedicated buddypresstheme. My problem is that buddy press segregates from the two themes. I have buddy press as a regular plugin on my main site, network activated, and my theme already have it integrated, what i can understand.
If i make a post on my main site, it shows up on my secondary theme´s activity wall, just like it should. But if i click on the username, it takes me to the main sites buddypress. Same with the admin toolbar, if I’m on my main theme, the toolbar links gets me to the main sites buddy press, and if I’m on my secondary, the links works like they should.
So how do i integrate the themes and buddypress? If a deactivate buddy press on my main site, new post from there won’t show up in the activity stream on the buddy press theme.
thankful for any help!
WP 3.8.2
buddy press Version 2.0-beta1
Theme parabola by cryoutcreations. running as child theme
S2member pro.
Problems:
1. profiles/activity can be accessed directly by pointing a browser to the profile page
example: http://www.leathertowne.com/members-2/Sylvia/profile/ (yes that’s my baby picture)
I would like to stop random access of this. I need to know how to also stop the use of Parabola’s “default” page with right column. I believe Buddy press just uses default… but how to stop?
I believe the above doesn’t work correctly because I am adding the new content as a subnav which by default tried to inherit the parent template (correct me if I’m wrong).
Here is what I came up with (this all goes in functions.php), it still needs fine tuning and testing (for example I broke pagination and commenting):
function my_test_setup_nav() {
global $bp;
$parent_slug = 'wall';
$child_slug = 'all';
//name, slug, screen, position, default subnav
bp_core_new_nav_item( array( 'name' => __( 'test' ), 'slug' => $parent_slug, 'screen_function' => 'my_profile_page_function_to_show_screen', 'position' => 40, 'default_subnav_slug' => 'test_sub' ) );
}
function my_profile_page_function_to_show_screen() {
//add title and content here - last is to call the members plugin.php template
add_action( 'bp_template_title', 'my_profile_page_function_to_show_screen_title' );
add_action( 'bp_template_content', 'my_profile_page_function_to_show_screen_content' );
bp_core_load_template( apply_filters( 'bp_core_template_plugin', 'members/single/plugins' ) );
}
function my_profile_page_function_to_show_screen_title() {
echo 'something';
}
function my_profile_page_function_to_show_screen_content() {
global $activities_template;
$personal_activites = array();
$friends_activites = array();
$group_activites = array();
//Get friends Loop
do_action( 'bp_before_activity_loop' );
if ( bp_has_activities( bp_ajax_querystring( 'activity' )."&scope=friends") ) :
$friends_activites = $activities_template->activities;
endif;
do_action( 'bp_after_activity_loop' );
//Get personal Loop
do_action( 'bp_before_activity_loop' );
if ( bp_has_activities( bp_ajax_querystring( 'activity' )."&scope=just-me") ) :
$personal_activites = $activities_template->activities;
endif;
do_action( 'bp_after_activity_loop' );
//Get groups Loop
do_action( 'bp_before_activity_loop' );
if ( bp_has_activities( bp_ajax_querystring( 'activity' )."&scope=groups") ) :
$group_activites = $activities_template->activities;
endif;
do_action( 'bp_after_activity_loop' );
do_action( 'bp_before_member_activity_post_form' );
bp_get_template_part( 'activity/post-form' );
do_action( 'bp_after_member_activity_post_form' );
$activities_template->activities = array_merge($personal_activites,$group_activites,$friends_activites);
quickSort( $activities_template->activities );
?>
<?php do_action( 'bp_before_activity_loop' ); ?>
<?php /* Show pagination if JS is not enabled, since the "Load More" link will do nothing */ ?>
<noscript>
<div class="pagination">
<div class="pag-count"><?php bp_activity_pagination_count(); ?></div>
<div class="pagination-links"><?php bp_activity_pagination_links(); ?></div>
</div>
</noscript>
<?php if ( empty( $_POST['page'] ) ) : ?>
<ul id="activity-stream" class="activity-list item-list">
<?php endif; ?>
<?php while ( bp_activities() ) : bp_the_activity(); ?>
<?php bp_get_template_part( 'activity/entry' ); ?>
<?php endwhile; ?>
<?php if ( bp_activity_has_more_items() ) : ?>
<li class="load-more">
<a href="#more"><?php _e( 'Load More', 'buddypress' ); ?></a>
</li>
<?php endif; ?>
<?php if ( empty( $_POST['page'] ) ) : ?>
</ul>
<?php endif; ?>
<?php do_action( 'bp_after_activity_loop' ); ?>
<form action="" name="activity-loop-form" id="activity-loop-form" method="post">
<?php wp_nonce_field( 'activity_filter', '_wpnonce_activity_filter' ); ?>
</form>
<?php
}
add_action( 'bp_setup_nav', 'my_test_setup_nav' );
// Non-recurive Quicksort for an array of Person objects
// adapted from http://www.algorithmist.com/index.php/Quicksort_non-recursive.php
function quickSort( &$array )
{
$cur = 1;
$stack[1]['l'] = 0;
$stack[1]['r'] = count($array)-1;
do{
$l = $stack[$cur]['l'];
$r = $stack[$cur]['r'];
$cur--;
do{
$i = $l;
$j = $r;
$tmp = $array[(int)( ($l+$r)/2 )];
// partion the array in two parts.
// left from $tmp are with smaller values,
// right from $tmp are with bigger ones
do{
while( strtotime($array[$i]->date_recorded) > strtotime($tmp->date_recorded) )
$i++;
while( strtotime($tmp->date_recorded) > strtotime($array[$j]->date_recorded) )
$j--;
// swap elements from the two sides
if( $i <= $j){
$w = $array[$i];
$array[$i] = $array[$j];
$array[$j] = $w;
$i++;
$j--;
}
}while( $i <= $j );
if( $i < $r ){
$cur++;
$stack[$cur]['l'] = $i;
$stack[$cur]['r'] = $r;
}
$r = $j;
}while( $l < $r );
}while( $cur != 0 );
}
I’m sure there is a more elegant and seamless way to do it, and I will try to figure out exactly what that is. I’ll probably end up making templates for this to try and have cleaner code and stop the ajax bugs I created.
But for now, congratulations, you now have an aggregate news feed.
I am having the exact same issue. BP 1.9.2. xProfiles seemed to be working, but now I’m getting to a blank groups page similar to other users. I have removed BuddyPress and re-added, but no fix. This has totally hosed my site. How can I get it fixed?
Thanks, John. I’ll look at those plugins ASAP. BuddyPress is great – keep up the great work!
Questions and installations like this are becoming more common, and we have a loose plan on how to include provisions for this into BuddyPress core. Right now, you’ll end up needing a few extra plugins (and a little bit of on the job education) to make both WordPress and BuddyPress play exactly the way you need them to, but rest assured that both WP and BP do have the ability baked in to manipulate where things live and how they work together.
A few plugins to investigate:
- WP Multi Network
- BP Multi Network
They’ll let you have disparate BuddyPress networks rotating around one central user-base and logins. From there, you can see how these plugins work, and tweak your integration to suit your needs.
Also happy to try and guide you further as you need more specific code snippets to solve specific problems.
(WP and BP both current/up-to-date versions, site publishelf.com, currently under a ‘Coming Soon’ plugin)
I’m really hoping this is possible. We’re using a Gravity Forms form to register users, and Buddypress on a website that will connect authors and readers. I’m looking for a way to have each type of user register with their own form, show their own profile fields, and enable interaction between the two types. Right now, I’m using conditional logic to only show relevant fields in the sign-up fields, but the Buddypress side of things show all of the fields (for both authors and readers).
What’s the best way to make this happen?
Anonymous User 7600456Inactive
Hi @tsabar,
It depends, if you are creating a new site then you may as well get stuck straight in with BuddyPress 2.0 but if your site is being used by lots of users already you should probably stick with 1.9.2 which has been very thoroughly tested, not only by the development team but by thousands of other users, myself included, on their own sites. That way if their are any bugs in 2.0 your users won’t have to suffer.
I hope that helps you decide.
Best,
Joseph
hi, i’m new to buddypress. i was going to install it on my site, when i noticed the v2.0 is scheduled to come out next week.
my question is, should i install now and later upgrade to 2.0, or should i wait a week and then clean install 2.0?
thanx!
ohad
Hi,
I am having the issue now on where to place it. The h1 title on the buddypress users page is the users name. I would like to add to profile field beside the users name, on the same line right beside it but i have no idea which file to add it too?
Any idea where the file is that grabs the users name and places it in the h1 title?
Thanks
Trust me… btw… if I can find a different program than BuddyPress… I will use a different program than BuddyPress with my WordPress site… because of this.
I hope there is a different program that will work well with WordPress… cuz I don’t want to use this program now.
Hi!
My wordpress is Version 3.8.2, Buddypress is Version 1.9.2.
Website address : mariebernat.fr/communaute – it’s a sub-directory.
I am trying to get the whole “communaute” site invisible, with only a sign-up page with a facebook, wordpress.com and “create a new account” buttons.
It will be a “free membership” and a “member’s only” site.
I tried with “networdk privacy” but it’s not always working and doesn’t have different sign in buttons.
I want everything, menus included, to be invisible – and I can’t get that with the membership plug-ins that I’ve tried so far.
Do you have a suggestion?
Thanks a lot!
Hi,
I am fairly new to buddypress and cannot seem to figure out what I am doing wrong.
(I also tried the search but it didn´t help that much as I am not much of a programmer)
I have a website with a restricted area. It runs buddypress with extended profiles.
It is not possible for new users to register themselves, adding users should only be done by an administrator. (company reasons)
but, when I try to add a new user using the dashboard, I dont get access to the extended fields I added.
When I click into an existing user via the dashboard, I also don´t see those extended fields.
they do however show up when the user logs into the site himself.
what am I missing ?
thanks in advance.
regards,
LD
Hi,
I am fairly new to buddypress and cannot seem to figure out what I am doing wrong.
(I also tried the search but it didn´t help that much as I am not much of a programmer)
I have a website with a restricted area. It runs buddypress with extended profiles.
It is not possible for new users to register themselves, adding users should only be done by an administrator. (company reasons)
but, when I try to add a new user using the dashboard, I dont get access to the extended fields I added.
When I click into an existing user via the dashboard, I also don´t see those extended fields.
they do however show up when the user logs into the site himself.
what am I missing ?
thanks in advance.
regards,
LD
I’m having the exact same issue. Change avatar works perfectly, as does just viewing the profile. However if I click edit, then I get redirected to a non profile page (in my case I have a page “editorial” that I get directed to instead of the group/1, but I had that behavior at one point when I re-wrote all the rules to use “change-profile” instead of “edit” as the action.)
I have found that if I uncheck the Extended Profiles component from the BuddyPress setup, then it works just fine. So it’s definitely related to xprofiles.
I’m running 3.8.2 and 1.9.2.
Very interested to see if there is a fix to this one. For now I’ve disabled the xprofile component so the users of this site can update their profiles at least.
Buddypress Wall sort of works, but it is riddled with bugs and the developer seems to be mia. That is to say, I don’t mean to knock the plugin; it is a good plugin but needs some bug fixes is all.
I would deactivate and delete BuddyPress and then re download it and install. Deleting it doesn’t delete settings. Make sure all your BuddyPress plugins are deactivated first.
Having the site installed in a subfolder may be an issue as well.
I deactivated all the plugins, except BuddyPress. Still the same.
BuddyPress plugin supplies the template files UNLESS the theme has included them. Only BuddyPress specific themes would include the files. That’s why I asked you to switch to Twenty Twelve so it would use the files from the BP plug folder.
It may be a plugin causing issue. You can deactivate plugins one by one and test each.