Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

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

  • Tim Moore
    Participant

    @nullcrash

    I believe you can put it in /plugins/bp-custom.php (create the file if it doesn’t exist already). This is rough code, but I’m assuming you’ll want to do it like this:

    function remove_navitems()
    {
    bp_core_remove_nav_item('blogs');
    }

    add_action('bp_core_setup_nav', 'remove_navitems');

    At a first glance, that is what I’d try. Not sure if it’ll work, but that should get you going in the right direction.


    Tim Moore
    Participant

    @nullcrash

    There’s also a function you could probably use via a hook:

    bp_core_remove_nav_item($name)

    Replace $name with the name of the nav item you want removed.


    Tim Moore
    Participant

    @nullcrash

    On your server, you should find a file “wp-config.php” in the root directory of the WPMU installation. You also need to be running WPMU 2.7 for all of these options to be available.

    Open wp-config.php and you will see:

    define('AUTH_KEY', 'something');
    define('SECURE_AUTH_KEY', 'something');
    define('LOGGED_IN_KEY', 'something');
    define('NONCE_KEY', 'something');
    define('AUTH_SALT', 'something');
    define('LOGGED_IN_SALT', 'something');
    define('SECURE_AUTH_SALT', 'something');
    define('SECRET_KEY', 'something');

    The “something” above are the values you want to use.


    Tim Moore
    Participant

    @nullcrash

    If you are writing your own functions, you need to make sure and declare:

    global $bp;

    at the very top of the function. Otherwise the function doesn’t know where $bp is getting set and treats all variables as blank.


    Tim Moore
    Participant

    @nullcrash

    Cyclzone,

    You need to edit core BP files to accomplish this. I’m not sure how this will effect overall BP performance, though.

    First thing to do is locate the file “bp-core-catchuri.php” in /buddypress/bp-core/. Open it up.

    You’ll want to comment out lines 36 and 37 which look like:

    if ( BP_ROOT_BLOG != (int) $current_blog->blog_id )
    return false;

    Next, you’ll want to change line 92 to read like the following:

    if ( ($bp_uri[0] == BP_MEMBERS_SLUG) || ($bp_uri[1] == BP_MEMBERS_SLUG) || in_array( 'bp-core-ajax-handler.php', $bp_uri ) ) {

    That should do it.

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