Title: Topic Like Button for bbPress
Author: dahousecatz
Published: <strong>2018년 10월 25일</strong>
Last modified: 2018년 10월 25일

---

플러그인 검색

![](https://ps.w.org/bbp-topic-like-button/assets/banner-772x250.png?rev=1962942)

이 플러그인은 **최근 3개의 주요 워드프레스 출시와 시험 되지 않았습니다**. 워드프레스의
좀 더 최근 버전으로 이용할 때 더 이상 관리되지 않고 지원되지 않고 호환성 문제가 
있을 수 있습니다.

![](https://ps.w.org/bbp-topic-like-button/assets/icon-256x256.png?rev=1962942)

# Topic Like Button for bbPress

 작성자: [dahousecatz](https://profiles.wordpress.org/dahousecatz/)

[다운로드](https://downloads.wordpress.org/plugin/bbp-topic-like-button.1.0.zip)

 * [세부사항](https://ko.wordpress.org/plugins/bbp-topic-like-button/#description)
 * [평가](https://ko.wordpress.org/plugins/bbp-topic-like-button/#reviews)
 *  [설치](https://ko.wordpress.org/plugins/bbp-topic-like-button/#installation)
 * [개발](https://ko.wordpress.org/plugins/bbp-topic-like-button/#developers)

 [지원](https://wordpress.org/support/plugin/bbp-topic-like-button/)

## 설명

Once the function bbp_topic_like_button() is placed in your bbPress topic template
file it creates a div placeholder.
 This is the same for every user so the initial
page build can be globally cached. Once the document is ready an ajax request checks
if the current user has liked the current topic and then displays a like or unlike
button. Upon clicking the button a ajax request is sent to save the updated topic
likes. Topic likes are stored as post meta attached to the topic.

### Additional Info

The plugin cannot be activated without bbPress first being activated.
 If bbPress
is deactivated then this plugin will deactivate itself.

### Credits

Thanks to elhardoum author of bbp-messages for inspiration for the CheckReady class.

## 설치

The easiest way to install this plugin is to go to Add New in the Plugins section
of your blog admin and search for
 “bbPress Topic Like Button.” On the far right
side of the search results, click “Install.”

If the automatic process above fails, follow these simple steps to do a manual install:

 1. Extract the contents of the zip file into your `/wp-content/plugins/` directory
 2. Activate the plugin through the ‘Plugins’ menu in WordPress

## FAQ

  Can I customise the button?

Yes. The easiest way to do this is to pass in attributes when initially calling 
bbp_topic_like_button().

You can pass in attributes to set a custom user_id or topic_id, set before or after
html, customise the button text
 or add custom classes to the button.

Here is an example setting all possible custom options:

    ```
    $args = [
        'user_id'  => get_current_user_id(),
        'topic_id' => bbp_get_topic_id(),
        'before'   => '',
        'after'    => '',
        'like'     => __('Like', 'your-domain'),
        'unlike'   => __('Unlike', 'your-domain'),
        'class'    => ['my-custom-class', 'another-custom-class'],
    ];
    bbp_topic_like_button($args);
    ```

It is also possible to implement the filter get_bbp_topic_like_button to make any
final changes to the rendered html.

  Can I trigger a custom event when the like button is clicked

Yes, the action bbp_topic_like_button_clicked is fired on every button press.

E.g. implement like this:

    ```
    add_action('bbp_topic_like_button_clicked', 'my_plugin_bbp_topic_like_button_clicked', 10, 3);
    function my_plugin_bbp_topic_like_button_clicked($res, $user_id, $topic_id) {
        // Add code here to do something.
    }
    ```

## 후기

이 플러그인에 대한 평가가 없습니다.

## 기여자 & 개발자

“Topic Like Button for bbPress”(은)는 오픈 소스 소프트웨어입니다. 다음의 사람들이
이 플러그인에 기여하였습니다.

기여자

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

[자국어로 “Topic Like Button for bbPress”(을)를 번역하세요.](https://translate.wordpress.org/projects/wp-plugins/bbp-topic-like-button)

### 개발에 관심이 있으십니까?

[코드 탐색하기](https://plugins.trac.wordpress.org/browser/bbp-topic-like-button/)
는, [SVN 저장소](https://plugins.svn.wordpress.org/bbp-topic-like-button/)를 확인하시거나,
[개발 기록](https://plugins.trac.wordpress.org/log/bbp-topic-like-button/)을 [RSS](https://plugins.trac.wordpress.org/log/bbp-topic-like-button/?limit=100&mode=stop_on_copy&format=rss)
로 구독하세요.

## 변경이력

#### 1.0

 * First version released.

## 기초

 *  버전 **1.0**
 *  최근 업데이트: **8년 전**
 *  활성화된 설치 **10+**
 *  워드프레스 버전 ** 4.7 또는 그 이상 **
 *  다음까지 시험됨: **4.9.29**
 *  PHP 버전 ** 5.6 또는 그 이상 **
 *  언어
 * [English (US)](https://wordpress.org/plugins/bbp-topic-like-button/)
 * 태그:
 * [bbPress](https://ko.wordpress.org/plugins/tags/bbpress/)[like](https://ko.wordpress.org/plugins/tags/like/)
   [like button](https://ko.wordpress.org/plugins/tags/like-button/)[topic](https://ko.wordpress.org/plugins/tags/topic/)
 *  [고급 보기](https://ko.wordpress.org/plugins/bbp-topic-like-button/advanced/)

## 평점

아직 제출된 리뷰가 없습니다.

[Your review](https://wordpress.org/support/plugin/bbp-topic-like-button/reviews/#new-post)

[모든  리뷰 보기](https://wordpress.org/support/plugin/bbp-topic-like-button/reviews/)

## 기여자

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

## 지원

할 말 있으신가요? 도움이 필요하신가요?

 [지원 포럼 보기](https://wordpress.org/support/plugin/bbp-topic-like-button/)