Skip to:
Content
Pages
Categories
Search
Top
Bottom

[Resolved] adding bp-custom.php kills site

  • @stunley

    Participant

    I’m trying to add a bp-custom.php to the plugins folder with this code…

    <?php
    // hacks and mods will go here
    ?>
    
    /**
     * Change BuddyPress default Members landing tab.
     */
    define('BP_DEFAULT_COMPONENT', 'profile' );

    however, when it is present in the folder, the website shows a content encoding error and the admin panel shows chinese characters with the code in the bp-custom.php (above) on the first line.

    Does anyone have an idea what’s happening? Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • @bphelp

    Participant

    @stunley
    You can’t define the default component outside of php tags. Try this:

    <?php
    // hacks and mods will go here
    /**
     Change BuddyPress default Members landing tab.
     **/
    define('BP_DEFAULT_COMPONENT', 'profile' );
    ?>
    

    @stunley

    Participant

    That was it thank you!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Resolved] adding bp-custom.php kills site’ is closed to new replies.
Skip to toolbar