For BuddyPress 1.2, I’ve been using this.
function your_custom_loader() {
// Put the code that needs BuddyPress here. This could be something like...
require_once( WP_PLUGIN_DIR . '/your-custom-plugin/your-plugin-buddypress.php' );
}
if ( defined( 'BP_VERSION' ) )
your_custom_loader();
else
add_action( 'bp_init', 'your_custom_loader' );
This way it isn’t loading any files and isn’t force loading BuddyPress; instead it’s looking to see if it’s active, and if it is your plugin loads; if it’s not it adds itself to the new bp_init action at the end of the BuddyPress load cycle, and loads then.
This method also follows the philosophy that plugins should be made for WordPress but be BuddyPress aware. This way you can tuck your BuddyPress functions and features away in a special your-plugin-buddypress.php file, and only load that file when BuddyPress is already loaded and active, and without errors.
Also, you’re not adding any overhead by doing this, other than a binary check for BP_VERSION. Your plugin will load itself as usual in the WordPress plugins screen, and will only start looking for BuddyPress code when BuddyPress tells it too. This is actually how I made the BuddyPress Backpat plugin load itself.
If you’re not using the default themes, or you haven’t created a theme that is a child of bp-sn-parent then you need to install the back compat plugin to get this back again:
https://wordpress.org/extend/plugins/buddypress-backwards-compatibility/
When writing a plugin that requires BuddyPress, it’s important to include the following code to make sure your plugin is registered correctly:
From JJJ:
For BuddyPress 1.2, I’ve been using this.
function your_custom_loader() {
// Put the code that needs BuddyPress here. This could be something like...
require_once( WP_PLUGIN_DIR . '/your-custom-plugin/your-plugin-buddypress.php' );
}
if ( defined( 'BP_VERSION' ) )
your_custom_loader();
else
add_action( 'bp_init', 'your_custom_loader' );
This way it isn’t loading any files and isn’t force loading BuddyPress; instead it’s looking to see if it’s active, and if it is your plugin loads; if it’s not it adds itself to the new bp_init action at the end of the BuddyPress load cycle, and loads then.
This method also follows the philosophy that plugins should be made for WordPress but be BuddyPress aware. This way you can tuck your BuddyPress functions and features away in a special your-plugin-buddypress.php file, and only load that file when BuddyPress is already loaded and active, and without errors.
Also, you’re not adding any overhead by doing this, other than a binary check for BP_VERSION. Your plugin will load itself as usual in the WordPress plugins screen, and will only start looking for BuddyPress code when BuddyPress tells it too. This is actually how I made the BuddyPress Backpat plugin load itself.
… There any wordpress plugins that allow certain themes and plugins show only specific users?
regards
Alvaro
i don’t know if it can save you some work, i’ve tested some more:
* adding only one of First/Last name works
* In every case, if from wordpress administration “Edit user” i change the “display name publicly as” to the nick or last name of the user that doesn’t change inside buddypress
I don’t know if this is a desired behaviour or not, so just hoping to be useful
keep on your great work!
@zvhipp, Does it work fully and any pit-falls?
@designodyssey That login section looks good,does it run wordpressMU?
http://www.reverbnation.com/controller/main/signup
Seems Gigya does work with BP 1.2 on WordPress. Only thing it would require is to modify avatar section so it can display yahoo avatar if linked just as facebook connect does. And display log in button with default buddypress login box.
Ok, I think this time a first version will be finally ready in some days…Let’s say… about one week I think ! A bunch of hours…
For WPMU+BP 1.2.
When WordPress 3.0 will be released; it will also work for single WP+BP.
First version will not support picture galleries.
Okay… when I try this new way of leaving the themes in the plugin folder… my child themes now give me an error saying “The following themes are installed but incomplete. Themes must have a stylesheet and a template.” and “Template is missing”.
Do you have to reference “Template: bp-default” differently from a child theme? With a full path perhaps? How does WordPress “know” about those themes inside the BuddyPress folder? I’m at a loss I’m afraid. And I’ve followed the instructions on the “building-a-buddypress-child-theme page” to the letter.
Have you RU lang activated in BP (not WPMU) general settings ?
Notice: On the trac, the RU.mo trunk version is for 1.1.2
https://i18n.trac.buddypress.org/browser/ru_RU
Translator is SlaFFik
https://profiles.wordpress.org/slaffik/
I am running WP 2.9.1 and I just activated BP 1.2 Beta on my test site.
I have developed several wordpress sites for which I would like to integrate Buddypress. I want to use my themes, with BP’s functionality. I am failing to grasp this concept, is it imperative that I use a BP theme?
Hello,
We’re running an install of Buddypress 1.1.3 on WordPress MU 2.9.1.1 in the root directory of our site, http://fridayallweek.com. As of late, our registration page has become inaccessible and we can’t figure out why. We’re running the default BP theme with a few style modifications, but nothing major. The only plugins we have running are BP-facebook connect, BP registration options, smart youtube and wordpress video plugin.
Any help would be greatly appreciated. Thanks.
1. yes, It works same as on wordpress.com, she can always start a new blog(if you have not put any restrictions.
2. Yes, they can move, they same way, you move from wordpress.com to selfhosted. Export the posts and move.
Hi,
I have installed the latest version of buddypress version 1.2 beta and im using this on wordpress 2.9.1. I would like to know how i integrate bbpress v3.1 with wordpress/buddypress. I’ve read many articles on this but all see to take about WordPress MU which i’m not using.
Any help would be appreciated.
Thankyou.
Murphy
bbPress is only up to 1.0.2 so I have no idea what you’re talking about. It’s probably best to make a new thread.
@do77 , David’s method will save a lot when you will upgrade.
Now for your questions
1.No, You do not need to copy any file(because you want the same layout, so child theme inherits it from parent).
2. Create style.css, and put there the content as David has pointed(do not miss the parent tag and theme name in comments, wordpress uses this to recognize the theme)
3.yes, then you can use firebug to override it as you have already given an example
4.You may not need to do that, because you are not using any other files than css.
5, yes, but please read about wordpress child theme, that will help you in long run.
@dpee
Is this a new Installation of mu, I mean, Mu is installed on your root domain http://mysportspress.com
or http://mysportspress.com/wordpress-mu/
If Mu is not on root domain, you may not use subdomain style blogs, In that case You will have to go for category style sub blogs.
If Mu is on root domain, follow what @Obuisson1976 has mentioned, or just create a wild card subdomain, (i.e. *) in your cpanel->subdomains.
That should make it work.
Hi,
I have installed the latest version of buddypress version 1.2 beta and im using this on wordpress 2.9.1. I would like to know how i integrate bbpress v3.1 with wordpress/buddypress. I’ve read many articles on this but all see to take about WordPress MU which i’m not using.
Any help would be appreciated.
Thankyou.
Murphy
Hi all,
I have installed wordpress mu and buddy and need russian lang support. Installed lang on mu and it picks it up fine, but the buddypress for some reason does not.
I have followed this thread, but it did not fix it.
http://buddypress.org/forums/topic/language-translation-problems
in my MU I have lang file ru_RU.mo & ru_RU.po
in my Buddy – /wp-content/plugins/buddypress/bp-languages/buddypress-ru_Ru.mo & .po
Any ideas?
Dmitri
I’m getting a 404 error on what is supposed to be my homepage under BP, but I don’t get that error using Hybrid as a theme. Hybrid correctly points to localhost/wp where buddypress points to localhost/wp/core where the 404 is popping up.
I have WP 2.9.1 installed at localhost/wp. I’ve moved things around a bit so the wp folder contains:
- wp-config.php
- .htaccess
- /core
- /wp-content
/core contains a svn:externals of WP 2.9.1. I use .htaccess to redirect requests to my separate wp-content where I’ve put BP and all my themes and plugins. Got the idea from http://codex.wordpress.org/Installing_WordPress_With_Clean_Subversion_Repositories.
This setup help me keep things managed with SVN, but many plugins don’t work outofthebox with this setup.
What can I do?
Hi, I Can’t Really Figure Out Whats Going On, Im running buddypress 1.13 with wordpress mu 2.9.1and the BP default theme. Everything is working fine including forums, although my activity feed is hours behind, but thats an issue for later. Simply right now I can’t figure out how to get any blogs working other then my admin, I have created plenty and had users create a bunch to but to no avail. Im sure this has happened to a bunch so I hope I can get some help. Thanks so much.
http://mysportspress.com/wordpress-mu/
This issue was resolved by ensuring that my WPMU wp-config and bbPress bb-config settings matched those described here:
https://bbpress.org/forums/topic/login-integration-issues-bbpress-and-wordpress-mu#post-62274
this is a plugin issue and you might consider asking for help from the plugin author and/or following this thread.
installed BuddyPress Backwards Compatibilty – groups still dont display
http://hire.archiseek.com/groups/test-group
WordPress MU 2.9.1.1
Current version of buddypress
Until bbPress is a core WordPress plugin, BuddyPress hijacks your forums and takes over the controls.
@katemgilbert
Are you using WordPress MU or normal WordPress?
If you are using MU, follow what DJPaul recomments; create a new MU blog (assuming you’ve selected subdirectory installation); then change the root blog to whatever that blog_id is. That will tell BuddyPress which blog will be the root of all of its features like profiles, directories etc…
If you are using single WordPress, that’s a little different. You could make traditional WordPress page templates for each BuddyPress page that you need, and copy the BP code into your custom WP template. That would allow you to mish-mash the page locations freely.