Title: TTLive
Author: finalan
Published: <strong>2012 年 10 月 15 日</strong>
Last modified: 2017 年 3 月 20 日

---

搜索插件

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://s.w.org/plugins/geopattern-icon/ttlive.svg)

# TTLive

 作者：[finalan](https://profiles.wordpress.org/finalan/)

[下载](https://downloads.wordpress.org/plugin/ttlive.zip)

 * [详情](https://cn.wordpress.org/plugins/ttlive/#description)
 * [评价](https://cn.wordpress.org/plugins/ttlive/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/ttlive/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/ttlive/#developers)

 [支持](https://wordpress.org/support/plugin/ttlive/)

## 描述

A simple wordpress plugin to get the data from the ttlive-system and display in 
your wp-post or wp-page with shortcode. You can also use a widget to show the match-
results and preview in a sidebar.

Tischtennislive is a german online sport result system (http://www.tischtennislive.
de). TTLive-Plugin help you, to show current team results on your WP-Page or WP-
Posts.

Mit Hilfe dieses Plugins kann man die aktuellen Ergebnisse und Daten vom Tischtennislive-
System ziehen und auf seiner eigenen Vereinsseite darstellen.

Es können die Elemente Mannschaft, Spielplan, Tabelle und 14Tage angezeigt werden.
Dabei aktualisiert dieses Plugin regelmäßig die Daten und speichert die entsprechende
XML-Datei.

## 安装

 1. Download and unzip `ttlive`-zip-file
 2. Upload `ttlive`-directory to the `/wp-content/plugins/` directory
 3. Activate the plugin through the ‘Plugins’ menu in WordPress
 4. Set base url in admin settings/options.
 5. Place `[ttlive]` shortcode in your posts or pages. Use parameter to select which
    data you will show.

Parameters:
 elementname – Rueckgabe-Element – mögliche Werte: Mannschaft, Spielplan,
Tabelle, 14Tage oder Rangliste mannschaft_id – TTLive Mannschaft ID staffel_id –
TTLive Staffel ID tableclassname – css-Klassenname der Tabelle own_team – Name des
eigenen Teams runde – Vorrunde = [ttlive runde=1] (default), Rückrunde = [ttlive
runde=2] showxdays – 14Tage: Anzahl der Tage die dargestellt werden sollen (default
= 14) max – 14Tage: Anzahl der Tage die maximal dargestellt werden sollen (default
= 0) widget – 14Tage: Für die Darstellung in einem Widget – default = 0 –> legt 
man den Schalter auf 1, wird eine Darstellung optimiert für ein Sidebar-Widget verwendet
teamalias – Nur für die Tabelle: “Teamname:Alias;Teamname2:Alias2;…” showleague –
Nur für die Tabelle: Ueberschrift-Anzeige der Liga (default: 1) showmatchecount –
Nur für die Tabelle: Anzahl der gemachten Spiele (default: 1) showsets – Nur für
die Tabelle: Anzahl der gewonnenen/verlorenen Saetze (default: 1) showgames – Nur
für die Tabelle: Anzahl der gewonnenen/verlorenen Spiele (default: 1) aufstiegsplatz–
Nur für die Tabelle: Aufstiegsplaetze bis (default: 2) abstiegsplatz – Nur für die
Tabelle: Abstiegsplaetze ab (default: 9) relegation – Nur für die Tabelle: Relegationsplätze(
default: ”) Beispiel: relegation=”2,8″ -> 2 für die Relegation Aufstieg, und 8 für
Abstieg saison – Nur für Hallenplan: (default: ”) Wenn ”, dann wird kein Hallenplan
angezeigt. Das erste Jahr der Saison muss hier gesetzt werden. display_type – Nur
für Rangliste: (default: 1) Wenn 0, dann werden nur die Spieler angezeigt die eine
gültige LivePZ haben display_type – Nur für die 14Tage: die letzten 14Tage (0 – 
default) oder die naechsten 14Tage (1) refresh – Anzahl Stunden bis die Daten erneut
vom Live-System aktualisiert werden sollen

Examples with base url (http://bettv.tischtennislive.de):
 [ttlive elementname=”
Mannschaft” mannschaft_id=”25340″ staffel_id=”3904″] [ttlive elementname=”Spielplan”
own_team=”SV Berliner Brauerei” mannschaft_id=”25340″ staffel_id=”3904″ tableclassname
=”TTLiveSpielplan”] [ttlive elementname=”Tabelle” own_team=”SV Berliner Brauereien
e.V.” mannschaft_id=”25340″ staffel_id=”3904″ tableclassname=”TTLiveTabelle” aufstiegsplatz
=2 abstiegsplatz=9 relegation=”2,8″ teamalias=”SV Berliner Brauereien e.V.:SVBB1;
SV Lichtenberg 47:Lichtenberg”] [ttlive elementname=”14Tage” tableclassname=”TTLive14Tage”
display_type=0] [ttlive elementname=”14Tage” tableclassname=”TTLive14Tage” display_type
=1] [ttlive elementname=”Rangliste” tableclassname=”TTLiveRangliste” display_all
=0] [ttlive elementname=”Hallenplan” saison=”2014″ runde=”1″]

css Example:
 .even { background-color: whitesmoke; } .cAufstieg{ color:green; }.
cAbstieg{ color:red; } .cRelegation{ color:DarkOrange; } .cOwnTeam td { font-weight:
bold; } .cOwnTeam:hover{ background-color: #ddd; cursor:pointer; } .TTLiveRangliste{
width: 100%; } .TTLive14Tage { width: 100%; } .TTLiveTabelle { width: 100%; } .TTLiveMannschaft{
width: 100%; } .TTLiveHallenplan { width: 100%; } .TTLiveSpielplan { width: 100%;}
th { text-align: left; }

## 常见问题

  Where i can i find this plugin in action?

Check the [plugin homepage] (http://www.svbb-tischtennis.de/).

## 评价

![](https://secure.gravatar.com/avatar/a99d3c8feea814beb4d3b2a6a284df3889112abcb1b47f793aa61ba3d43990ef?
s=60&d=retro&r=g)

### 󠀁[Sehr gutes Tool](https://wordpress.org/support/topic/sehr-gutes-tool-5/)󠁿

 [ninoschubert](https://profiles.wordpress.org/ninoschubert/) 2018 年 8 月 6 日

Sehr gut zum Bestücken von Websiten mit den aktuellsten Daten, Zahlen und Fakten
direkt aus TT-Live. Funktioniert reibungslos und macht einem das Leben sehr viel
einfacher, da es jede Menge “Handarbeit” erspart. Optik und Layout sind zusätzlich
noch per CSS anpassbar. Klasse!

![](https://secure.gravatar.com/avatar/8bba4feb625ee0a30112d2efa436b4e9cc6ddfa523e0cca0eaf779e780e2a606?
s=60&d=retro&r=g)

### 󠀁[Klasse](https://wordpress.org/support/topic/klasse-9/)󠁿

 [theuwe](https://profiles.wordpress.org/theuwe/) 2017 年 5 月 14 日

Sehr gut, dass hier jemand die Schnittstelle zu TTLive umgesetzt hat. Funktioniert
einwandfrei. Ich bin sehr dankbar für dieses Plugin. Tipp: Wenn jemand die Beispiele
per Copy/Paste ausprobieren möchte, müssen die Anführungszeichen ersetzt werden.

![](https://secure.gravatar.com/avatar/7a91f2f137c5f3fec7d00a035077124f31c9c80b1f9cdad25b7a3ded5f4cfd7a?
s=60&d=retro&r=g)

### 󠀁[Gute Arbeit & Support](https://wordpress.org/support/topic/gute-arbeit-2/)󠁿

 [flow1180](https://profiles.wordpress.org/flow1180/) 2016 年 9 月 16 日

Sehr gutes Plugin um Daten vom Tischtennis Live System auf der eigenen Seite dastellen
zu können. Gute Arbeit & schneller Support vom Autor

 [ 阅读所有4条评价 ](https://wordpress.org/support/plugin/ttlive/reviews/)

## 贡献者及开发者

「TTLive」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ finalan ](https://profiles.wordpress.org/finalan/)

[帮助将「TTLive」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/ttlive)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/ttlive/)，查看[SVN仓库](https://plugins.svn.wordpress.org/ttlive/)，
或通过[RSS](https://plugins.trac.wordpress.org/log/ttlive/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/ttlive/)。

## 更新日志

#### 0.9.7

 * fixed a bug and several php warnings/notice

#### 0.9.6

 * because of different errors –> back to 0.9.3; sorry, for that!

#### 0.9.5

 * changed Tested up to 4.7.3

#### 0.9.4

 * new Options to set global field names “mannschafts id” and “staffel id” for team-
   pages to work with ACF-Plugin or user-defined fields
 * calculates the difference in “Rangliste” between LivePZ and Stichtagen

#### 0.9.3

 * bugfix: calculated color in TTLive Widget, Spielplan, Hallenplan

#### 0.9.2

 * added new elementname: Hallenplan – displays Hallenplan (example: [ttlive elementname
   =”Hallenplan” saison=”2014″ runde=”1″])
 * new parameter for element “Hallenplan”: saison (default: ”) – saison is the current
   year (only first year “2014” – NOT “2014/2015”)
 * added tableclassname in configuration for elementname Rangliste and Hallenplan

#### 0.9.1

 * added new elementname: Rangliste – displays Rangliste by LivePZ (example: [ttlive
   elementname=”Rangliste”])
 * new parameter for element “Rangliste”: display_all (default: 1) – display_all
   =0, hides players with LivePZ “k.A.”
 * bugfix in widget: if there is no value to display, the header will be hidden

#### 0.9

 * changed from LPZ to LivePZ
 * bugfix: if there is no PK1 or PK2 in Team-Table, it will be hidden

#### 0.8.5

 * bugfix: added “Mini” as possible own team to display color in 14Tage

#### 0.8.4

 * bugfix: if search&replace is not replacing anything in the league-name, then 
   the full league-name is been displayed

#### 0.8.3

 * added sorting for last matches, to show the max number of matches by date

#### 0.8.1

 * bugfix: Error in 14Tage: PHP Class DateInterval is only available with PHP Version
   5.3 and higher – Problem fixed with a workaround

#### 0.8

 * added new parameter showxdays –> 14Tage: Anzahl der Tage die dargestell werden
   sollen (default = 14)
 * added new parameter max –> 14Tage: Anzahl der Tage die maximal dargestellt werden
   sollen (default = 0)
 * added TTLive_Widget –> you can use the widget to show the 14Tage-View in a sidebar

#### 0.7

 * bugfix: classes even and odd – to show tablerows in different colors
 * added new parameter relegation, for displaying relegation-position in a different
   color
 * changed from hardcoded colors for aufstieg, abstieg, relegation and own-team 
   to css-classes (class-names: cAufstieg, cAbstieg, cRelegation, cOwnTeam)

#### 0.6

 * added new parameter runde –> Vorrunde = [ttlive runde=1] (default), Rückrunde
   = [ttlive runde=2]
 * added Abteilungs/SpartenID as option in TTLive-settings for the 14Tage-Function

#### 0.5

 * added tableclassname as default-value-setting in TTLive-options for Mannschaft,
   14Tage, Tabelle and Spielplan (you don’t need to add these parameters to your
   shortcode, but if you do, it will override setting)
 * custom fields support for default values – if you add custom fields “mannschaft_id”
   or “staffel_id” to a team page, then it will be the default-value (you don’t 
   need to add these parameters to your shortcode, but if you do, it will override
   the custom field)
 * added description for using the teamalias-parameter

#### 0.4

 * changed error

#### 0.1

 * Initial version

## 额外信息

 *  版本 **0.9.7**
 *  最后更新：**9 年前**
 *  活跃安装数量 **20+**
 *  WordPress 版本 ** 3.0.1 或更高版本 **
 *  已测试的最高版本为 **4.7.33**
 *  语言
 * [English (US)](https://wordpress.org/plugins/ttlive/)
 *  [高级视图](https://cn.wordpress.org/plugins/ttlive/advanced/)

## 评级

 5 星（最高 5 星）。

 *  [  4 条 5 星评价     ](https://wordpress.org/support/plugin/ttlive/reviews/?filter=5)
 *  [  0 条 4 星评价     ](https://wordpress.org/support/plugin/ttlive/reviews/?filter=4)
 *  [  0 条 3 星评价     ](https://wordpress.org/support/plugin/ttlive/reviews/?filter=3)
 *  [  0 条 2 星评价     ](https://wordpress.org/support/plugin/ttlive/reviews/?filter=2)
 *  [  0 条 1 星评价     ](https://wordpress.org/support/plugin/ttlive/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/ttlive/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/ttlive/reviews/)

## 贡献者

 *   [ finalan ](https://profiles.wordpress.org/finalan/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/ttlive/)