[WordPress] 外掛分享: Tabellen von faustball.com

前言介紹

  • 這款 WordPress 外掛「Tabellen von faustball.com」是 2018-05-15 上架。
  • 目前有 30 個安裝啟用數。
  • 上一次更新是 2025-04-22,距離現在已有 11 天。
  • 外掛最低要求 WordPress 4.9.0 以上版本才可以安裝。
  • 外掛要求網站主機運作至少需要 PHP 版本 5.6 以上。
  • 尚未有人給過這款外掛評分。
  • 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。

外掛協作開發者

docolli |

外掛標籤

table | faustball | shortcode |

內容簡介

此小型插件可讓您輕鬆地將動態更新的表格從 www.faustball.com 整合到每個頁面、文章和小工具中。它提供多種設計和配置選項,例如自定義表格標題(包括外部比賽數據和比賽鏈接)、顯示/隱藏表格標題、自定義比賽列標題、faustball.com 的面包屑導航、以您的球隊高亮顯示表格行、標記晉級和降級的球隊行,以及顯示/隱藏帶有球的列。

為了不阻塞您的主頁,當 faustball.com 沒有及時響應時,可以設置可配置的超時(默認為1秒)。此插件還啟用 HTML 小工具中的簡碼使用(在標準 WordPress 中禁用)。最後,您可以搜索所有頁面以查找 [faustball] 簡碼,以便輕鬆識別可能需要對 [faustball] 簡碼設置進行重新編輯的頁面。

為了減輕對 faustball.com 的負擔,此插件使用具有可配置的 TTL 的本地表緩存。只有在 TLL 過期時才會從 faustball.com 請求新數據。此外,它可以檢測到爬行器、機器人和蜘蛛的請求,然後僅發送緩存中的數據。如有必要,可以刪除緩存的數據。

使用非常簡單:

簡碼

[faustball contest=<比賽編號>]

基本上就這麼簡單!

屬性 "contest" 為必填項,並描述應在其中顯示表格的比賽。要查找編號,請轉到 faustball.com 上期望的比賽頁面,然後從 URL 中複製編號。這是Dirk Haase的說明中的ID相同。
例如:在男子“Bundesliga Süd”2018年賽季中,表格位於此比賽鏈接中:https://faustball.com/#/contest/257/competition。
這意味著必須輸入 contest = 257 在簡碼中:

[faustball contest=257]

這是使用的最簡單形式。

其他可選屬性
ownteam='<own team>' [string/1/0]

如果設置了此屬性,則對應的表格行將提供 CSS 類 "fb_ownteam",如果傳輸的名稱與表格中的球隊名稱匹配(子字符串就足夠)的話。
可以使用相應的 CSS 標記突出顯示此行。
如果此屬性設為“1”,將使用在插件設置中定義的 ownteam 字符串。
如果未使用此屬性或將其設置為“0”,則不會添加 CSS 類 "fb_ownteam"。

balls='<balls>' [0/1]

使用此屬性可隱藏“balls (球)”列。為此,該列附帶 CSS 類 "display-none"。當然,需要在樣式表中定義帶有“display: none;”的 CSS 類 "display-none"。
優點是,在表格代碼中添加此額外的可選 CSS 標記後,可以顯示一次不帶球的表格(例如在側邊欄中的小工具中),以及在球隊頁面中顯示相同的表格以及帶有球的表格。
如果未使用該屬性,則會顯示球。

header='<header>' [0/1]

使用此屬性可控制第一個標題行的顯示。
如果未使用此屬性,則會顯示第一個標題行。有關格式化能力的信息,請參閱屬性 "ownheader"。

ownheader='<ownheader>' [string]

此屬性可用於組合自定義表頭。它可以包含文字和可選的 HTML 標記。例如使用='”將表頭置於右側。
報告帶有類似 fb_promotion 的類的升級和降級的行。所有類都以“fb_”開頭,可以添加自己的流量。
例如:
[faustball contest = 257 ownheader=“ Ranking”]。

原文外掛簡介

