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

WFTDA Rankings Widget

描述

Add a widget to your site with the WFTDA stats from stats.wftda.com.

Currently, the widget will scrape the data from http://stats.wftda.com/league/{league}. Once the WFTDA makes an API available, it will use that API.

This plugin was developed by a roller derby referee, fan, and league member. It isn’t approved of, endorsed, or part of the Women’s Flat Track Derby Association (WFTDA). I just made this to meet a need in my own league and wanted to share it.

There are measures in place to ensure we don’t overload the stats site:

  • We won’t use live stats unless and until the API has a good way to do that
  • Rankings for each league will be stored locally when first retrieved and then refreshed only if the data is over 24 hours old

Future enhancements

  • More configuration options for the widget:
    • Choice of which stats to display
    • Visual customizations
  • Create a block
  • Make available as a shortcode
  • Add hooks for extendability
  • Convert to API when available

螢幕截圖

  • The widget as it appears on the page
  • Widget settings

安裝

  1. Install directly from WordPress.org, upload wftda-rankings-widget.zip under Plugins > Add New, or install via WP-CLI using wp plugin install wftda-rankings-widget
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Add the widget in the Customizer
  4. The League Slug should match the portion of the address of your league’s stats after the last slash. e.g., if the address for your league’s stats page is https://stats.wftda.com/league/super-fantastic-derby, enter super-fantastic-derby under League Slug

常見問題

What if it doesn’t work?

  • Make sure it’s installed properly
  • Make sure your site can read external URLs
  • Activate WP_DEBUG and check for any errors
  • Ask on the support forums

Can I help make the plugin better?

評價

There are no reviews for this plugin.

貢獻者及開發者

“WFTDA Rankings Widget” 是一個開源的軟體。以下的人對這個外掛作出了貢獻。

貢獻者

將 WFTDA Rankings Widget 外掛本地化為台灣繁體中文版。

對開發相關資訊感興趣?

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

修改日誌

1.0.2 – 2020-04-12

  • Readme updates

1.0.1 – 2020-04-05

  • Converted to HTTP API
  • Updated league data storage to prevent refreshes on every page load

1.0.0 – 2020-03-21

  • The initial release