Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 6 replies - 1 through 6 (of 6 total)

  • pressography
    Participant

    @pressography

    Fantastic – thanks Andy! You & the BP team rock!


    pressography
    Participant

    @pressography

    Try defining the home slug in a file called bp-custom.php and put that file in the plugins folder. That’s how mine is set up.

    functions.php is too late – BP is already loaded at that point


    pressography
    Participant

    @pressography

    I’m also having this problem. I can add a new blog from the 2.9.1.1 WPMU admin area w/o BP 1.2 activated and it works. But when I try adding one from the admin area w/ BP activated site-wide, I get no errors, but it doesn’t add the DB tables, and I get the “The blog you have requested is not installed properly. Please contact the system administrator.” error.

    Any thoughts where I could start looking for the problem in the code? If I had a starting point, I could try to find the problem and post a trac ticket


    pressography
    Participant

    @pressography

    I forgot that I added a custom BP_HOME_BLOG_SLUG, so I never noticed that it was missing from the core. Whoops! Yeah, you’ll have to define it yourself, but after that, this should work.


    pressography
    Participant

    @pressography

    I found the function that was creating the /blog behavior from before, added it to my theme functions.php file, and it’s working fine again. No pages, no Settings > Reading changes, nothing.

    Here’s the function: (Note – I changed the function name in my code just in case there were any conflicts. I’m pasting the original code here, so be aware)

    /* Make sure the blog index page shows under /[HOME_BLOG_SLUG] if enabled */

    function bp_dtheme_show_home_blog() {

    global $bp, $query_string, $paged;

    if ( $bp->current_component == BP_HOME_BLOG_SLUG && ( !$bp->current_action || ‘page’ == $bp->current_action ) ) {

    unset( $query_string );

    if ( ( ‘page’ == $bp->current_action && $bp->action_variables[0] ) && false === strpos( $query_string, ‘paged’ ) ) {

    $query_string .= ‘&paged=’ . $bp->action_variables[0];

    $paged = $bp->action_variables[0];

    }

    query_posts($query_string);

    bp_core_load_template( ‘index’, true );

    }

    }

    add_action( ‘wp’, ‘bp_dtheme_show_home_blog’, 2 );


    pressography
    Participant

    @pressography

    Perhaps I’m missing something here. You can’t use a home.php theme page for your home page (like most WP magazine-style themes do, so theme users don’t have to manually edit anything to make them look right), and also use /blog for the main blog page? That’s the way BP used to work automatically, what changed?

    It seems silly to force a user to create 2 blank pages and 2 theme files to get the functionality that was there in the previous versions… It worked just fine before, why change it?

Viewing 6 replies - 1 through 6 (of 6 total)
Skip to toolbar