This small plug-in enables an easy integration of dynamically updated tables from www.faustball.com into every page, post and widget. It offers many design and configuration possibilities, like a custom table header (including external contest data and link to contest), show/hide table headers, custom contest column headers, breadcrump navigation from faustball.com, highlight the table row with your own team, marking of the rows of promoted and relagated teams, as well as to show/hide the column with the balls. To not block your homepage when faustball.com does not respond timely, a configurable timeout (default 1s) can be set. This plugin also enables the usage of shortcodes in HTML Widgets (disabled in standard WordPress). Finally you can search all pages for the [faustball] shortcode, so you can easily identify the pages, where a rework on the [faustball] shortcode settings might need to be done. To reduce load on faustball.com this plugin uses a local table cache with configurable TTL. Only when the TLL has expired new data is requested from faustball.com. Additionally requests from crawlers, bots and spiders are detected and only data from the cache is then sent. The cached data can be deleted, if necessary.
Usage is very easy:
The shortcode
[faustball contest=]

is basically all it takes!
The attribute “contest” is mandatory and describes the competition from which the table should be displayed. To find out the number, go to the desired competition page on faustball.com and copy the number from the URL. This is the same number as the ID in Dirk Haase’s instructions.
Example: In the field season 2018 in men’s “Bundesliga Süd”, the table is located in this contest link: https://faustball.com/#/contest/257/competition.
This means that contest = 257 must be entered in the shortcode:
[faustball contest=257]

This is the simplest form of use.
Other optional attributes
ownteam='' [string/1/0]

If this attribute is set, the corresponding table line is provided with the CSS class “fb_ownteam”, if the transfered name matches (substring is sufficient) a team name in the table.
This line can be highlighted using the appropriate CSS markup.
If this attribute is set to “1”, the ownteam string that is defined in the plugin settings is used.
If this attribute is not used or set to “0”, no CSS class “fb_ownteam” is added.
balls='' [0/1]

The “balls” column can be hidden using this attribute. For this purpose, the column is provided with the CSS class “display-none”. A definition of the CSS class “display-none” with “display: none;” in the stylesheet is of course also necessary.
The advantage is that with this additional, optional CSS markup in the table code, it is possible to display a table once without balls (e.g. in a widget on the side), but the same table with the balls on a team page.
If the attribute is not used, the balls are displayed.
header='

' [0/1]

With this attribute the display of the first header row can be controlled.
If this attribute is not used, the first header row is shown. See also attribute ‘ownheader’ for formating capabilities.
ownheader='' [string]

This attribute enables to compose the first header row with custom text and data from the contest.
If this attrubute is not used or is empty, the format string from the settings page is used (Default: ‘%A%: %N% %R%’).
%A% = Association
%N% = Name of contest
%R% = Region
%C% = Category
%G% = Gender
%O% = String from ownteam attribute (empty, if ownteam attribute is not defined)
%L% = Link header to contest (position in attribute is not relevant)
Examples:
* “My Team 1 – %N%”
* “%L%My Team 1 – %N%”
* “%O% – %N% %L%”
breadcrump='' [0/1]

Shows the breadcrump navigation from faustball.com in a second table header row.
If the attribute is not used, the navigation row is not shown.
contestlink='' [0/1]

Controls the display of the table footer area with the link to the faustball.com contest and info about cached data.
If the attribute is not used, the area is shown.
The shortcode can then look like this:
[faustball contest=257 ownteam="TV SW-Oberndorf" ownheader="%O% - %C%, %N%" balls=0 contestlink=0]

See Screenshots for a view of this shortcode.
Plugin settings
The whole Plugin is very configurable. See help section of the plugin settings page.
* You can predefine your match string, that will be used for [faustball] shortcodes, that have the attribute ownteam=’1′.
* The ownteam string search strategy can be selected (wildcard/exact match)
* The table header can be predefined, that will be used for every [faustball] shortcode, unless you define something different directly in the shortcode.
* Every column heading can be defined (also with empty string).
* Set the timeout after which the plugin cancels the query of a table (default: 1s).
* Set the time range how long cached data is valid until fresh data is requested from faustball.com (default: 900s).
* Activate the usage of shortcodes in HTML Widgets (default: true).
Plugin Homepage

各版本下載點

  • 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
  • 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「Tabellen von faustball.com」來進行安裝。

