[WordPress] 外掛分享: WFTDA Rankings Widget

首頁外掛目錄 › WFTDA Rankings Widget
全新外掛
安裝啟用
尚無評分
772 天前
最後更新
問題解決
WordPress 3.0.1+ v1.1.0 上架:2020-04-09

內容簡介

在您的網站上新增一個小工具,顯示從 stats.wftda.com 取得的 WFTDA 統計資料。

目前,此小工具將會從 http://stats.wftda.com/league/{league} 抓取資料。一旦 WFTDA 提供 API,此小工具將會使用該 API。

此外掛程式是由一名滾軸溜冰裁判、粉絲和聯盟成員所開發。它並未經 WFTDA 批准、認可,也不是 WFTDA 的一部分。我只是為了滿足我個人聯盟的需求,並希望分享出來。

有措施可以保證我們不會使統計網站過度負荷:

除非 API 提供了很好的方法,否則我們不會使用即時數據
第一次檢索每個聯盟的排名後,排名將會在本地儲存,並且只有在資料超過 24 小時時才會更新

未來的增強功能

小工具的更多配置選項:

選擇要顯示的統計資料
視覺上的自定義

建立一個區塊
提供為短代碼
增加可擴展性的掛鈎(hooks)
當 API 可用時轉換為 API

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.1.0) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「WFTDA Rankings Widget」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

NOTE: This widget is not currently compatible with block themes. When installing on WordPress versions 6.0 or higher, you will also need to install the Classic Widgets plugin.
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
See the widget in action.

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

文章
Filter
Apply Filters
Mastodon