使用内置的 WordPress 菜单

使用内置的 WordPress 菜单

Codex Home → Legacy Docs → Archived Section: Getting Started → Using the Built-in WordPress Menus
Using the Built-in WordPress Menus

The latest BuddyPress 1.5 default theme now includes the standard WordPress menus that you can easily set with drag-and-drop capabilities. You also have quite a bit more control over where your BuddyPress components are now displayed. Here are the basic steps to setting up your main site navigation after BuddyPress is installed. (*Please note that this only applies to BP 1.5+)
Step 1: Assign BuddyPress components to their own pages.
If you want to house a component under a unique page name, then you will need to create that page first. For example, let』s say you want 「Forums」 to be accessed on a page called 「Discussion」. Create a blank page titled 「Discussion」 first.
Navigate to Dashboard > BuddyPress > Pages

Assign each of your active components to a page using the dropdown menu.
Step 2: Create your main navigation menu.
You can create your own customized menu for your BuddyPress site, just like you normally would with WordPress.
Go to Dashboard > Appearance > Menus
Create a new menu by giving it a title and dragging and dropping your desired pages.

To add links specific to the logged-in user, enable the 「BuddyPress」 option box:

And select the items you would like to add to your menu:

Step 3: Assign your menu as the primary navigation.
The default BuddyPress theme supports one menu – the primary navigation. Go to Theme Locations within the menu creation area and assign the menu you just created as the Primary Navigation for your site. Click save and refresh your site to see your new custom menu in place.

嵌入 (Embeds)

嵌入 (Embeds)

Codex Home → Getting Started → Embeds
Embeds

Since BuddyPress 1.5, we have integrated WordPress』 native Embeds functionality.
So now it』s easy to embed videos, images, and other content into your Activity Stream, Group Forum, and Private Message posts.
All you have to do is add your embed URL on its own line in the textarea.
eg.
This is awesome!
http://www.youtube.com/watch?v=ROBmgYcIBww
And your content will be automatically embedded!

Frequently Asked Questions
What sites are supported?
See https://codex.wordpress.org/Embeds#Okay.2C_So_What_Sites_Can_I_Embed_From.3F
To embed more sites, you can use any oEmbed plugin for WordPress.
Embedly is a popular choice that supports over 200 sites. For performance issues when using Embedly, select only the sites you need to support.
How do I adjust the width of my embedded items?
If you』re not using the BuddyPress Default theme, you will probably want to customize the width of your embedded items so they match the width of your theme.
There are two ways to resize the width:

Set the 「maximum embed size」 in the WP Media Settings Subpanel
Set the $content_width variable in your theme』s functions.php:
if ( ! isset( $content_width ) )
// Change 640 to whatever the width of your column is
$content_width = 640;

Filtering embeds
BP doesn』t use the WordPress embed_oembed_html filter, but bp_embed_oembed_html can be used instead. For example:
add_filter( 'bp_embed_oembed_html', function( $html, $url, $attr, $rawattr ) {
// Wrap the embed with a

tag.
$html = '

' . $html . '

';
return $html;
}, 10, 4 );

I』m a developer. How can I find out more about WordPress Embeds?
Read the WordPress codex article:
https://codex.wordpress.org/Embeds#How_Can_I_Add_Support_For_More_Websites.3F
My YouTube video URL doesn』t show up! Why?
If the author of the YouTube video has disallowed embedding, due to privacy reasons, the video will not be embedded.

主题兼容性模板包 (v1.2)

主题兼容性模板包 (v1.2)

Codex Home → Legacy Docs → Archived Section: Theme Development → Themes & the BuddyPress Template Pack → Template Pack for Theme Compatibility (v1.2)
Template Pack for Theme Compatibility (v1.2)

Archived file. Good only up to BP 1.6.5 version

