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

Unique Post Views Counter

外掛說明

This one is counts and dipslay all unique users hits or views for each post on our blog.
We are saving every information in the database.
Once we activate this plugin, it will automatically create table in the database.

安裝方式

  1. Download the file
  2. Upload and extract the file the copy the folder into our plugin location like (wp-content/plugins/unique_post_view_conter)
  3. Activate the plugin from admin side.
  4. If you want to display uniquer user count add this function in single.php . <?php unique_views(get_the_ID()); ?> Unique Views
  5. If you want to display full count add this function in single.php . <?php total_views(get_the_ID()); ?> Total Views

使用者評論

2016 年 9 月 3 日
total count do not work, because there is a bugg, so replace the function for this: function update_views($post_id) { global $wpdb; $p2_table = $wpdb->prefix.unique_p2_table(); $views = get_total_views($post_id) + 1; if (get_total_views($post_id) == 0) insert_views($views, $post_id); $result = $wpdb->query("UPDATE $p2_table SET view = $views WHERE post_id = '$post_id' AND ip_addres = '".$_SERVER['REMOTE_ADDR']."'"); return ($result); }
閱讀全部 3 則使用者評論

參與者及開發者

以下人員參與了開源軟體〈Unique Post Views Counter〉的開發相關工作。

參與者

將〈Unique Post Views Counter〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

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