Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: functions.php and bp-custom.php


ovizii
Participant

@ovizii

well, my idea was this:

reading through the forums and the codex I found a couple of settigns that seemingly can be used from wp-config.php BUT I don’t want to clutter it too much.
Alternatively I can use bp-custom.php or make a small plugin and pop it into mu-plugins.

here is my collection of lines, please let me know where I can find more (built-into BP as I know plugins also offer several of these). What is recommended for what? I try to use wp-config.php only for WP related stuff, mu-plugins only for stuff that really needs to be running on every page and functions.php for stuff specific for my theme (and in this case the main page)

`/*add user with ID as group admin, alternatively change to mod*/
define( ‘BP_RESTRICTGROUP_AUTOADD_ADMIN_USER_ID’, 1);
/* disable the admin bar*/
/*define( ‘BP_DISABLE_ADMIN_BAR’, false);*/

/*customize all slugs*/
/*define( ‘BP_ACTIVATION_SLUG’, ‘activate’ );*/
/*define( ‘BP_ACTIVITY_SLUG’, ‘activity’ );*/
/*define( ‘BP_BLOGS_SLUG’, ‘journals’ );*/
/*define( ‘BP_FORUMS_SLUG’, ‘discussions’ );*/
/*define( ‘BP_FRIENDS_SLUG’, ‘peeps’ );*/
/*define( ‘BP_GROUPS_SLUG’, ‘gatherings’ );*/
/*define( ‘BP_MEMBERS_SLUG’, ‘chefs’ );*/
/*define( ‘BP_MESSAGES_SLUG’, ‘messages’ );*/
/*define( ‘BP_REGISTER_SLUG’, ‘register’ );*/
/*define( ‘BP_SEARCH_SLUG’, ‘search’ );*/
/*define( ‘BP_SETTINGS_SLUG’, ‘settings’ );*/
/*define( ‘BP_XPROFILE_SLUG’, ‘info’ );*/

/*customize more stuff*/
/*Put profiles in the root � http://example.org/username/*/
/*define ( ‘BP_ENABLE_ROOT_PROFILES’, true );*/

(btw. since I have decided upon the final theme to use, I guess I will be going via the functions.php route)

/*Change the default tab opened when looking at a user’srofile (default is activity):*/
/*define( ‘BP_DEFAULT_COMPONENT’, ‘profile’ );*/
`
Also if you want yo ucan give some more information about order of invocation?

Skip to toolbar