Forum Replies Created
-
In reply to: IMPORTANT — Plugin Devs – Read this
Update:
https://trac.buddypress.org/changeset/2472/trunk
Now dependent plugins can hook their code into bp_init and know that all plugins have been loaded.
If you’re a plugin author and are writing a plugin specifically for BuddyPress you will want to load your code by doing exactly what I describe above.
In reply to: IMPORTANT — Plugin Devs – Read thisFor 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.
In reply to: User-Blogs to have same design as testbp.org ?My blog doesn’t use the 1.2 default theme. It uses “SpringLoaded” by the449.
If users want to use another theme in their blog, they simply need to activate a theme that you have provided for them.
There are MU plugins to provide default blog setups that you can define; things like first post, first comment, and theme are assignable.
In reply to: two blog-questions@idotter, This functionality does not exist within the core of WP or BP.
All of these things are possible to do, but there may not be custom plugins or components to do all of them yet.
In reply to: Missing Content Within Website@bbrian017, looks like we’ve resolved a major portion of your issues in other threads.
I’m closing this one since I think we’ve resolved it also. PM me if you need it reopened.
In reply to: Install BP in a Sub-BlogIf you have MU set as a subdirectory install, make a second blog called “community” and then set it as the BP root blog, everything would assume http://example.com/community/ is the root URL.
In reply to: Forums not showing up after trunk updateNo sweat. Marked as resolved.
In reply to: Forums not showing up after trunk updateLike David said, the beta includes the files needed to run the bbPress forums. The error logs make it look like they’re not there.
You will need to look and see if there are files in your
buddypress/bp-forums/bbpressdirectory; if not, you’ll want to download bbPress and put it there.In reply to: How to make all links DO FollowIn reply to: Using Twire with trunk-r2459It’s coming together nicely. Thanks for checking it out.
In reply to: Facebuddy themeAndrea_r meant share how you fixed it; for others to learn from your experience.
Marked as resolved.
In reply to: Updating to latest trunk versionResolved in the other topic. Closing this one too.
In reply to: how to access to bbpress admin from buddypress??Until bbPress is a core WordPress plugin, BuddyPress hijacks your forums and takes over the controls.
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.
In reply to: BP 1.2 and bbPress admin/pluginsWhat you’re doing is basically a reverse external install. You will be able to add plugins and access the admin panel, but you won’t be able to do anything with it unless you continue to build on that same idea further, and start loading and connecting bbPress plugin code and functions into a custom theme.
In reply to: Defining new register slug not working.@tracedef, make sure the slug isn’t defined in more than one place, otherwise it might be getting defined ahead of where you are defining it. I know that you’re also running a custom theme, so is it possible that it’s hard-coded in your theme instead of referencing the constant?
In reply to: Can’t do anything, basically…Marked as resolved.
In reply to: Install BP in a Sub-BlogIn addition to what DJPaul said, BuddyPress no longer requires itself to be activated site wide. You can pick and choose which blogs BuddyPress is loaded on in each specific blogs’ plugins screen.
In reply to: Modifying the search bar to add events searchTwo places you will want to hook into…
The
bp_search_form_type_selectfilter will let you modify the drop down…The
bp_core_action_search_sitefilter will let you filter the results…In reply to: Site Wide Activity stream not workingIt sucks you’re out $80, but you learned an invaluable lesson today.
Always, always, always back-up your work before making major changes.
I’m marking as resolved and locking this topic since it’s a duplicate.
PM me if you need this reopened.
In reply to: Forums not showing up after trunk updateNeed more info.
Do you have an old bbPress external installation from 1.0, or do you use the built in bbPress version that came with 1.1?
Do you have any entries in your error logs?
Locked and moving on to new topic above.
In reply to: Using Twire with trunk-r2459BuddyPress 1.2 no longer supports the wire component, so any twitter-to-wire plugins will fail to work in 1.2.
In reply to: Ajax Tutorials?The codex will get be getting a little makeover soon, and at that point some better BP documentation will hopefully be put in.
Right now the best places to look are the ajax.php and .js files themselves unfortunately.
In reply to: Profile fields empty on registrationNewer versions of BP along with newer templates and MU have solved this by moving those hooks and actions into the template, and BP hijacks the registration before it happens.
It’s happening because of an outdated theme arrangement. I’m going through something similar also at the moment and will be tracking this down shortly.
@wekko, the reason those fields aren’t entered right away is because a registered user isn’t an actual activated user yet. They need to click the link or be activated by the site admin in order to actually get entered into the user tables. In either case, that xprofile data is moved into the xprofile tables when the activation occurs, not when they register.