• BuddyPress has several custom settings you can define in the wp-config.php which will allow you to configure BuddyPress in a unique way. Here are some settings you can make in wp-config.php to alter how BuddyPress behaves:

    [php]// Custom Settings You Can Place in wp-config.php for BuddyPress

    // Define the blog numbers BuddyPress should run on
    define( ‘BP_ROOT_BLOG’, 1 );

    // Disable the Admin Bar at the top of BuddyPress installations
    define(‘BP_DISABLE_ADMIN_BAR’, true);

    // Define the directory for members, e.g. http://example.com/members/
    define( ‘BP_MEMBERS_SLUG’, ‘members’ );

    // Define the directory for registering a user account, e.g. http://example.com/register/

    define( ‘BP_REGISTER_SLUG’, ‘register’ );

    // Define the directory for activating a user account, e.g. http://example.com/activate
    define( ‘BP_ACTIVATION_SLUG’, ‘activate’ );

    // Define the slug for the search page, e.g. http://example.com/search
    define( ‘BP_SEARCH_SLUG’, ‘search’ );

    // What will happen if a user visits http://example.com/members/jeremy/ – what will display? Display activity? The user’s profile?
    define( ‘BP_DEFAULT_COMPONENT’, ‘activity’ );

    // Define the forums slug, e.g. http://example.com/forum/
    define( ‘BP_FORUMS_SLUG’, ‘forum’ );

    // Define the groups slug, e.g. http://example.com/groups/
    define( ‘BP_GROUPS_SLUG’, ‘groups’ );

    // Define the blogs slug, e.g. http://example.com/blogs/
    define( ‘BP_BLOGS_SLUG’, ‘blogs’ );

    // If you enable a BuddyPress theme which does not have the BuddyPress tag, BP will annoy you in the admin section until you activate a BP compatible theme, this setting will disable that notice
    define( ‘BP_SILENCE_THEME_NOTICE’, true );

    // Allow BuddyPress to work on all blogs on an installation, not just the root blog
    define ( ‘BP_ENABLE_MULTIBLOG’, true );

    // Allow root URLs for profiles, e.g. http://example.com/jeremy/
    define ( ‘BP_ENABLE_ROOT_PROFILES’, true );

    // Disable the custom header
    define( ‘BP_DTHEME_DISABLE_CUSTOM_HEADER’, true );

    // Change default avatar settings
    define ( ‘BP_AVATAR_THUMB_WIDTH’, 50 );
    define ( ‘BP_AVATAR_THUMB_HEIGHT’, 50 );
    define ( ‘BP_AVATAR_FULL_WIDTH’, 150 );
    define ( ‘BP_AVATAR_FULL_HEIGHT’, 150 );
    define ( ‘BP_AVATAR_ORIGINAL_MAX_WIDTH’, 640 );
    define ( ‘BP_AVATAR_ORIGINAL_MAX_FILESIZE’, $max_in_kb );
    define ( ‘BP_AVATAR_DEFAULT’, $img_url );
    define ( ‘BP_AVATAR_DEFAULT_THUMB’, $img_url );

    This entry was posted on Tuesday, September 28th, 2010 at 2:30 pm and is filed under WordPress. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.
  • 1 Comment

    Take a look at some of the responses we have had to this article.

    1. posicionamiento seo aviles

      Define Custom Settings for BuddyPress | Jerm

  • Leave a Reply

    Let us know what you thought.

  • Name(required):