Title: Private BuddyPress
Author: Dennis
Published: <strong>6 Tháng 9, 2010</strong>
Last modified: 23 Tháng 1, 2011

---

Tìm kiếm plugin

Plugin này **chưa được cập nhật với 3 phiên bản mới nhất của WordPress**. Nó có 
thể không được hỗ trợ và bảo trì, và có thể xung đột với các phiên bản WordPress
mới nhất.

![](https://s.w.org/plugins/geopattern-icon/private-buddypress.svg)

# Private BuddyPress

 Bởi [Dennis](https://profiles.wordpress.org/gigalinux/)

[Tải về](https://downloads.wordpress.org/plugin/private-buddypress.1.0.4.zip)

 * [Chi tiết](https://vi.wordpress.org/plugins/private-buddypress/#description)
 * [Đánh giá](https://vi.wordpress.org/plugins/private-buddypress/#reviews)
 *  [Cài đặt](https://vi.wordpress.org/plugins/private-buddypress/#installation)
 * [Nhà phát triển](https://vi.wordpress.org/plugins/private-buddypress/#developers)

 [Hỗ trợ](https://wordpress.org/support/plugin/private-buddypress/)

## Mô tả

Protect your BuddyPress Installation from strangers. Only registered users will 
be allowed to view the installation and all other users will be redirected to the
login page. Users attempting to view blog content via RSS are also authenticated
via HTTP Auth.

You can exclude the registration, the homepage and blog pages (e.g. posts, archives
and non-buddypress pages) from protection. In combination with the plugin ‘Invitation
Code Checker’ your installation stays private but the registration is for users 
with a special password open.

The plugin includes a German and Hebrew (thanks to gstupp) translation.

## Ảnh màn hình

[⌊Settings page, you can find it under Settings -> Privacy⌉⌊Settings page, you can
find it under Settings -> Privacy⌉[

Settings page, you can find it under `Settings -> Privacy`

## Cài đặt

Use the automatic plugin installation in the backand or install the plugin manuell:

 1. Upload `private-buddypress` to the `/wp-content/plugins/` directory
 2. Activate the plugin through the ‘Plugins’ menu in WordPress

## Hỏi đáp

  Can I exclude the homepage, the registration or blog pages from protection?

Yes, you can define the excludes on the settings page unter `Settings -> Privacy`.

  Can I change the URL where non-loggedin users are being redirected?

Yes, currently you need to write a filter function in your functions.php.

    ```
    function redirect_nonloggedin_users($current_uri, $redirect_to) {
        // Redirect users to the homepage
        // Caution! Exclude the homepage from 'Private BuddyPress' options
        // to avoid redirection loops!
        return get_option('siteurl') . '/?from=' . $redirect_to;
    }

    add_filter('pbp_redirect_login_page', 'redirect_nonloggedin_users', 10, 2);
    ```

  Can I exclude e.g. the blog directory from protection?

Yes, you need to write a filter:

    ```
    function make_blog_directory_visible($visibility) {
        global $bp;

        if ( bp_is_directory() && $bp->current_component == $bp->blogs->slug )
            return false;

        return $visibility;
    }

    add_filter('pbp_login_required_check', 'make_blog_directory_visible');
    ```

  Are there other actions or filters?

Yes, currently in Private Buddypress are existing 5 actions:

 * **pbp_init**: Fired when Private BuddyPress is initialised
 * **pbp_admin_init**: Fired when Private BuddyPress in the admin area is initialised
 * **pbp_login_redirect**: Fired when the users is not logged in and is being redirected
   to the login page or when it is a feed asked for a password
 * **pbp_save_options**: Fired when the options of Private BuddyPress has been changed
 * **pbp_options_page**: Fired on the options page to added more fields for custom
   options

Also in Private BuddyPress are existing 6 filters:

 * **pbp_is_buddypress_feed**: Boolean value if the current page is a BuddyPress
   feed
 * **pbp_redirect_to_after_login**: Called URI from where the users came from
 * **pbp_redirect_login_page**: URI where nonloggedin users are being redirected
 * **pbp_login_required_check**: Boolean value if for the current page a login is
   needed
 * **pbp_pre_options**: Object with the new options before they saved
 * **pbp_protect_blog_feeds**: Boolean value if blog feeds should be protected

## Đánh giá

Không có đánh giá nào cho plugin này.

## Người đóng góp & Lập trình viên

“Private BuddyPress” là mã nguồn mở. Những người sau đã đóng góp vào plugin này.

Những người đóng góp

 *   [ Dennis ](https://profiles.wordpress.org/gigalinux/)

[Dịch “Private BuddyPress” sang ngôn ngữ của bạn.](https://translate.wordpress.org/projects/wp-plugins/private-buddypress)

### Muốn tham gia phát triển?

[Duyệt code](https://plugins.trac.wordpress.org/browser/private-buddypress/), check
out [SVN repository](https://plugins.svn.wordpress.org/private-buddypress/), hoặc
theo dõi [nhật ký phát triển](https://plugins.trac.wordpress.org/log/private-buddypress/)
qua [RSS](https://plugins.trac.wordpress.org/log/private-buddypress/?limit=100&mode=stop_on_copy&format=rss).

## Nhật ký thay đổi

#### 1.0.4

 * Fixed: If blog pages excluded from protection, don’t protect the feeds
 * Added: New filter: ‘pbp_protect_blog_feeds’
 * Added: Hebrew translation, thanks to gstupp

#### 1.0.3

 * Fixed: Options no longer disappear suddenly
 * Fixed: BuddyPress feeds are now protected
 * Added: Filters and actions, see FAQ for more information

#### 1.0.2

 * Fixed: Saving optings haven’t worked correctly
 * Added: Blog pages (e.g. posts, archives, non-buddypress pages) can now be excluded
   from protection

#### 1.0.1

 * Notification update for users who downloaded the plugin before it was finished
 * Fixed: Some fatal PHP errors
 * Added: Plugin is now translatable
 * Added: German translation

#### 1.0

 * First release

## Meta

 *  Phiên bản **1.0.4**
 *  Cập nhật lần cuối **16 năm trước**
 *  Số lượt cài đặt **60+**
 *  Ngôn ngữ
 * [English (US)](https://wordpress.org/plugins/private-buddypress/)
 * Thẻ
 * [buddypress](https://vi.wordpress.org/plugins/tags/buddypress/)[privacy](https://vi.wordpress.org/plugins/tags/privacy/)
   [private](https://vi.wordpress.org/plugins/tags/private/)[protect](https://vi.wordpress.org/plugins/tags/protect/)
   [protection](https://vi.wordpress.org/plugins/tags/protection/)
 *  [Nâng cao](https://vi.wordpress.org/plugins/private-buddypress/advanced/)

## Đánh giá

 5 trên 5 sao.

 *  [  2 5-star reviews     ](https://wordpress.org/support/plugin/private-buddypress/reviews/?filter=5)
 *  [  0 4-star reviews     ](https://wordpress.org/support/plugin/private-buddypress/reviews/?filter=4)
 *  [  0 3-star reviews     ](https://wordpress.org/support/plugin/private-buddypress/reviews/?filter=3)
 *  [  0 2-star reviews     ](https://wordpress.org/support/plugin/private-buddypress/reviews/?filter=2)
 *  [  0 1-star reviews     ](https://wordpress.org/support/plugin/private-buddypress/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/private-buddypress/reviews/#new-post)

[Xem tất cả đánh giá](https://wordpress.org/support/plugin/private-buddypress/reviews/)

## Những người đóng góp

 *   [ Dennis ](https://profiles.wordpress.org/gigalinux/)

## Hỗ trợ

Có điều gì muốn nói? cần giúp đỡ?

 [Xem diễn đàn hỗ trợ](https://wordpress.org/support/plugin/private-buddypress/)