BuddyDev

Search

[Resolved] Buddypress 404 error

  • Participant
    Level: Enlightened
    Posts: 40
    Jaume Aragay on #5411

    Hi there!

    I want to suppress the whole Activity tab and Make the Profile the default tab. I’ve found code to do that but then I get a 404 error page when I click on a user’s link.

    This is the code I’ve found:

    /* *** */

    /* Remove Activity tab from profile */

    define( ‘BP_DEFAULT_COMPONENT’, ‘profile’ ); // Triem nova pestanya per defecte

    function bphelp_remove_activity_from_profile(){

    bp_core_remove_nav_item(‘activity’);
    }
    add_action(‘bp_activity_setup_nav’,’bphelp_remove_activity_from_profile’);

    /* *** */

    Is there something wrong or missing?

    Thanks in advance.

    Jaume.

  • Participant
    Level: Enlightened
    Posts: 40
    Jaume Aragay on #5414

    Resolved!

    There was a problem with the proper characters: instead of ‘ they had to be ‘.

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on #5415

    Hi Jaume,

    Thank you for the acknowledgement. I an glad that Issue is resolved by your own.

    Thank You
    Ravi

    • This reply was modified 8 years, 2 months ago by Ravi.

You must be logged in to reply to this topic.

This topic is: resolved