Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 25 replies - 401 through 425 (of 1,706 total)
  • @johnjamesjacoby

    Keymaster

    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.

    @johnjamesjacoby

    Keymaster

    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.

    @johnjamesjacoby

    Keymaster

    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

    @johnjamesjacoby

    Keymaster

    @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.

    @johnjamesjacoby

    Keymaster

    @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.

    @johnjamesjacoby

    Keymaster

    If 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.

    @johnjamesjacoby

    Keymaster

    No sweat. Marked as resolved.

    @johnjamesjacoby

    Keymaster

    Like 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/bbpress directory; if not, you’ll want to download bbPress and put it there.

    @johnjamesjacoby

    Keymaster

    Teach a man to fish…

    http://tinyurl.com/y9zoz4n

    :)

    @johnjamesjacoby

    Keymaster

    It’s coming together nicely. Thanks for checking it out.

    In reply to: Facebuddy theme

    @johnjamesjacoby

    Keymaster

    Andrea_r meant share how you fixed it; for others to learn from your experience.

    Marked as resolved.

    @johnjamesjacoby

    Keymaster

    Resolved in the other topic. Closing this one too.

    @johnjamesjacoby

    Keymaster

    Until bbPress is a core WordPress plugin, BuddyPress hijacks your forums and takes over the controls.

    @johnjamesjacoby

    Keymaster

    @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.

    @johnjamesjacoby

    Keymaster

    What 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.

    @johnjamesjacoby

    Keymaster

    @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?

    @johnjamesjacoby

    Keymaster

    Marked as resolved.

    @johnjamesjacoby

    Keymaster

    In 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.

    @johnjamesjacoby

    Keymaster

    Two places you will want to hook into…

    The bp_search_form_type_select filter will let you modify the drop down…

    The bp_core_action_search_site filter will let you filter the results…

    @johnjamesjacoby

    Keymaster

    It 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.

    @johnjamesjacoby

    Keymaster

    Need 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?

    @johnjamesjacoby

    Keymaster

    Locked and moving on to new topic above.

    @johnjamesjacoby

    Keymaster

    BuddyPress 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?

    @johnjamesjacoby

    Keymaster

    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.

    @johnjamesjacoby

    Keymaster

    Newer 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.

Viewing 25 replies - 401 through 425 (of 1,706 total)
Skip to toolbar