To enable compatibility for your existing WordPress theme with BuddyPress, please download and activate the BuddyPress Template Pack plugin. This will run you through the process step-by-step.
The Process At-A-Glance
This requires a working knowledge of HTML and CSS at the very least.
After you install and activate the BP Template Pack plugin, head over to admin dashboard > Appearance > BP Compatibility panel.
Step One
BuddyPress needs some extra template files in order to display its pages correctly. This plugin contains these extra templates, but right now they are in the plugin directory. They need to be inside your active theme directory to work correctly. First of all we can try moving them automatically, please click the button below to attempt to move the templates:
Move Template Files
Click on 「Move Template Files」 link
Step Two
Templates moved successfully! This is great news, BuddyPress templates are now in the correct position in your theme which means you can skip step two and move on to step three.
Click on 「move on to step three」 link
Step Three
Now that the template files are in the correct location, click through your site (you can come back to this page at any point). You should see a BuddyPress admin bar at the top of the page, try visiting some of the links in the 「My Account」 menu. You should find that BuddyPress pages now work and are displayed.
If you find that the pages are not quite aligned correctly, or the content is overlapping the sidebar, you will need to tweak the template HTML. Please follow the 「fixing alignment」 instructions below. If the content in your pages is aligned in the correct place then you can skip to the 「Finishing Up」 section at the bottom of this page.
Fixing Alignment
By default BuddyPress templates use this HTML structure:
[HEADER]

[PAGE CONTENT]
[SIDEBAR CONTENT]

[FOOTER]

If BuddyPress pages are not aligned correctly then you will need to modify some of the templates to match your theme』s HTML structure. The best way to do this is to FTP to your theme』s files at:
http://yoursite.com/wp-content/themes/active-WordPress-theme-folder/
Then open up the page.php file (if this does not exist use index.php). Make note of the HTML template structure of the file, specifically the

tags that surround the content and sidebar.
You will need to change the HTML structure in the BuddyPress templates that you copied into your theme to match the structure in your page.php or index.php file. The files that you need to edit are as follows (leave out any folders you have not copied over in step two):

activity/index.php
blogs/index.php
blogs/create.php
forums/index.php
groups/index.php
groups/create.php
groups/single/home.php
groups/single/plugins.php
members/index.php
members/single/home.php
members/single/plugins.php
registration/register.php
registration/activate.php

Once you are done matching up the HTML structure of your theme in these template files, please take another look through your site. You should find that BuddyPress pages now fit inside the content structure of your theme.
Finishing Up
You』re now all done with the conversion process. Your WordPress theme will now happily provide BuddyPress compatibility support. Once you hit the finish button you will be presented with a new permanent theme options page allowing you to tweak some settings.
Finish
Final Steps
__Disable BP Template Pack CSS
The BuddyPress template pack comes with basic wireframe CSS styles that will format the layout of BuddyPress pages. You can extend upon these styles in your theme』s CSS file, or simply turn them off and build your own styles.
___Disable BP Template Pack JS / AJAX
The BuddyPress template pack will automatically integrate the BuddyPress default theme javascript and AJAX functionality into your theme. You can switch this off, however the experience will be somewhat degraded.
Save Settings
NOTE: To remove the 「BuddyPress is ready」 message you will need to add a 「buddypress」 tag to your theme. You can do this by editing the style.css file of your active theme and adding the tag to the 「Tags:」 line in the comment header.
Navigation Links
You may want to add new navigation tabs or links to your theme to link to BuddyPress directory pages. The default set of links are:

Activity: http://yoursite.com/activity/
Members: http://yoursite.com/members/
Groups: http://yoursite.com/groups/
Forums: http://yoursite.com/forums/
Register: http://yoursite.com/register/ (registration must be enabled)
Blogs: http://yoursite.com/blogs/

Reset Setup
If you would like to run through the setup process again please use the reset button (you will start at step three if you haven』t removed the template files):
Reset
Example

BP Template Pack Walkthrough – Easy Level

模板包演练 – Twenty Eleven

模板包演练 – Twenty Eleven

Codex Home → Legacy Docs → Archived Section: Theme Development → Themes & the BuddyPress Template Pack → Template Pack Walkthrough – Twenty Eleven
Template Pack Walkthrough – Twenty Eleven

Archived file. Good only up to BP 1.6.5 version

BP TEMPLATE PACK 1.2 == BUDDYPRESS 1.5 == WORDPRESS 3.2.1

There are two ways to implement Step Three of the compatibility process:
– First Method: Superimposing the HTML structure of your WordPress theme onto 16 BP template files which were transferred into your WP theme folder during the compatibility process or
– Second Method: Creating the following files in your WordPress theme – header-buddypress.php, sidebar-buddypress.php and/or footer-buddypress.php
We』ll use the second method to make Twenty Eleven compatible with BuddyPress. By the end of this article, you should have the basic child theme files required to make Twenty Eleven compatible with BP 1.5 using the BP Template Pack plugin:

/bp-twentyeleven/

header-buddypress.php
sidebar-buddypress.php
style.css

