Kama Click Counter

描述

With this plugin, you can gather statistics on clicks for file downloads or any other link across the site.

To insert a file download block, use the [download url="any file URL"] shortcode.

The plugin does not include additional tools for uploading files. All files must be uploaded using the standard WordPress media uploader. The URLs are then used to create the download block.

Additionally, the plugin includes:

  • A button in the visual editor for quickly inserting the file download block shortcode.
  • A customizable widget that allows you to display a list of “Top Downloads” or “Top Link Clicks.”

螢幕截圖

  • Statistics page.
  • Plugin settings page.
  • Single link edit page.
  • TinyMCE visual editor downloads button.

常見問題

How can I customize the download block with CSS?

You can customize CSS styles on the plugin options page. Alternatively, you can add CSS styles to the style.css file of your theme.

評價

2022年8月12日
Использую этот плагин для своего проекта. Все красиво, все наглядно. Есть пожелания сделать возможность вставлять файлы/ссылки не во всю строку по ширине, а допустим фиксированного размера (200 х 200 px.) или размеры указать в процентах. Это нужно для того, чтобы я в ряд мог разместить 3 файла для скачивания или сделать обтекание текстом. Пока не понятно как измерить размер и цвет шрифта на кнопках для скачивания файлов. В целом плагин очень хороший! Большое спасибо разработчикам! I use this plugin for my project. Everything is beautiful, everything is clear. There are wishes to make it possible to insert files / links not in the entire line in width, but let's say a fixed size (200 x 200 px.) Or specify the dimensions as a percentage. This is necessary so that I can place 3 files in a row for download or make text wrapping. It is not yet clear how to measure the size and color of the font on the buttons for downloading files. In general, the plugin is very good! Many thanks to the developers!
2021年5月26日
There is a foreign link that enters the list of download addresses, you must update it immediately.
2016年9月3日 2 replies
It just count the clicks done with the left-click mouse button. Doesn’t count clicks done with the mouse wheel, which opens in new tab. Also doesn’t count clicks from mobile browsers. Tested with iPhone and Android. I think it’s not hard to track all clicks with an onclick event, using jQuery perhaps. In any case Kama Click Counter is good for a start, just needs improvement. Good work!
2016年9月3日
Это действительно то, что нужно для меня. Очень крутое решение. Очень крутые возможности. Спасибо, Тимур!
閱讀全部8個評價

貢獻者及開發者

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

貢獻者

Kama Click Counter 外掛目前已有 1 個本地化語言版本。 感謝所有譯者為這個外掛做出的貢獻。

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

對開發相關資訊感興趣?

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

修改日誌

4.0.2

  • CHG: Min PHP version 7.0 >> 7.1.
  • FIX: Plugin init moved to after_setup_theme hook to avoid some conflicts.
  • IMP: minor improvements.
  • UPD: Tested up to: WP 6.8.0

4.0.1

  • FIX: Bug in counter.js script.

4.0.0

  • CHG: Requires PHP >= 7.0.
  • DEL: Removed backcompat code.
  • IMP: Code refactored.
  • ADD: PHP class autoloader.
  • ADD: PHP namespaces.
  • CHG: Filter kcc_admin_access renamed to kcc_manage_access.
  • CHG: Filter parce_kcc_url renamed to click_counter__parse_kcc_url.
  • CHG: Filter get_url_icon renamed to click_counter__get_icon_url.

3.6.10

  • IMP: Minor improvements.

3.6.9

  • IMP: Performance improvements; no jQuery dependency for base count JS.

3.6.8.2

  • FIX: Bug in previous version.

