前言介紹
- 這款 WordPress 外掛「GeneralStats」是 2007-03-23 上架。
- 目前有 100 個安裝啟用數。
- 上一次更新是 2017-11-09,距離現在已有 2734 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
- 外掛最低要求 WordPress 3.8 以上版本才可以安裝。
- 外掛要求網站主機運作至少需要 PHP 版本 5.3 以上。
- 有 2 人給過評分。
- 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。
外掛協作開發者
neoxx |
外掛標籤
user | count | stats | analytics | statistics |
內容簡介
ion, set it to 0 (false); default: 1 (true)
format: optional format-arguments; 0=short (default); 1=mid-size; 2=detailed
prefix: optional prefix for the display title; default to empty string
Example:
$generalstats->count(array('stat' => 0, 'display' => 1, 'thousands_separator' => '.', 'prefix' => 'Prefix: '));
原文外掛簡介
fully settings page configurable with GUI or manually
easy to integrate (ships with multi/sidebar- and dashboard-widget functionality)
possible to integrate in “Right Now” box or to display as widget on the dashboard
high performing with caching technology and customizable memory usage
cache-purge mechanism via actions (triggers) for other plugins
optional Ajax refresh with jQuery
fully compatible with https/SSL/TLS-sites
stats-update by e-mail
API for developers
fully multisite network compatible
clean uninstall
Please find the version for WordPress
3.8 and higher here
3.3 to 3.7 here
2.8 to 3.2 here
2.3 to 2.7 here
2.1 and 2.2 here
minor 2.1 here
Plugin’s website: https://www.bernhard-riedl.com/projects/
Author’s website: https://www.bernhard-riedl.com/
Attention! – Geeks’ stuff ahead! 😉
API
With GeneralStats 2.00 and higher you can use a function-call to display individual stat(-blocks) on different positions on your page.
Parameters can either be passed as an array or a URL query type string (e.g. “display=0&format=0”). Please note that WordPress parses all arguments as strings, thus booleans have to be 0 or 1 if used in query type strings whereas for arrays real booleans should be used. Furthermore you have to use the prefix stats_ to select different stats in a query_string. – For example: stat_0=Community&stat_12=Pages Word-Count.
function $generalstats->count($params=array())
$params:
stat: a stat-id of the following list
0 => ‘Users’
1 => ‘Categories’
2 => ‘Posts’
3 => ‘Comments’
4 => ‘Pages’
5 => ‘Links’
6 => ‘Tags’
7 => ‘Link-Categories’
10 => ‘Words_in_Posts’
11 => ‘Words_in_Comments’
12 => ‘Words_in_Pages’
thousands_separator: divides counts by thousand delimiters; default , => e.g. 1,386,267
display: if you want to return the stats-information (e.g. for storing in a variable) instead of echoing it with this function-call, set this to false; default setting is true
format_container: This option can be used to format the span container with css. Please note, that it should only be used to provide individual formats in case the class-style itself cannot be changed.
no_refresh: If set to true, GeneralStats will not produce any Ajax-Refresh-code, even if you have enabled the Ajax refresh in the admin menu.
The following example outputs the number of post tags:
count('stat=6');
?>
function $generalstats->output($params=array())
$params:
stat_selected: this array has to hold the id of the selected stat as key and the description as array-value, e.g. 6 => 'Post-Tags'; fallback to selected stats in Admin Menu
0 => ‘Users’
1 => ‘Categories’
2 => ‘Posts’
3 => ‘Comments’
4 => ‘Pages’
5 => ‘Links’
6 => ‘Tags’
7 => ‘Link-Categories’
10 => ‘Words_in_Posts’
11 => ‘Words_in_Comments’
12 => ‘Words_in_Pages’
before_list: default
after_list: default
format_stat: default
, %name and %count will be replaced by the attributes of the stat-entry
thousands_separator: divides numbers by thousand delimiters default , => e.g. 1,386,267
use_container: if set to true (default value) and the same selected stats and format is used as set in the admin menu, GeneralStats wraps the output in a html div with the class generalstats-refreshable-output – the class generalstats-output will be used for all other output; if you set use_container to false, no container div will be generated
display: if you want to return the stats-information (e.g. for storing in a variable) instead of echoing it with this function-call, set this to false; default setting is true
format_container: This option can be used to format the div container with css. Please note, that it should only be used to provide individual formats in case the class-style itself cannot be changed.
no_refresh: If set to true, GeneralStats will not produce any Ajax-Refresh-code, even if you have enabled the Ajax refresh in the admin menu.
The following example outputs the users and posts-counts with the title ‘Community-Members’ and ‘My Post-Count’:
array(
0 => 'Community-Members',
2 => 'My Post-Count'
)
);
$generalstats->output($params);
?>
Shortcodes
How-to for shortcodes
General Example:
Enter the following text anywhere in a post or page to show your current pages-count:
There are [generalstats_count stat=4] pages on my weblog
Available Shortcodes:
generalstats_output
Invokes $generalstats->output($params). Please note that you have to use the prefix stats_ to select stats. – For example: stat_0="Community" stat_12="Pages Word-Count"
generalstats_count
Invokes $generalstats->count($params).
Filters
How-To for filters
Available Filters:
generalstats_defaults
In case you want to set the default parameters globally rather than handing them over on every function call, you can add the filter generalstats_defaults in for example generalstats.php or your own customization plugin (recommended).
Please note that parameters which you hand over to a function call ($generalstats->output or $generalstats->count) will always override the defaults parameters, even if they have been set by a filter or in the admin menu.
generalstats_dashboard_widget
Receives an array which is used for the dashboard-widget-function call to $generalstats->output($params). display and use_container will automatically be set to true.
generalstats_dashboard_right_now
Receives an array which is used for the dashboard-right-now-box-function call to $generalstats->output($params). display and use_container will automatically be set to true.
generalstats_mail_stats_content
Receives an array which is used for the mail-stats-function call to $generalstats->output($params). display and use_container will automatically be set to false.
Available Actions:
generalstats_force_cache_refresh_stat
Gets triggered by GeneralStats’ forced cache refresh; receives a stat-id as parameter.
generalstats_force_cache_refresh_stats
Gets triggered by GeneralStats’ forced cache refresh; receives an array with stat-ids as parameter.
各版本下載點
- 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
- 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「GeneralStats」來進行安裝。
(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。
php 4 | wordpress 2.1 - 2.2 | wordpress 2.3 - 2.7 | wordpress 2.8 - 3.2 | wordpress 3.3 - 3.7 | wordpress minor 2.1 |
延伸相關外掛(你可能也想知道)
WP Statistics – The Most Popular Privacy-Friendly Analytics Plugin 》WP 統計數據:#1 的 WordPress 統計數據外掛, 您需要一個簡單的工具來了解您網站的統計數據嗎?您需要展示這些數據嗎?在分析對您的業務或網站感興趣的人時,...。
Burst Statistics – Privacy-Friendly Analytics for WordPress 》使用 Really Simple Plugins 的 Burst Statistics,可以獲得訪客行為的詳細洞察。這是一個隱私友好的分析儀表板。, 功能, , 基本指標:瀏覽量、訪客人數、會...。
Statify 》Statify 提供了一個簡單明瞭且節省空間的網站瀏覽次數查詢功能。它是隱私友好的,因為它既不使用 Cookies,也不使用第三方。, 一個互動圖表後面會顯示參照來...。
Matomo Analytics – Ethical Stats. Powerful Insights. 》已經使用 Matomo On-Premise 或 Matomo Cloud 的使用者?您需要使用 WP-Matomo 外掛而非此外掛。, 對於所有想要以更輕鬆的方式獲取顧客洞察資訊以發展自己的...。
Connect Matomo (WP-Matomo, WP-Piwik) 》如果您尚未使用Matomo On-Premise、Matomo Cloud或自己的Matomo實例,請使用 Matomo for WordPress 外掛。, 此外掛程式使用 Matomo API 在 WordPress 儀表板...。
StatCounter – Free Real Time Visitor Stats 》官方 StatCounter WordPress 外掛為您的 WordPress 網誌帶來所有有力的 StatCounter 功能。, 包括但不限於以下功能:, , 隱形計數器選項, 可配置計數器, 可配...。
Analyticator 》檢查最新的 WordPress 優惠,適用於您的網站。, Google Analyticator 讓您輕鬆在 WordPress 儀表板中查看 Google Analytics 數據。這樣就不需要編輯您的佈景...。
Koko Analytics 》Koko Analytics 是一款針對 WordPress 的隱私友好型分析外掛程式。它不使用任何外部服務,所以您的訪客資料永遠不會與任何第三方公司分享。, 此外,它不會收...。
WP Visitor Statistics (Real Time Traffic) 》這是一個用於 WordPress 網站訪客統計的綜合外掛程式。您無需依賴外部服務,就能追蹤 WordPress 網站的統計數據。使用者能夠顯示有多少用戶在 WordPress 博客...。
Yandex Metrica 》最好的 WordPress Yandex Metrica 外掛程式。, Metrica 是什麼, Metrica 是一個類似 Google Analytics 的分析工具。您可以從 [官方網站] (https://metrica.ya...。
Statify – Extended Evaluation 》這個外掛程式評估了使用隱私友好的Statify外掛所收集的數據。Statify僅儲存每個頁面瀏覽的日期、引薦人和目標網址。, 這個外掛程式根據以下標準進行評估:, ,...。
Яндекс Метрика 》這個外掛可以讓您輕鬆在您的網站上插入 Yandex Metrics 計數器代碼。您不需要編輯您的佈景主題檔案,而且即使更改您的活動主題,計數器仍然可以正常運作。, ...。
WP Server Health Stats 》WP Server Health Stats 外掛可以讓你監控 WordPress 網站的核心層級。透過重要的伺服器健康統計資訊,如配置的 PHP 記憶體,記憶體使用量、即時 RAM 使用量...。
Plausible Analytics 》Plausible Analytics 是一個簡單、開源、輕量且注重隱私的網站分析工具,是 Google Analytics 的替代品。, , Plausible Analytics 不使用 cookies,完全符合 ...。
NewStatPress 》NewStatPress 是 StatPress 的新版本,是第一個能即時追蹤您的部落格訪問統計資訊的 WordPress 外掛。它能夠收集有關訪客、搜尋引擎爬蟲、搜尋關鍵字、訪客的...。