模板更新 2.2

模板更新 2.2

Codex Home → BuddyPress Theme Development → Updating Custom Themes For New Functionality → Template Updates 2.2
Template Updates 2.2

Theme template changes & updates for BP 2.2.0
Group create & blog create buttons
Historically the two buttons to add a new group or blog that displayed on the respective directory pages were rendered within the heading tag for those pages, with the arrival of theme compatibility in 1.7 this practice was continued to preserve backwards compatibility however now we needed to add the link or button into the WP the_title() function
This was never an ideal situation so in the 2.0.0 release we changed things around slightly ( On ticket #5144 ) so that the buttons were filtered in, this meant that we now had to take deliberate action elsewhere to have this happen with the default behavior being not to push the button through to the title function, in buddypress-functions.php we added two new add_filters and supporting functions to ensure that the established behavior continued and end users would have not seen any change but now we could easily remove the filters and simply add the bp_』group/blog』_create_button() via an add action where we required it.
Moving forward to BP 2.2.0 and the decision was taken to finally remove this behavior and stop injecting the create buttons in the title tag, prompted by this ticket #6008.
The tricky part was once removed where were the buttons to be moved to? There were few options available and although a fair bit of debate the consensus was to put them in the item-list-tabs ul list where the filters are. If themes are found to be still filtering the button to 『bp_groups_directory_header』 this will be trapped and redirected to render in the item-list-tabs
Naturally not everyone might want the links in the header so to that end it is possible to prevent the create buttons rendering in the list tabs by using:
add_filter( 'bp_get_group_create_nav_item', '__return_false' );
add_filter( 'bp_get_blog_create_nav_item', '__return_false' );

Having removed this new positioning you can add your buttons back by using one of the available 『do_action』 function calls in the templates, for example:
add_action( 'bp_before_directory_groups', 'bp_group_create_button' );
add_action( 'bp_before_directory_blogs_content', 'bp_blog_create_button' );

设置 → 个人资料可见性

设置 → 个人资料可见性

Codex Home → Member Guide → Settings → Profile Visibility
Settings → Profile Visibility

This page is where you can change the visibility level of any of your profile fields if the Site Admin has enabled the settings for the Members. The visibility options are: 「Everyone」, 「Only Me」, 「All Members」, or 「My Friends.」

⇒ Next: Settings → Delete Account
⇐ Previous: Settings → Email
⇐ Back to Member Guide

Akismet 反垃圾插件

Akismet 反垃圾插件

Codex Home → Releases → Version 1.7 → Akismet
Akismet

Starting with BuddyPress 1.7, extended support for Akismet『s anti-spam checking was integrated into the Activity Streams component. If you』re using Akismet, BuddyPress will seamlessly and silently send activity stream updates through for scanning, and prevent spammy ones from being made visible to your community based on the very same discussion settings you use for comments.
Typically, plugins and themes would want to opt into supporting BuddyPress; not the other way around. Akismet is a unique integration situation because it comes bundled with WordPress and is currently the best and most readily available solution for mitigating spam, so BuddyPress has chosen to support it.
If you wish to turn off Akismet integration, there is a checkbox in BuddyPress』s settings to do so.

朋友 → 好友关系

朋友 → 好友关系

Codex Home → Member Guide → Friends → Friendships
Friends → Friendships

This page shows the list of Friends. Friends are Members who have either accepted your friendship request or those who sent a friend request and you accept such.

⇒ Next: Friends → Requests
⇐ Previous: Messages → Compose
⇐ Back to Member Guide

个人资料 → 编辑

个人资料 → 编辑

Codex Home → Member Guide → Profile → Edit
Profile → Edit

Based on how many Profile Field Groups were set up by the Site Administrator, you』ll only need to fill a page or, if it was set up like in the example in the previous page, four panels.
Profile → Edit screen for the First Group of Profile Fields: Base

Profile → Edit screen for the Second Group of Profile Fields: Testing It

Profile → Edit screen for the Third Group of Profile Fields: Single Fields

Profile → Edit screen for the Fourth Group of Profile Fields: Multi Fields

⇒ Next: Profile → Change Profile Photo
⇐ Previous: Profile → View
⇐ Back to Member Guide

在 BuddyPress 论坛上提供支持

在 BuddyPress 论坛上提供支持

Codex Home → Participate and Contribute → Providing Support at the BuddyPress Forums
Providing Support at the BuddyPress Forums

Welcome Forum Volunteers
Thank you for taking the time to provide support at the BuddyPress Forums. Please note that the rules and guidelines set up in the WordPress support forums apply here as well. The following documents will help you navigate through our Forums.
1. Forum Welcome – this document is in part directed towards those who seek support at the forums but contains information about helping out, when topics can be deleted or closed, and reporting threads, among others. Disregard the mailing list information unless the issue is specific to WordPress.
2. WordPress Support Handbook – This contains a good number of articles which will help you provide support the 「WordPress Way」. Some articles which you might like to read first:

How to Give Help
When Good Users Go Bad
Approach to providing good support
Examples of Good vs. Bad Support
Modlook and Tagging
What makes a Good Bug Report

Forum Moderators
Thank you for accepting the invitation to become moderators at our support forums
Please take a moment to read the recommended articles above and the ones below to re-acquaint yourself with our forum rules. Should you have any questions or suggestions, feel free to reach out to the BP core team.

Welcome to Forum Moderators (WP Forum Handbook)
Closing Posts (Forum Welcome) – Do not feel obliged to close very old topics as there will be a script to auto-close topics after a certain period of time
Stock Answers for Forum Moderators (WP Forum Handbook)
Deleting/Editing Posts (Forum Welcome)

Additional Reference: The accepted conventions on asking questions
It can be worthwhile reading through this document below as a primer on what is suggested as the correct approach to asking questions on forums and lists. While it』s aimed at the poster as guidance on how to behave and form a question that will gain positive responses, it』s useful for all to understand and is considered as a RFC:
How To Ask Questions The Smart Way

好友 → 请求

好友 → 请求

Codex Home → Member Guide → Friends → Requests
Friends → Requests

This page shows a list of 「Friend Requests」 from Members of the site. It is up to you to accept or reject such friend requests.

⇐ Next: Groups → Memberships
⇒ Previous: Friends → Friendships
⇐ Back to Member Guide

个人资料 → 更改个人资料照片

个人资料 → 更改个人资料照片

Codex Home → Member Guide → Profile → Change Profile Photo
Profile → Change Profile Photo

If the email you used to register with a BuddyPress site is associated with a Gravatar.com account, then the image you uploaded at Gravatar.com will be used to represent you throughout the site. You can change the image by navigating to your Profile → Change Profile Photo page.
You have three options to upload your new profile photo:
1. Upload Tab: Open up the File Upload box by clicking on the 「Select Your File」 button, choose the image you prefer, crop the image, and save.
2. Upload Tab: Drag and Drop (for BP 2.3.0+ only) an image from your desktop to the space provided in the screen below, crop the image, and save. (new in BP 2.3.0)

3. Take Photo Tab (for BP 2.3.0+ only): You will be able to use your computer』s webcam to take your profile photo if you are using a browser which supports getUserMedia. Otherwise, there will a notification on screen that this feature is not available for you at that time.
3.a. Confirm that you』re willing to share your webcam in the dialogue box which shows up in your Firefox or Chrome browser per image below (Firefox).

3.b. When you』re satisfied with your 「pose」, click on the 「Capture」 button and then click on the 「Save」 button.

Delete Tab: If you』d like to delete your profile photo but not upload a new one, click on the 「Delete My Profile Photo」 button.

⇒ Next: Notifications → Unread
⇐ Previous: Profile → Edit
⇐ Back to Member Guide

WordPress 菜单中的 BuddyPress 链接

WordPress 菜单中的 BuddyPress 链接

Codex Home → Getting Started → BuddyPress Links in WordPress Menus
BuddyPress Links in WordPress Menus

You can add links to: (a) the directory pages of your activated BuddyPress components and/or (b) your respective Member screens, in any of the navigation menus available in your theme. This can only be done after you finish configuring your BuddyPress installation (regular site | multisite).
Add Menu Links to the Directory Pages of Activated BuddyPress Components
Links include: Sitewide Activity, Members Directory, Groups Directory, and/or Blogs Directory (multisite only).

Navigate to Appearance > Menus.
Create a new menu.
Under the 「Pages」 section, select the links to the BuddyPress pages.
Click on the 「Add to Menu」 button.
Arrange the menu links as you like it.
Click on 「Save the Menu」 button.
Go to the 「Manage Locations」 tab and assign this menu to a theme menu location.
Click save and refresh your site to see your new custom menu in place.

Add Menu Links Specific to the Logged-in Member

Click on 「Screen Options」 to open up the panel at the top of the screen and check the 「BuddyPress」 option under the 「Show On Screen」 section. You can either create a new menu to contain these membership links or add them to the menu you already created above.

Navigate to the new 「BuddyPress」 navigation links in the panel shown below.

Select the items you would like to add to your menu
Click on the 「Add to Menu」 button. The links will be added to the Menu Structure panel.
Click on 「Save the Menu」 button.

Example of this menu in the front page of your site.