3.6.8.1

  • FIX: Protocol for external links issue (leaving //).
  • FIX: Compatibility with PHP 7.4.

3.6.8

  • FIX: Wrong URL count with query parameters.
  • FIX: Bug in widget loop.
  • FIX: Other minor fixes.

3.6.7.3

  • FIX: <title> parsing issue.

3.6.7

  • FIX: Wrong counting with “hide link under id” option enabled.
  • FIX: Minor code fixes.

3.6.6

  • FIX: access_role option not saved.
  • ADD: desc attribute to shortcode.

3.6.5

  • FIX: Filesize parsing issue due to missing HTTP protocol.

3.6.4.2

  • CHG: Minor changes to download block HTML markup and CSS styles.

3.6.4

  • ADD: urldecode for incoming URLs when saving to DB. Thanks to Mark Carson.
  • NEW: Exclude URL counting filter added (see options page).

3.6.3

  • FIX: esc_url() for wp_redirect() to avoid spaces deletion. Thanks to Mark Carson.

3.6.2

  • ADD: in_post field on edit link admin page to change associated post ID.
  • ADD: Sanitize data on edit link POST request.
  • NEW: Save URLs without protocol (//site.ru/foo).
  • FIX: Admin list search starting from pagination page.
  • FIX: Detection of URLs without protocol.
  • FIX: Title detection for protocol-less URLs using WP HTTP API.
  • FIX: Minor bug fixes.

3.6.1

  • ADD: title attribute for [download] shortcode.
  • ADD: Improved TinyMCE button modal window (browse media library).
  • FIX: Count clicks from mouse wheel and context menu.

3.6.0

  • CHG: Class name KCClick changed to KCCounter.
  • CHG: Icon in TinyMCE visual editor updated.

3.5.1

  • CHG: Move localization to translate.wordpress.org.
  • FIX: Minor code fix.

3.5.0

  • FIX: XSS vulnerability fixed.
  • CHG: Class name KCC changed to KCClick.
  • CHG: Translate PHP code to English (Russian moved to localization file).

3.4.9

  • FIX: Remove admin-bar link for roles without plugin access.

3.4.8

  • ADD: “Clicks per day” data on edit link screen.

3.4.7 – 3.4.7.3

  • FIX: Table structure to support utf8mb4_unicode_ci charset.

3.4.6

  • ADD: get_url_icon filter to manage icons.

3.4.5

  • ADD: Administrator option to assign plugin access to other WP roles.
  • ADD: Option to add KCC Stats link to admin bar.
  • DEL: Removed HTTP_REFERER block on direct KCC URL use.

3.4.4

  • CHG: is_file extension check method for URL.
  • ADD: kcc_is_file filter.
  • ADD: Widget option to set link to post instead of file.
  • DEL: Removed kcc_file_ext filter.

3.4.3

  • ADD: Hooks parce_kcc_url, kcc_count_before, kcc_count_after.
  • ADD: Second parameter $args to kcc_insert_link_data filter.
  • ADD: Punycode support for link filtering.
  • FIX: Count clicks from mouse wheel, touch, and ctrl+click.

3.4.2

  • ADD: kcc_admin_access filter to change access capability.
  • FIX: Redirect protection fix.

3.4.1

  • FIX: KCC URL parsing issue.

3.4.0

  • ADD: Option to hide URL in download block.
  • ADD: link_url column index in DB for performance.
  • ADD: Hooks get_kcc_url, kcc_redefine_redirect, kcc_file_ext, kcc_insert_link_data.
  • ADD: Replace ugly URL with original URL on hover.
  • ADD: Replace “edit link” text in download block with icon.
  • FIX: Duplicate URL updates (e.g., containing % symbol).
  • FIX: XSS protection added.
  • FIX: Code structure fixes.

3.3.2

  • FIX: PHP notice.

3.3.1

  • ADD: de_DE localization. Thanks to Volker Typke.

3.3.0

  • ADD: Localization on plugin page.
  • ADD: Menu to admin page.
  • FIX: Antivirus false positive detection.

3.2.34

  • FIX: Admin CSS changes.

3.2.3.3

  • ADD: jQuery links now hidden with #kcc anchor and onclick attribute.
  • FIX: parse_url bug when URL contained “=” character.

3.2.3.2

  • FIX: Redirect to URL with space (" ") character.
  • ADD: Round “clicks per day” value to one decimal on admin stats page.

3.2.3.1

  • FIX: “Back to stat” link on “edit link” admin page.

3.2.3

  • FIX: Redirects to HTTPS were not working correctly.
  • FIX: PHP < 5.3 support.
  • FIX: “Go back” button on “edit link” admin page.
  • FIX: Localization issues.

3.2.2

  • ADD: “Go back” button on “edit link” admin page.

3.2.1

  • CHG: Auto-replace old shortcodes [download=""] with [download url=""] in DB during update.

3.2

  • ADD: Widget feature.