Learn about DokuWiki
Advanced Use
Corporate Use
Our Community
Follow us on Facebook, Twitter and other social networks.
Learn about DokuWiki
Advanced Use
Corporate Use
Our Community
Follow us on Facebook, Twitter and other social networks.
Includes a match table from fussball.de in your wikipage if you use Dokuwiki as a homepage for a soccer club in germany
Compatible with DokuWiki
weatherwax
The missing download url means that this extension cannot be installed via the Extension Manager. Please see Publishing a Plugin on dokuwiki.org. Recommended are public repository hosts like GitHub, GitLab or Bitbucket.
This extension has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues.
Tagged with football, fussball, fussball.de, match, soccer, standings, tabelle
Screenshot: http://www.bv09.de/_media/hauptverein/fbde_plugin1.png
External requirements: This plugin requires the following additional components that must be installed separately:
Season 12/13 Oberliga Baden-Württemberg
<fbde|1213|890005>
Basic syntax:
<fbde|SAISON|TABLEID>
Register at www.fussball.de and get your personal key to access the data.
Put this two lines at the bottom of the <head></head>
-block in your /lib/tpl/<TPLNAME>/main.php
file. Remember to change the XXXXX with your personal key.
<script type="text/javascript" src="http://static.fussball.de/fbdeAPI/js/fbdeAPIFunctions.js?schluessel=XXXXX"></script> <link rel="stylesheet" media="screen" type="text/css" href="<?php echo DOKU_TPL; ?>fbde.css" />
put this .css file into your /lib/tpl/<TPLNAME>/ directory:
#fussballdeAPI {width: 100%; border-color:#fff; } /*make it filling the page width*/ #fussballdeAPI table {width:100%} /*table too*/ #fussballdeAPI .fbdeAPISuche {display:none!important } /*hide the team search*/ #fussballdeAPI iframe {height:0px; }/*hide ad*/
and create a folder fbde
in /lib/plugins/
to save the syntax.php
<?php /** * Plugin fbde: Displays match tables from fussball.de" * * Syntax: <fbde|SAISON|ID> - will be replaced with output from fussball.de * * @license GPL 2 (http://www.gnu.org/licenses/gpl.html) * @author Manuel Krischer <m.krischer@bv09.de> */ if(!defined('DOKU_INC')) die(); class syntax_plugin_fbde extends DokuWiki_Syntax_Plugin { function getType() { return 'substition'; } function getPType(){ return 'stack'; } function getSort() { return 999; } /*search for pattern*/ function connectTo($mode) { $this->Lexer->addSpecialPattern('<fbde.*?>',$mode,'plugin_fbde'); } /*what to do with pattern*/ function handle($match, $state, $pos, Doku_Handler $handler){ return explode('|', $match); } function render($mode, Doku_Renderer $renderer, $data) { if($mode != 'xhtml') return false; $renderer->doc .= "\n\t\t<div style=\"clear:both\" /><div id=\"meinWettbewerb0\">\n\t\t <script type=\"text/javascript\"> var wettbewerb0 = new fussballdeAPI(); wettbewerb0.setzeSaison('".$data[1]."'); wettbewerb0.setzeWettbewerbID('".rtrim($data[2], '>')."'); wettbewerb0.zeigeTabelle('meinWettbewerb0'); </script></div>\n\t\t"; return true; } }
Not the nicest plugin design, but it's my first plugin and I don't have internal knowledge and understanding of the dokuwiki code yet
* downloadable
[discussions should ideally be deleted and turned into FAQ entries along the way]
Could be placed on an external page (e.g. plugin:pluginname:discussion) to have a distinction between user comments and author docs