Search Results for 'buddypress'
-
Search Results
-
Forgive me if this has been covered already.
But I wanted to ask a couple questions about the ability of creating a duplicate of the Groups Capability.
Basically a completely new instance of Groups. For example:
Groups – This would be the exact way Groups are configured now. Allowing users to create and manage, etc.
Groups(Or a custom name) 2 – A complete copy of the Groups functionality, but creation of Groups here would be limited to Admin level only. Participation in forums and such would be open to all. Or managed based on roles.
Any idea if anyone has done this? Is taking the existing Groups system and duplicating it as a Plugin add-on (additional Groups with settings) the best means for adding this functionality?
Thanks, and again sorry if this has been covered. I am new here!
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.phpfile, 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.
How do you get the blog feature on a user’s blog (showing the Buddypress) theme to work?
For example, from within a Buddypress user blog (Buddypress theme), the blog page does not seem to work.
Here on my site, when I click on Blog,I get “page not found.”
http://networkingpeople.biz/solarpoweredfuture/blog
When I login in to the admin panel, open the the sample post and click view site – it goes to this address:
http://networkingpeople.biz/solarpoweredfuture/2010/01/25/hello-world/
Is this post supposed to appear on the user’s blog?
If so, is there something I have not configured?