Prelude: Create a Twenty Eleven Child Theme
( If you already have your own Twenty Eleven Child theme, skip this section and proceed to the Compatibility Process )
1. Create a new theme folder for your Twenty Eleven child theme. For this example, the child theme is called BP Twenty Eleven so we』ll name our theme folder bp-twentyeleven.
2. Create a style.css file and add it in the bp-twentyeleven folder with content below:

/*
Theme Name: BP Twenty Eleven
Theme URI: https://codex.buddypress.org/
Description: Twenty Eleven child theme for BuddyPress Compatibility Process
Version: 1.0
Author: mercime
Author URI: https://codex.buddypress.org/
Template: twentyeleven
Tags: buddypress, two-column
*/
@import url( ../twentyeleven/style.css );

3. Upload the bp-twentyeleven folder with the style.css file within to your server at /wp-content/themes/
N.B. We』ll be creating and uploading more files later during the compatibility process. For now, these are the basic files required for the child theme to be activated so that we can proceed with the BP compatibility process.
Compatibility Process
1. After activating BuddyPress, go to dashboard Appearance > Themes and activate our child theme 「BP Twenty Eleven. At the top of the Themes panel, you』ll see a message with 3 different options to make your theme compatible with BuddyPress. Select update your existing WordPress theme

2. Clicking on the above link will bring you to the 「Install Plugins」 panel. Click on 「Install」 link under BuddyPress Template Pack plugin.

3. Click OK to install BuddyPress Template Pack plugin.

4. Activate BuddyPress Template Pack plugin.

5. Go to Appearance > BP Compatibility

6. Step One: Moving template files automatically. Click on Move Template Files

7. Templates moved successfully! Click on Continue to Step Three You only need to go through Step Two if there was a problem transferring the files.

Pages: 1 2 3

模板包演练 – Twenty Ten

模板包演练 – Twenty Ten

Codex Home → Legacy Docs → Archived Section: Theme Development → Themes & the BuddyPress Template Pack → Template Pack Walkthrough – Twenty Ten
Template Pack Walkthrough – Twenty Ten

Archived file. Good only up to BP 1.6.5 version

BP TEMPLATE PACK 1.2 == BUDDYPRESS 1.5 == WORDPRESS 3.2.1

There are two ways to implement Step Three of the compatibility process:
– First Method: Superimposing the HTML structure of your WordPress theme onto 16 BP template files which were transferred into your WP theme folder during the compatibility process or
– Second Method: Creating the following files in your WordPress theme – header-buddypress.php, sidebar-buddypress.php and/or footer-buddypress.php
We』ll use the second method to make Twenty Ten compatible with BuddyPress. By the end of this article, you should have the basic child theme files required to make Twenty Ten compatible with BP 1.5 using the BP Template Pack plugin:

/bp-twentyten/

header-buddypress.php
sidebar-buddypress.php
style.css

Prelude: Create a Twenty Ten Child Theme
( If you already have your own Twenty Ten Child theme, skip this section and proceed to the Compatibility Process )
1. Create a new theme folder for your Twenty Ten child theme. For this example, the child theme is called BP Twenty Ten so we』ll name our theme folder bp-twentyten.
2. Create a style.css file and add it in the bp-twentyten folder with content below:
/*
Theme Name: BP Twenty Ten
Theme URI: https://codex.buddypress.org/
Description: Twenty Ten child theme for BuddyPress 1.5 Compatibility Process
Version: 1.0
Author: mercime
Author URI: https://codex.buddypress.org/
Template: twentyten
Tags: buddypress, two-column
*/
@import url( ../twentyten/style.css );
3. Upload the bp-twentyten folder with the style.css file within to your server to /wp-content/themes/
N.B. We』ll be creating and uploading more files later during the compatibility process. For now, these are the basic files required for the child theme to be activated so that we can proceed with the BP compatibility process.
Compatibility Process
1. After activating BuddyPress, go to dashboard Appearance > Themes and activate our child theme 「BP Twenty Ten」. At the top of the Themes panel, you』ll see a message with 3 different options to make your theme compatible with BuddyPress. Select update your existing WordPress theme

2. Clicking on the above link will bring you to the 「Install Plugins」 panel. Click on 「Install」 link under BuddyPress Template Pack plugin.

3. Click OK to install BuddyPress Template Pack plugin.

4. Activate BuddyPress Template Pack plugin.

5. Go to Appearance > BP Compatibility

6. Step One: Moving template files automatically. Click on Move Template Files

