這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

CS Likes Counter

描述

Counter allows you to count the likes and dislikes.

Counting is carried out using AJAX.

Limitation of cheating over IP (from one IP can vote with 10 minutes intervals).

Usage

Simply place the template single.php function call inside the loop

<?php while(have_post()) : the_post(); ?>
    <?php echo CS_Likes::show_buttons_like(); ?>
<?php endwhile; ?>

Or use ID of post, if function call outside the loop

<?php echo CS_Likes::show_buttons_like($post_id); ?>

To obtain the number of likes, use the function:

<?php $likes_count = CS_Likes::get_post_likes($post_id); ?>

To obtain the number of dislikes, use the function:

<?php $dislikes_count = CS_Likes::get_post_dislikes($post_id); ?>

安裝

  1. Upload cs-likes-counter directory to the /wp-content/plugins/ directory
  2. Activate the plugin through the Plugins menu in WordPress
  3. Place function in your template inside the loop

or

  1. Install plugin directly in WordPress through the Plugins, Add New -> Search panel
  2. Search for CS Likes Counter
  3. Place function in your template inside the loop

常見問題

I’m having issues getting the plugin to work what should I do?

See the FAQs page for a detailed rundown of common issues

評價

閱讀全部3個評價

貢獻者及開發者

“CS Likes Counter” 是一個開源的軟體。以下的人對這個外掛作出了貢獻。

貢獻者

將 CS Likes Counter 外掛本地化為台灣繁體中文版。

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

修改日誌

1.0

  • First stable release.

1.0.2

  • Add Russian Language support
  • Add likes metabox to page

1.0.3

  • Add support function outside the loop

1.0.4

  • Update for wordpress 4.5

1.0.5

  • Update for wordpress 4.7.4
  • function CS_Likes::show_buttons_like($post_id = NULL, $show = false) add parameter $show for display vote form

1.0.6

  • Update for wordpress 4.9.8

Example 1: CS_Likes::show_buttons_like(”, true) for display inside post loop
Example 2: CS_Likes::show_buttons_like($post_id, true) for display outside post loop