Skip to:
Content
Pages
Categories
Search
Top
Bottom

bp-custom.php vs. functions.php


  • benjammin
    Participant

    @benjino

    I am running WP 3.5.2 with BP 1.7.3.

    With the update to BP 1.7.3 is bp-custom.php no longer a valid way to make configuration settings changes? I’m asking because I wanted to turn off the buddybar on user login and tried using the bp-custom.php method (http://codex.buddypress.org/developer/customizing/changing-internal-configuration-settings/) and it didn’t work. I followed the codex to the “T,” double-checking and triple-checking to make sure everything was right. Doesn’t work.

    But, when I created a functions.php file and put it in my child theme directory with “show_admin_bar(false);” in the file the functionality I am desiring works. I used Buddybar Widget to accompany this function so users can sign on but don’t get the buddybar at the top.

    I achieved what I want but is this bp-custom.php method even working? Could it be something with the theme I have? Here’s the site: http://givemeselfesteem.com/

Viewing 5 replies - 1 through 5 (of 5 total)
  • With the update to BP 1.7.3 is bp-custom.php no longer a valid way to make configuration settings changes?

    It depends on the change. See https://codex.buddypress.org/developer/customizing/bp-custom-php/ for some more info. We haven’t changed how bp-custom.php is handled, so things should still work IF they used to work.


    benjammin
    Participant

    @benjino

    Paul,

    Thank you for your response. I followed that codex instruction to a “T” and it doesn’t work, that’s why I’m asking. I read all of the “Similars” as well.


    Peter Kriegel
    Participant

    @peter-kriegel

    Even I have the impression that the bp-custom.php do not run!
    I have tried several codes inside the file Placed in /wp-content/plugins/.
    for example I try to set the landing page for the users to Profile:
    define( 'BP_DEFAULT_COMPONENT', 'profile' );
    or Change the default tab opened when looking at a group to forum
    define( 'BP_GROUPS_DEFAULT_EXTENSION', 'forum' );
    https://codex.buddypress.org/getting-started/customizing/changing-internal-configuration-settings/
    … Nothing happens!
    I am realy newbee with that stuff! damm….


    Peter Kriegel
    Participant

    @peter-kriegel

    It was an Error from me!
    I have more then one Blog and the FTP was connected to the wrong Blog so I have tested with the wrong blog.
    Now it works!


    Hugo Ashmore
    Participant

    @hnla

    bp-custom.php does run as Paul advised earlier, nothing has changed I ran some test code in one yesterday so know there’s no issues.

    There must be something else occurring as both those defines work.

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