7. Templates moved successfully! Click on Continue to Step Three You only need to go through Step Two if there was a problem transferring the files.

Pages: 1 2 3

安装向导 (v1.5)

安装向导 (v1.5)

Codex Home → Legacy Docs → Archived Section: Getting Started → Installation Wizard (v1.5)
Installation Wizard (v1.5)

Archived file. Good only up to BP 1.5 version

After installing and activating BuddyPress, you will see an admin message with the link to the new BuddyPress Installation Wizard. Click on the "installation wizard" link.

Step 1: Choose the BuddyPress Components you want in your installation.
Click on "Save & Next" button.

Step 2: Associate/Create Pages for your BuddyPress Components.
Click on "Save & Next" button.

Step 3: Choose Pretty Permalinks structure.
Click on "Save & Next" button.

Step 4: Choose theme to use for your BP install.
Recommend using the bp-default theme to test drive all the BP features you activated. Click on "Save & Next" button.

Step 5: Finish and Activate

You now have the following tables in your database

Proceed to Next Task
Configure BuddyPress Components for BP 1.5

建立子主题 (传统)

建立子主题 (传统)

Codex Home → Legacy Docs → Archived Section: Theme Development → The BuddyPress Default Theme → Building a Child Theme (Legacy)
Building a Child Theme (Legacy)

Archived file. Good up to BP 1.5 version

Creating your own unique site design or theme is extremely simple to do, thanks to the Parent-Child functionality available in BuddyPress. This step-by-step guide will help you build your own custom theme. BuddyPress themes include more templates than your standard WordPress theme, However, these templates follow exactly the same structure as WordPress templates.
Child Themes: What is the point? Why not just create a brand new theme?
Building a child theme is the easiest and most future-proof way of building a BuddyPress theme. You can take advantage of an existing theme』s functionality, tweaking it to suit your own needs. By extending the default BuddyPress theme, you inherit all of the templates, JS, AJAX and if you wish, the CSS, all while preserving the core bp-default theme files. When new versions of BuddyPress are released with an updated default theme, your theme will automatically update along with it!
You can override any Parent theme template simply by either (1) copying it into your child theme and tweaking it or (2) creating a new, 「same-name」 template file in your Child theme directory. You can also add your own CSS, JS and AJAX features. For more information about Child themes, please go to the WordPress Codex page.
Let』s Start Building
The default BuddyPress theme is not located in the usual /wp-content/themes/ directory. It is stored in the BuddyPress plugin folder so it can be updated along with the plugin. WordPress knows where it is, even though your own theme is in /wp-content/themes/.
The first step is to create a new theme folder in /wp-content/themes/ and give it a unique name. For this example, the theme is called 「dusk」. In this new folder, create a file and call it 「style.css.」 This will be your child theme』s stylesheet.
Open up 「style.css」 and add the following code to the header, replacing necessary details with your own.
/*
Theme Name: BuddyPress Dusk
Theme URI: http://example.org/themes/dusk/
Description: Dark theme for BuddyPress.
Version: 1.0
Author: John Doe
Author URI: http://example.org/
Template: bp-default
Tags: buddypress, two-column, grey, dark
*/

Note the 「Template:」 entry, which tells WordPress that we want to use the BuddyPress default theme (bp-default) as the parent theme, and inherit all templates from it. You』ll also notice the 「Tags:」 line and the tag 「buddypress」. This will tell BuddyPress that you are using a BuddyPress capable theme so it won』t nag you in the admin area.
Save the file, and at this point, let』s activate the new theme. In the WordPress admin area, 「Appearance」 menu, you should see your new theme in the list of themes (if you don』t see it, and you』re using WordPress MU, make sure you』ve enabled the theme in 「Site Admin > Themes」). Go ahead and activate the new theme.
Check your site home page. You』ll notice that there is no design at all. It』s just text on a white page, possibly with a mangled header image. This is great, exactly what we want. This means your new child theme is working correctly and inheriting all of the template files. If you click around the site you』ll notice it still works, just with no design.
Inheriting CSS
At this point you have an important decision to make, you can start writing your own CSS from scratch, or you can inherit the default theme』s CSS and work from there. If you』re going to make a radically new theme design, you might want to start with a fresh slate. However, if you simply want to change the color scheme, and perhaps alter the layout a bit, I would highly recommend inheriting the CSS.
If you decide to inherit the CSS, you will need to add the following lines to your 「style.css」 file (below the comment header):
/* Inherit the default theme styles */
@import url( ../../plugins/buddypress/bp-themes/bp-default/_inc/css/default.css );
/* Inherit the default theme adminbar styles */
@import url( ../../plugins/buddypress/bp-themes/bp-default/_inc/css/adminbar.css );

