====== fbde Plugin ====== Includes a match table from fussball.de in your wikipage if you use Dokuwiki as a homepage for a soccer club in germany ---- plugin ---- description: include match table from fussball.de author : Manuel Krischer email : m.krischer@bv09.de type : syntax lastupdate : 2013-06-09 compatible : Weatherwax depends : conflicts : similar : tags : football, soccer, fussball, fussball.de, tabelle, standings, match downloadurl: # eg. https://github.com//dokuwiki-plugin-fbde/zipball/master bugtracker : # eg. https://github.com//dokuwiki-plugin-fbde/issues sourcerepo : # eg. https://github.com//dokuwiki-plugin-fbde/ donationurl: screenshot_img : ---- Screenshot: [[http://www.bv09.de/_media/hauptverein/fbde_plugin1.png]] {{http://www.bv09.de/_media/hauptverein/fbde_plugin1.png}} ===== Installation ===== :!: **External requirements:** This plugin requires the following additional components that must be installed separately: * Account on www.fussball.de with a personal key for the JavaScript Code ===== Examples/Usage ===== Season 12/13 Oberliga Baden-Württemberg ===== Syntax ===== Basic syntax: ===== Configuration and Settings ===== Register at www.fussball.de and get your personal key to access the data. Put this two lines at the bottom of the ''''-block in your ''/lib/tpl//main.php'' file. Remember to change the XXXXX with your personal key. put this .css file into your /lib/tpl// 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'' - will be replaced with output from fussball.de * * @license GPL 2 (http://www.gnu.org/licenses/gpl.html) * @author Manuel Krischer */ 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('',$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
\n\t\t
\n\t\t"; return true; } } === Change Log === * **2013-06-15** * Initial release === Known Bugs and Issues === 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 === ToDo/Wish List === * downloadable ===== FAQ ===== //[discussions should ideally be deleted and turned into FAQ entries along the way]// ===== Discussion ===== //Could be placed on an external page (e.g. plugin:pluginname:discussion) to have a distinction between user comments and author docs//