MC Annual Upcounter

外掛說明

Pounds of wasted food, gallons of ice cream, babies born, cars sold … any number that accrues througout the year, updated live on the website page.
* Enter a total number of anything for the full year. This plugin shows the corresponding accumulated number at this date and time in a continuously-running live counter on website pages.
* The counter automatically re-sets the running total to zero when the user’s device reaches midnight on December 31.
* You can re-set the total number for the year at any time and the plugin will recalculate.

螢幕擷圖

  • This is a screenshot of how the counter looks on a national gleaning organization website.
  • Here's an example based on 465 million gallons per year.
  • This is an upcount of babies born in the U.S., most recently, 3,788,235 in a year.
  • This is the settings page. Enter your annual total and how often you want the counter to update on the web page.

安裝方式

  1. Download and Activate the plugin.
  2. The settings page link is on the left vertical menu, as “MC Annual Upcounter” under “Settings, and also under the namne on the plugins list.”
  3. On the settings page, enter the number that is your total for the year. The plugin will track the count, by second, throughout the year and show the number on the web page.
  4. On the settings page, enter how often the counter will update, 1-120 seconds.
  5. Add the shortcode [mcau_annual_upcounter] to any page, sidebar, or the footer. Add it to your text to have the count show in a sentence.

常見問題集

How often will the counter update on the webpage?

  • It will recalculate and update on the page every 1 to 120 seconds – you set the update frequency. For most purposes, 120 seconds is fine. For very large numbers that will change every few seconds, you might want to update more frequently.

What is the shortcode?

  • [mcau_annual_upcounter]

Where can I enter the shortcode?

  • On any page or pages, sidebar, or footer.

Can I re-set the total for the year at any time?

  • Sure. The plugin will just do the math the next time the page loads.

How do I re-set the count on January 1?

  • You don’t have to. It will automatically re-set to zero when the user’s device reaches midnight on December 31.

使用者評論

這個外掛目前沒有任何使用者評論。

參與者及開發者

以下人員參與了開源軟體〈MC Annual Upcounter〉的開發相關工作。

參與者

將〈MC Annual Upcounter〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

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

變更記錄

  • 2.1.2. Code edits. Compatible now with PHP 8.
  • 2.1.1 Code edit. Compatible with PHP 7.4
  • 2.1 Initial release on WordPress.org