Once you』ve added these lines, try reloading your home page again. You』ll notice that the design has gone back to the design of the default theme. This is perfect, you can now start making design adjustments in your own theme by adding your own CSS styles below this line. If you』ve decided to not inherit the CSS, then you can just start adding your own styles right below the header comment.
Overriding and Adding Template Files
By default your child theme will inherit all the template files in the default theme. What if you wanted to change some of the HTML though? Most design and layout changes can be done in the CSS, but if you really need to change some of the structure then you can override template files.
As an example let』s override the header.php template file. The first step is to head to the BuddyPress plugin folder (usually /wp-content/plugins/buddypress/) and then to the bp-themes/bp-default folder. In this folder you』ll see the header.php file, copy this file and paste it directly into your child theme』s folder (the same place as your style.css file). You can now make any edits to the HTML you wish and these will be reflected in your child theme. The header.php file in your child theme is essentially replacing the one in the parent.
You can do this with any template file in the parent theme. However, if you want to override a template file that is in a sub folder, you must also recreate the sub folder in your child theme.
functions.php
There is one exception to the template override rule – functions.php. If you create a blank functions.php file in your child theme, the parent theme functions.php will still be loaded. This will allow you to inherit existing functions, but also add your own. You must make sure you give your child theme functions a unique name, otherwise they will clash with the parent.
That is really all there is to creating child themes! I hope you found this guide useful, and remember that if you build your themes in this way, you are going to find upgrading BuddyPress much easier in the future.

安装群组和全站论坛 (v1.6)

安装群组和全站论坛 (v1.6)

Codex Home → Legacy Docs → Archived Section: Getting Started → Installing Group and Sitewide Forums (v1.6)
Installing Group and Sitewide Forums (v1.6)

Archived file. Good up to BP 1.6.5 version

Installing Group and Sitewide Forums (v1.6)
The following is a step-by-step illustrated guide for installing the Group and/or Sitewide Forums (bbPress 2.1) for BuddyPress 1.6+ on WordPress 3.4.1 after completing the BuddyPress installation wizard.
Forums Setup
Forums in BuddyPress make use of the bbPress software to function and we made it easy for you to install from the wp-admin backend with a few clicks. Depending on your community』s requirements, you can choose to:

Set up new Forums for Groups only (internal bbPress setup),
Use Existing Installation of Forums for Groups only (internal bbPress setup – upgrading from BP 1.2+),
Set up Sitewide Forums only (integration with bbPress 2.0+ plugin – new in BP 1.5), or
Set up Forums for Groups and Sitewide Forums

Forums FAQ』s (Frequently Asked Questions)
What』s the difference between Forums for Groups and Sitewide Forums?
Forums for Groups:
Give each individual group its own discussion forum. Choose this if you』d like to keep your members』 conversations separated into distinct areas. You may use an existing bbPress installation if you have one.
Features:

Group Integration
Member Profile Integration
Activity Stream Integration
@ Mention Integration

In other words, the bbPress Forums for Groups in BuddyPress are fully integrated and attached to Groups instead of the categorical and hierarchical format available in the bbPress Sitewide Forums. The Group/Site/Super Admin has to enable the forum feature in the Group』s admin panel first.
Site Wide Forums:
Your site will have central forums that are not isolated to any specific group. Choose this if you』d like to have a central forum area for your members.
Features:

Central Discussion Area
Forum Plugins Available
Activity Stream Integration
@ Mention Integration

A. Installing Forums for Groups only
Step 1. Go to admin dashboard > Settings > BuddyPress > Forums. Click on "Install Group Forums"

Step 2. New bbPress Installation. You』ve decided to set a new bbPress for forum management in BuddyPress. This is very simple and is usually just a one click process. When you』re ready, hit the link below. Click on "Complete Installation"

Step 3. All done! Configuration settings have been saved to the file bb-config.php in the root of your WordPress install.

