Skip to:
Content
Pages
Categories
Search
Top
Bottom

bp-custom-php help


  • Ezd
    Participant

    @ezd

    Hi,

    I was trying to make a new slug for members by following the guide on how to do that but I cant get it to work.

    I added a file called bp-custom.php to this location: wp-content/plugins/buddypress/bp-custom.php

    And i added this code to the file

    <?php
    define( 'BP_MEMBERS_SLUG', 'players' );
    ?>

    Whats wrong?

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

  • takuya
    Participant

    @takuya

    It should be working. (place your bp-custom.php outside buddypress as it will be deleted when you upgrade buddypress next time by wordpress update system)


    Ezd
    Participant

    @ezd

    Thanks once again Socialpreneur. :))) Now it works.


    3612275
    Inactive

    I’m trying to do this as well, however, it’s not working. I have my buddypress.po and buddypress.mo in my bp-languages folder and I uploaded a new bp-custom.php to the /plugins/ folder however, from there how do I enable the new translation?

    I’m using:

    <?php
    define( 'BPLANG', 'mysite' );
    if ( file_exists( BP_PLUGIN_DIR . '/bp-languages/buddypress-' . BPLANG . '.mo' ) ) {
    load_textdomain( 'buddypress', BP_PLUGIN_DIR . '/bp-languages/buddypress-' . BPLANG . '.mo' );
    }
    ?>


    r-a-y
    Keymaster

    @r-a-y

    You need to remove the “- ‘.BPLANG.'” suffix from the .po/.mo files in your bp-custom.php

    Use this:

    <?php
    define( 'BPLANG', 'mysite' );
    if ( file_exists( BP_PLUGIN_DIR . '/bp-languages/buddypress.mo' ) ) {
    load_textdomain( 'buddypress', BP_PLUGIN_DIR . '/bp-languages/buddypress.mo' );
    }
    ?>


    3612275
    Inactive

    *bow*

    Thanks r-a-y, once again you have proven to be very knowledgeable :).


    3318273
    Inactive

    This thread helped me! Thanks a lot guys!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘bp-custom-php help’ is closed to new replies.
Skip to toolbar