(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。


1.2.4 | 1.3.2 | 1.3.3 | 2.0.0 | 2.0.1 | 2.0.2 | 2.0.3 | 2.0.4 | 2.1.0 | 2.1.1 | 2.1.2 | 2.2.0 | trunk |

延伸相關外掛(你可能也想知道)

  • WP Shortcodes Plugin — Shortcodes Ultimate 》Shortcodes Ultimate 是一個全面的視覺與功能性元素收集,您可以在文章編輯器、文字小工具甚至是範本檔案中使用。使用 Shortcodes Ultimate,您可以輕鬆地建...。
  • MW WP Form 》MW WP Form 可以使用 shortcode 創建帶有確認畫面的郵件表單。, , 使用 shortcode 創建表單, 可以使用確認頁面。, 頁面可以使用相同的 URL 或個別的 URL 進行...。
  • Shortcoder — Create Shortcodes for Anything 》Shortcoder 外掛可讓您建立 HTML、JavaScript、CSS 和其他代碼片段的自訂捷徑。現在,這些捷徑可以在文章/頁面中使用,並且該片段將取代其位置。, ✍ 輕鬆建立...。
  • Display Posts – Easy lists, grids, navigation, and more 》Display Posts 讓您輕鬆地列出網站上的所有內容。首先在內容編輯器中新增此短碼,以列出最近的文章清單:, [display-posts], , 按類別篩選, 若只想顯示特定類...。
  • Widget Shortcode 》這個短碼需要小工具的ID,但不需要猜測,外掛會為你生成代碼。如果你想要覆蓋小工具的標題,你可以使用 "title" 參數:, [widget id=”text-1″...。
  • Woody code snippets – Insert Header Footer Code, AdSense Ads 》需要專業的支援嗎?, 免費獲取支援, 開始獲得高級支援, , 停止反覆使用相同的內容!, 停止插入 function.php 中的 PHP 代碼!, 停止將 Google Analytics、Yan...。
  • Column Shortcodes 》此外掛提供簡單易用的短碼,在您的文章或頁面中輕鬆創建欄位。有時候,您只需要將網頁切成不同的欄位。使用此外掛,您只需選擇一個欄位的短碼,便可將欄位加...。
  • amr shortcode any widget 》使用shortcode將小工具或多個小工具或整個小工具區域(側邊欄)插入到頁面中。, 首先在正常的側邊欄中設置小工具。 檢查它是否正常運作。, 然後將所選小工具...。
  • Shortcode in Menus 》此外掛讓你可以在 WordPress 導覽選單中使用簡碼,以便可以動態生成連結。也可以讓你在導覽選單中添加完整的 HTML 段落。, 使用方法, 查看截圖。, 另外,查看...。
  • Sidebar Widgets by CodeLights 》❗ 很抱歉,由於 SiteOrigin 的 widgets API 完全更改,CodeLights 不再支援 SiteOrigin Page Builder 的原生使用。解決方案:您仍然可以在純文字編輯器中創...。
  • Advanced iFrame 》看起來您正在尋找一個 WordPress 外掛 - Advanced iFrame Pro。這個外掛可讓您使用 iframe 包含其他網頁到您的網站中,同時具有隱藏和修改元素、自動調整高度...。
  • Insert Pages 》Insert Pages 可讓您使用 Shortcode API,將任何 WordPress 內容(例如,頁面、文章、自訂文章類型)嵌入其他 WordPress 內容。它還包括一個小工具,可將頁面...。
  • Shortcodes by Angie Makes 》Shortcodes by Angie Makes 外掛為您的 WordPress 主題新增一系列易於使用的短碼,這些短碼與 Angie Makes WordPress 主題 完美搭配。, 範例, 請到此查看這些...。
  • Team Members 》這個外掛會為管理員面板增加一個「團隊」區塊,讓您可以輕鬆地在網站上展示您的員工/職員。您可以快速地將成員加入您的團隊,加入他們的照片、職位、個人簡介...。
  • Post Snippets – Custom WordPress Code Snippets Customizer 》, 建立自訂短碼和可重複使用的內容,並將它們插入到您的文章和頁面中。, , 此外掛讓您建立 HTML、PHP 程式碼或常用文字片段的庫。在文章和頁面中,您可以使用...。

文章
Filter
Apply Filters
Mastodon