If you kept the original page name/slug, Forums, for your Group Forums during the Installation Wizard then just proceed to http://yoursite.com/forums and you』ll find the Group Forums Directory page.
If you changed the page name/slug to e.g. 「Our Forums」 by creating a new Page named 「Our Forums」 then associated it with the Discussion Forums in BuddyPress > Pages, re-run Dashboard > Settings > Permalinks > Save, then proceed to http://yoursite.com/our-forums
Step 4. Create a New Group and Set Up the Group』s Discussion Forums
a. Go to the Groups Directory in the frontend and click on the 「Create a New Group」 button.
b. Add Details about the Group -> Group Name and Group Description
c. Choose your preferences for the following features -> Privacy Options, Group Invitations and Group Forums where you click on the checkbox to 「Enable Discussion Forums」
d. Proceed to the next steps of to finalize Group creation -> Uploading Group Avatar (or not) and then to the Invites panel where Group Admins can only invite friends while Super Admin can invite anyone.
B. Use Existing Installation of Forums for Groups only
Step 1. If you already have an existing bbPress installation for Groups, go to admin dashboard > BuddyPress > Forums and click on "Use Existing Installation"

Step 2. Existing bbPress Installation
BuddyPress can make use of your existing bbPress install. Just provide the location of your bb-config.php file, and BuddyPress will do the rest. bb-config.php file location: (shows path where bb-config.php is expected to be found) Click on "Complete Installation"

Step 3. If the path to your existing bb-config.php was incorrect, you』ll receive an error message 「The bb-config.php file was not found at that location, please try again.」 Find where that bb-config.php is and make sure you have the right path when you go through the process again.
If the path to your existing bb-config.php is correct, you』ll receive a congratulatory message and you can proceed to home page and test drive your Group Forums.
C. Set Up Sitewide Forums only
Since you are setting up Sitewide Forums only, disable (uncheck) Discussion Forums in the Settings > BuddyPress > Components panel.

Step 1. Go to wp-admin dashboard menu Settings > BuddyPress > Forums and click on "Install Sitewide Forums"

Step 2. The box below will show up on screen. Click on the red "Install" button

Step 3. Click on the "Activate Plugin" link

Step 4. Activating the bbPress plugin brings you to the Installed Plugins panel. You』ll already find the new 「Forums」, 「Topics」, and 「Replies」 navigation links added in dashboard menu under the 「Comments」 menu. We』ll explore the forum links later as we need to finish configuring the Sitewide Forums first.
Look for bbPress in the the list and beside the plugin nane, Click on the Settings link or go to Settings > Forums

Step 5. This opens up the Forums panel where you』ll be able to further configure the Sitewide Forums. Since this is your only bbPress Forum installation, you can keep the 「forum」 as your Forums base under Archive Slugs. Keep default configuration or make your modifications then click on "Save Settings"
Note: During the Installation Wizard, Forums will be associated with the 「Forums」 page. In some installations, you do not need to change anything. But if your sitewide forums won』t work, go to wp-admin BuddyPress > Pages and you』ll find the association and remove the Forums Page as the selected page.

Step 6. Go to dashboard menu Forums > New Forum to Create New Forum to test.

Step 7. This brings us to the Create New Forum panel. In this example, we』ll add an 「Announcements」 forum then click on the "Publish" button.

Step 8. Check out your new forum. Click on "View Forum" link.

Step 9. This is how your new 「Announcements」 forum would look like.
[Note: You will have to create the link to your sitewide forums page in your custom menu or main navigation. The menu links in the image below were created prior to setting up this tutorial.]

Step 10. Create a new Topic under the Announcements Forum. Enter the Topic Title, Topic Description, Topic Tags, and Topic Type. The Topic Types- Normal, Sticky and Super Sticky – can be set by the Forum Key Master. Although hidden in image below, you can check 「Notify me of follow-up replies via email.」 After you finish with creating your topic, click on the "Submit" button".

Step 11. Congratulations! Your Topic has been posted under the 「Announcements」 Forum.

Step 12. Now go Create New Forums as needed in your social network and open up for business!
NOTE: For more information about how to use bbPress forums, please read https://codex.bbpress.org/getting-started-with-bbpress/
D. Installing Forums for Groups AND Sitewide Forums
You may activate both Group and Site Wide forums, but this may create a poor experience for your members. Having said that, if you still want to proceed with setting up both forums to meet your social network』s requirements, read on.
「Forums」 Page Slug issue:
If you』re going to install Sitewide Forums only, it gets the Forums slug automatically.
However, if you』re going to install both Forum for Groups and Sitewide Forums, know that Forums for Groups (internal bbPress installation) has priority over the 「forums」 page/slug under the Discussion Forums page as seen in BuddyPress > Pages over the Sitewide Forums (bbPress 2.0 the plugin). The conflict arises because the Archived Slugs -> Forums base for Sitewide Forums is also 「forums」. Uh-oh.
There are three ways to set up both forums and prevent conflict on the page slugs:
1. Change the Forums for Groups page slug OR
2. Change the Sitewide Forums archived page slug OR
3. Change slugs of both Forums for Groups and Sitewide Forums
1. Change the Forums for Groups page slug
In this example, we』ll set 「group-forums」 slug for our install』s Forums for Groups and use the 「forums」 slug for our Sitewide Forums.
a) Go to Dashboard > Pages > Add New and name that page, Group Forums, and click on the "Publish" button

