I figured it out by going through a plugin that creates groups. The bottom part of the above code can be replaced with:
$saved = $new_group -> save();
if ( $saved )
{
$id = $new_group->id;
groups_update_groupmeta( $id, 'total_member_count', 1 );
groups_update_groupmeta( $id, 'last_activity', time() );
groups_update_groupmeta( $id, 'theme’, ‘buddypress' );
groups_update_groupmeta( $id, 'stylesheet’, ‘buddypress' );
} else {
return false;
}
Hi,
Following the instructions on this blog I got the first part of creating a group in php down: http://danpolant.com/how-to-create-groups-in-buddypress-with-php/
function create_a_group() {
$new_group = new BP_Groups_Group;
$new_group->creator_id = 1;
$new_group->name = ‘test’;
$new_group->slug = ‘test’;
$new_group->description = ‘nothing’;
$new_group->news = ‘whatever’;
$new_group->status = ‘public’;
$new_group->is_invitation_only = 1;
$new_group->enable_wire = 1;
$new_group->enable_forum = 1;
$new_group->enable_photos = 1;
$new_group->photos_admin_only = 1;
$new_group->date_created = current_time(‘mysql’);
$new_group->total_member_count = 1;
$new_group->avatar_thumb = ‘some kind of path’;
$new_group->avatar_full = ‘some kind of path’;
$new_group -> save();
groups_update_groupmeta( $id, ‘total_member_count’, 1 );
groups_update_groupmeta( $id, ‘last_activity’, time() );
groups_update_groupmeta( $id, ‘theme’, ‘buddypress’ );
groups_update_groupmeta( $id, ‘stylesheet’, ‘buddypress’ );
}
I’m having trouble with the groups_update_groupmeta() function because I don’t know how to get the id ($id) of the group that was just created. The `$new_group -> save’ only returns a boolean, not the new id, as I had hoped. So how do I find $id?
@jakeyboy1989
1. Create a Network in subdirectory structure
2. Set which blog ID BuddyPress will run on: For example, your new sudirectory, /network is the first subsite you created (therefore with ID #2), then add this to your wp-config.php
`define ( ‘BP_ROOT_BLOG’, 2 );`
3. Install and activate BuddyPress. Go through Installation Wizard.
4. Install and activate https://wordpress.org/extend/plugins/threewp-broadcast/ where you broadcast posts from /network/ into main site which will have a regular WP theme. Author link, if theme dev added it per post, would link to main site’s author.php/archive.php file which will list author’s posts in main site only and will not link back to /network/ site.
Should you have any issues with ThreeWP Broadcast plugin, please post at WordPress Multisite Forums or at plugin WordPress.org
Simply put I had to disable and enable the components in the buddypress menu. everything appears to be working fine at this time.
Simply put I had to disable and enable the components in the buddypress menu. everything appears to be working fine at this time.
@mercime ,
That’s amazing ! Just working nicely ! Please take a full truck of thanks
.
Also, would you please tell me, which coding you gave me this ? Is this PHP ?
How can i learn this PHP ? I have faced a lot of problem in coding in wordpress . So, i have to learn this language. ( Is this out of rule of forum to know something beside this ? )
Again thanks for your solution.
Regards
I would avoid using WP Super Cache with BP until we get 1.6 out. Even then, I’d recommend giving page caching a miss. I think we have cache invalidation issues somewhere.
In a nutshell, if you’re on BP 1.5.x versions, you need to be on BP 1.5.5.
If you’re on BP 1.2.10 or older, you need to be on BP 1.5.5.
Hi all,
Im fairly new to buddy press/wordpress but I need some help to do the following:
– Private buddypress network built with theme A, with users as authors publishing content, with buddy press features private to registered members only, not indexed by google and other search engines, and located at progressivetalks.com/network
– Public wordpress site built with theme B, with no registered users, content (including photos) pulled from content published by authors on the buddypress site and indexed by google, etc, located at progressivetalks.com
The basic idea is that I want to provide a service where authors of my site publish content and can network amongst themselves, but this content is pushed to a public website where our readers can see the articles in a more attractive template (a magazine template from colorlabs) and can only comment on the articles.
Originally I wanted to have one site, with buddypress, and use the colorlabs template, but I am having lots of issues getting buddypress working with the template – probably something to do with the framework…
Any suggestions as to how I can achieve what I want to do?
Thanks for your help!
I don’t believe their are any specifically for BuddyPress, however any WordPress theme can be transformed into a BuddyPress theme with the BP Template pack (1) and their are afew WordPress themes around. Including AuctionPress (2), and Sitemile Auctions (3).
1. https://wordpress.org/extend/plugins/bp-template-pack/
2. http://www.premiumpress.com/auctiontheme/
3. http://sitemile.com/products/wordpress-auction-reverse-auction-theme/
@d3v4 – A detailed list of security updates other than searching through the changelog at what was changed is non-existent to protect those who for whatever reason is unable to upgrade straight away.
Thanks for your reply
With “require”, you mean that BuddyPress won’t work at all if WordPress is not updated too?
Can somebody make a detailed list of which security fixes have been applied in version 1.5? I’ve tried looking for this information but the only thing I’ve found is a general “Security audit. Everything reviewed and enhanced as necessary” on this page: http://codex.buddypress.org/releases/version-1-5/
Thank you in advance for your help 
Not sure if its Multisite compatible, but have you tried BP Mobile?
https://wordpress.org/extend/plugins/buddypress-mobile/
@ashokgolusu – BP Albums 2.0 (Renamed to BP Media) is supposed to include that feature but it is still in a WIP (works in progress) state.
http://code.google.com/p/buddypress-media/
I just naturally worry, will WP Super Cache works well on buddypress ( and WP MS)? Do we have to make any special configure for WP Super Cache when it is installed on Buddypress? Anyone please gives me some comments. Thanks in advance
Hi there
Im new to this stuff but I was wondering how would i put the activity stream on the front page of a word press theme? I wanted to use a different theme beside buddypress but I wanted the activity stream on my home page.
thanks for your time!
@xenoflare As I see it, you’re using the bbPress Twenty Ten theme that’s bundled with bbPress plugin. I recommend you create a child theme of Twenty Ten, copy over the styles there, and activate. Then run Appearance > BP Compatibility and keep the bp.css and js enabled. The instructions for Step Three of BP compatibility are in page 2 of the link I posted above.
== how do i safely remove the blue background in the header. ==
@idowu create a bp-default child theme, go to wp-admin Appearance > Header and upload your header image. That’s it. Then override stylesheets. https://codex.buddypress.org/theme-development/building-a-buddypress-child-theme/
I am looking into using BuddyPress for my school district. We have about 4,500 students, so the network will have under 10,000 total users. I am trying to get a budget number for my proposal. How many full time admins will I need for a network this size?
Thanks
There’s http://buddydev.com/plugins/bp-simple-front-end-post/ but you have to add/adjust some code to customize it to what you need.
1337h4nd said 1 week, 2 days ago:
Hello, I run the site http://www.ireekgeek.com. I’ve been experiencing a problem for a couple weeks now and am in desperate need of a solution.
When members try to add a comment to recently posted activiy, the post button redirects to a 404 ‘Page Not Found’.
I’ve tried resetting all permalinks, I’ve checked to see if the theme I was using was the problem, but I recieve the same error when using the bp-default theme. I’ve also tried to deactivate any plugins that might be messing up the link…
I tried looking up similar problems that may have occured to other people on the net, the closest I came to a solution was this ticket: http://buddypress.trac.wordpress.org/ticket/2342
I haven’t altered any of the php associated to the activity stream or comments. I’m not even sure where the problem might be contained. Any help on this matter would be much appreciated – this has been a huge obstacle for members trying to communicate.