b) Go to admin Dashboard > BuddyPress > Pages and change the Page assigned to the Discussion Forums component to the new Group Forums Page created above. Click on the "Save" button on the same line as Discussion Forums.

c) Settings saved. Go to your home page.

d) Click on the Group Forums link in bp-default theme』s main navigation and you』ll see the group Forums Directory page. Before you can add a new Topic, you would need to create a group first because each Topic should be associated to a certain group.

e) Now go back to admin Dashboard > BuddyPress > Forums and click on "Install Sitewide Forums"

f) Continue with the installation as seen on Set up Sitewide Forums only.
g) Everything looks good … except what』s this? Clicking on the 「Forums」 link in main navigation leads to an empty page titled Forums(!). There』s a solution for that.
– Go Dashboard > Pages > All Pages
– Edit the Forums page
– Add the bbPress shortcode 「bbp-forum-index」 and click on the "Update" button. Check out the other bbPress shortcodes you can add to your Forums page from this bbPress 2.0 shortcodes list by John James Jacoby, Lead Developer of BuddyPress and bbPress plugins.
h) Re-run permalinks via Dashboard > Settings > Permalnks > and Save Settings.
2. Change the Sitewide Forums page slug
In this example, Forums for Groups will retain the 「forums」 slug while we』re going to change the Sitewide Forums Base Slug to 「sitewide-forums」.
a) Follow the installation instructions of a new Forums for Groups only or that of Existing Installation of Forums for Groups.
b) Follow the installation instructions of the new Sitewide Forums until at Step 5 when you reach the Settings > Forums panel. Go down the panel to the 「Archive Slugs」 section and in the text area provide for 「Forums Base」, change 「forums」 to 「sitewide-forums」 (without the apostrophes). Click on the "Save Changes" button
c) Then continue on with Step 6 of the Sitewide Forums installation till end of the page.
d) Create a link for the Sitewide Forums in Dashboard > Appearance > Menus
e) Re-run permalinks via Dashboard > Settings > Permalnks > and Save Settings.
3. Change the slugs of Forums for Groups and the Sitewide Forums
In this example, I would like my Group Forums to named as 「Support」 and my Sitewide Forums to be 「Discussions.」
a) Forums for Groups:

Rename the 「Forum」 Page created during the installation wizard procedure by going to Dashboard > Pages > All Pages, click on Edit link for the 「Forums」 page.
Change 「Forums」 to 「Support」 (without the apostrophes) in title area and 「support」 in slug area below the title.
Click on the "Publish" button.
Go to Dashboard > BuddyPress > Pages.
In Directories – Discussion Forums – select 「Support」 from dropdown and click on the 「Save」 button in same line.
Go to Dashboard > Appearance > Menus and add the 「Support」 page to your custom menu.

b) Sitewide Forums:

Go to Dashboard > Pages > Add New
In Add New Page panel, put 「Discuss」 as page title and add 「bbp-forum-index」 shortcode to start off as seen on this page https://bbpress.org/forums/topic/bbpress-20-shortcodes
Click on the "Publish" button.
Go to Dashboard > Settings > Forums
In the bbPress Settings panel, go down to 「Archive Slugs」 – 「Forums Base」 and change 「forums」 to 「discussions」
Click on the "Save Settings" button.
Re-run permalinks via Dashboard > Settings > Permalnks > and Save.
Add new Forums via Dashboard > Forums > Add New panel.
Go to Dashboard > Appearance > Menus and add the 「Discussions」 page to your custom menu.

bbPress Forums Tables in Database
The installation of BuddyPress internal bbPress forums, Group Forums, adds seven (7) new tables to your database:

yourPrefix_bb_forums
yourPrefix_bb_meta
yourPrefix_bb_posts
yourPrefix_bb_terms
yourPrefix_bb_term_relationships
yourPrefix_bb_term_taxonomy
yourPrefix_bb_topics

.
Database tables of a single WordPress installation generated when internal bbPress – Group Forums – is activated.

Database tables of a WordPress Multisite installation (other subsite tables deleted) generated when internal bbPress – Group Forums – is activated.

E. Forums: Frequently Asked Questions
How can I enable my Group』s forum?

Create a Group – only Group Admin/s and Site/Super Admin can enable the group』s forum
Go to the group』s 「Admin」 link
Select Group Settings
Check 「Enable Forum」 box and save settings
Create a Topic to test

How can I migrate my Group Forums to the Sitewide Forums?
Migration script to transfer Group Forums to Sitewide Forums is not available at this time.
I cannot uninstall the Forums for Groups. When i click uninstall group forums, it just re-initiates itself. What step am I missing?
First, back up your database and the bb-config.php file which was generated in root of your WordPress install when you installed Forums for Groups. Delete bb-config.php file from server.
I installed this cool bbPress add-on plugin and it』s only working in my Sitewide Forums but not in my Group Forums. What』s wrong with my installation?
Unless it is specifically stated as a plugin for the BuddyPress group forums, all add-on bbPress plugins are specifically for the Sitewide Forums (bbPress 2.0, the plugin).

配置组件 (v1.2)

配置组件 (v1.2)

Codex Home → Legacy Docs → Archived Section: Getting Started → Configuring Components (v1.2)
Configuring Components (v1.2)

Archived file. Good only up to BP 1.2 version

After installing and activating BuddyPress, a new menu button with links to help you configure BuddyPress will be added to your dashboard under the Dashboard menu button.
General Settings

Base Profile Group Name
Full Name field name
Enable BuddyPress to WordPress profile syncing?
Hide admin bar for logged out users?
Disable avatar uploads? (Gravatars will still work)
Disable user account deletion?
Disable global forum directory?
Disable activity stream commenting on blog and forum posts?
Default user avatar

Component Setup
By default, all BuddyPress components are enabled. You can selectively disable any of the components by using the form. Your BuddyPress installation will continue to function. However, the features of the disabled components will no longer be accessible to anyone using the site

Activity Streams
Allow users to post activity updates and track all activity across the entire site.
Blog Tracking
Track blogs, blog posts and blog comments for all users across a WordPress Network (or Multisite) installation.
N.B. 「Network mode」 is a feature of WordPress that needs to be manually enabled and configured first. Instructions for enabling this can be found on the WordPress codex WP Codex – Create A Network
bbPress Forums
Activates bbPress forum support within BuddyPress groups or any other custom component.
Friends
Allows the creation of friend connections between users.
Groups
Let users create, join and participate in groups.
Private Messaging
Let users send private messages to one another. Site/Super admins can also send site-wide notices.
Extended Profiles
Activates customizable profiles and avatars for site users.

Forums Setup
Forums in BuddyPress make use of a bbPress installation to function. You can choose to either let BuddyPress set up a new bbPress install, or use an already existing bbPress install. Note that bbPress forums in BuddyPress are fully integrated and attached to groups instead of the categorical and hierarchical format available in an external bbPress forum. Choose one of the options below:

Set up a new bbPress installation
You』ve decided to set up a new installation of bbPress for forum management in BuddyPress. This is very simple process and is usually just a one click process. When you』re ready, click on the 「Complete Installation」 button.

Go to dashboard > BuddyPress menu > Forums Setup.
Click on 「Set up a new bbPress installation」 button.
Click on 「Complete Installation」 button.
All done! Configuration settings have been saved to the file bb-config.php in the root of your WorPress install.
Enable Forum for each Group

Create a Group
Go to the group』s 「Admin」 link
Select Group Settings
Check 「Enable Forum」 box and save settings
Create a Topic to test

Use an existing bbPress installation
BuddyPress can make use of your existing bbPress install. Just provide the location of your bb-config.php file, and BuddyPress will do the rest

Input bb-config.php file location:
e.g. directory /home/yoursite/public_html/bb-config.php
Internal bbPress installation is a success when you get the message:
Forums were set up correctly using your existing bbPress install!
BuddyPress will now use its internal copy of bbPress to run the forums in your site. If you wish, you can remove your old bbPress installation files, as long as you keep the bb-config.php file in the same location.

Profile Field Setup
Your users will distinguish themselves through their profile page. You must give them profile fields that allow them to describe themselves in a way that is relevant to the theme of your social network.
Note: Any fields in the first group will appear on the signup page.