plugin:avtaskbox
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
plugin:avtaskbox [2020-02-07 17:55] – sherri | plugin:avtaskbox [2021-10-21 17:30] – Screenshot now hosted on GitHub. sherri | ||
---|---|---|---|
Line 7: | Line 7: | ||
type : syntax | type : syntax | ||
lastupdate : 2020-02-07 | lastupdate : 2020-02-07 | ||
- | compatible : 2012-10-13, 2008-05-05+ | + | compatible : 2018-04-22b+ |
depends | depends | ||
conflicts | conflicts | ||
Line 13: | Line 13: | ||
tags : task, pm, projects, userstory, boxes, GTD, todo | tags : task, pm, projects, userstory, boxes, GTD, todo | ||
- | downloadurl: | + | downloadurl: |
- | bugtracker : | + | bugtracker : https:// |
sourcerepo : | sourcerepo : | ||
donationurl: | donationurl: | ||
- | screenshot_img: | + | screenshot_img: |
---- | ---- | ||
Line 24: | Line 24: | ||
With this plugin you can format task or user-story information into nice tables for doing project management or keeping a todolist. | With this plugin you can format task or user-story information into nice tables for doing project management or keeping a todolist. | ||
- | |||
- | Screenshot and info available here: [[http:// | ||
===== Syntax and Usage ===== | ===== Syntax and Usage ===== | ||
Line 49: | Line 47: | ||
===== Output ===== | ===== Output ===== | ||
- | {{http://syntaxseed.com/assets/ | + | {{https://raw.githubusercontent.com/syntaxseed/avtaskbox/ |
===== Installation ===== | ===== Installation ===== | ||
- | * **Plugin Manager:** Paste this URL into the Plugin Manager to install AVTaskBox automatically: | + | * **Plugin Manager:** Paste this URL into the Plugin Manager to install AVTaskBox automatically: |
===== Known Bugs ===== | ===== Known Bugs ===== | ||
Line 62: | Line 60: | ||
* Make priorities colored. | * Make priorities colored. | ||
+ | * Support Dokuwiki syntax inside description box. | ||
+ | * Use a div instead of a table? | ||
===== Changelog ===== | ===== Changelog ===== | ||
Line 77: | Line 77: | ||
===== Source ===== | ===== Source ===== | ||
- | https:// | + | https:// |
+ | |||
+ | ==== Contributing ==== | ||
+ | |||
+ | Please submit a PR to the GitHub repo. | ||
===== Comments / Discussion ===== | ===== Comments / Discussion ===== | ||
Line 88: | Line 92: | ||
//peter 2010/05/20 17:25//. | //peter 2010/05/20 17:25//. | ||
- | Hi everybody, I think it's an ice plugin. However, what I'm passionately missing is support of dokuwikis formatting options within the DESCRIPTION Field. This unfortunately limits the usability of this (and many other similar) plugin(s) for me. | ||
- | //jan 2010/09/30 17:52//. | ||
- | --- | ||
- | |||
- | ==== Coloured Priority Task List ==== | ||
- | |||
- | Having changed quite some stuff in the plug-in code a coloured list was created. The task tables are coloured in yellow by default. If a task is completed it appears green. If a high priority (' | ||
- | |||
- | For this reason, two dates are to be given for each task: the deadline and the creation date. Format: month/ | ||
- | |||
- | < | ||
- | < | ||
- | TITLE: A test task | ||
- | PRIORITY: High | ||
- | DEADLINE: 12/10/2010 | ||
- | OPENED: 10/29/2010 | ||
- | ESTIMATE: 4h | ||
- | PROGRESS: 10% | ||
- | ASSIGNED: Sherri | ||
- | DESCRIPTION: | ||
- | </ | ||
- | </ | ||
- | |||
- | |||
- | Copy the following and replace **syntax.php** to use it **(Warning: this code based on older version of this plugin)**: | ||
- | |||
- | <file php> | ||
- | <?php | ||
- | /* | ||
- | * DokuWiki task box plugin | ||
- | * Copyright (C) 2009 Sherri Wheeler | ||
- | * Usage: | ||
- | * | ||
- | * < | ||
- | * TITLE: A test task | ||
- | * PRIORITY: High | ||
- | * DEADLINE: 12/10/2010 | ||
- | * OPENED: 10/29/2010 | ||
- | * ESTIMATE: 4h | ||
- | * PROGRESS: 10% | ||
- | * ASSIGNED: Sherri | ||
- | * DESCRIPTION: | ||
- | * </ | ||
- | | ||
- | * This program is free software; you can redistribute it and/or modify | ||
- | * it under the terms of the GNU General Public License as published by | ||
- | * the Free Software Foundation; either version 2 of the License, or | ||
- | * (at your option) any later version. | ||
- | | ||
- | * This program is distributed in the hope that it will be useful, | ||
- | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
- | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | ||
- | * GNU General Public License for more details. | ||
- | | ||
- | * You should have received a copy of the GNU General Public License | ||
- | * along with this program; if not, write to the Free Software | ||
- | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 | ||
- | */ | ||
- | |||
- | if(!defined(' | ||
- | if(!defined(' | ||
- | require_once(DOKU_PLUGIN.' | ||
- | |||
- | class syntax_plugin_avtaskbox extends DokuWiki_Syntax_Plugin | ||
- | { | ||
- | |||
- | /** | ||
- | * return some info | ||
- | */ | ||
- | function getInfo() | ||
- | { | ||
- | return array | ||
- | ( | ||
- | ' | ||
- | ' | ||
- | ' | ||
- | ' | ||
- | ' | ||
- | ' | ||
- | ); | ||
- | } | ||
- | |||
- | /** | ||
- | * What kind of syntax are we? | ||
- | */ | ||
- | function getType() | ||
- | { | ||
- | return ' | ||
- | } | ||
- | |||
- | /** | ||
- | * Where to sort in? | ||
- | */ | ||
- | function getSort() | ||
- | { | ||
- | return 999; | ||
- | } | ||
- | |||
- | |||
- | /** | ||
- | * Connect pattern to lexer | ||
- | */ | ||
- | function connectTo($mode) { | ||
- | $this-> | ||
- | } | ||
- | |||
- | function postConnect() { | ||
- | $this-> | ||
- | } | ||
- | |||
- | |||
- | /** | ||
- | * Handle the match | ||
- | */ | ||
- | function handle($match, | ||
- | switch ($state) { | ||
- | case DOKU_LEXER_ENTER : | ||
- | return array($state, | ||
- | case DOKU_LEXER_MATCHED : | ||
- | break; | ||
- | case DOKU_LEXER_UNMATCHED : | ||
- | |||
- | preg_match('/ | ||
- | $title = (!empty($matches[1]) && strlen(trim($matches[1]))> | ||
- | |||
- | preg_match('/ | ||
- | $priority =(!empty($matches[1]) && strlen(trim($matches[1]))> | ||
- | |||
- | preg_match('/ | ||
- | $deadline = (!empty($matches[1]) && strlen(trim($matches[1]))> | ||
- | |||
- | preg_match('/ | ||
- | $opened = (!empty($matches[1]) && strlen(trim($matches[1]))> | ||
- | |||
- | preg_match('/ | ||
- | $estimate = (!empty($matches[1]) && strlen(trim($matches[1]))> | ||
- | |||
- | preg_match('/ | ||
- | $assigned = (!empty($matches[1]) && strlen(trim($matches[1]))> | ||
- | |||
- | preg_match('/ | ||
- | $progress = (!empty($matches[1]) && strlen(trim($matches[1]))> | ||
- | |||
- | preg_match('/ | ||
- | $description = (!empty($matches[1]) && strlen(trim($matches[1]))> | ||
- | |||
- | if($progress< | ||
- | if($progress> | ||
- | $sizeLeft = 100-$progress; | ||
- | $progbar .= '< | ||
- | |||
- | |||
- | |||
- | #mark yellow as standard | ||
- | $priority_color = '# | ||
- | $priority_color_dark = '# | ||
- | $priority_reason_priority = false; | ||
- | $priority_reason_opened = false; | ||
- | $priority_reason_deadline = false; | ||
- | #mark red if high priority | ||
- | if ($priority==' | ||
- | $priority_color = '# | ||
- | $priority_color_dark = '# | ||
- | $priority_reason_priority = true; | ||
- | } | ||
- | #mark red if topic opened for over one year | ||
- | if (strtotime($opened)+31536000< | ||
- | $priority_color = '# | ||
- | $priority_color_dark = '# | ||
- | $priority_reason_opened = true; | ||
- | } | ||
- | #mark red if deadline within 4 weeks | ||
- | if (strtotime($deadline)-2419200< | ||
- | $priority_color = '# | ||
- | $priority_color_dark = '# | ||
- | $priority_reason_deadline = true; | ||
- | } | ||
- | #mark green if done | ||
- | if ($progress==100){ | ||
- | $priority_color = '# | ||
- | $priority_color_dark = '# | ||
- | $priority_reason_priority = false; | ||
- | $priority_reason_opened = false; | ||
- | $priority_reason_deadline = false; | ||
- | } | ||
- | |||
- | |||
- | $resultStr = '< | ||
- | |||
- | |||
- | $resultStr .= '< | ||
- | $resultStr .= '< | ||
- | $resultStr .= '< | ||
- | $resultStr .= '< | ||
- | |||
- | |||
- | $resultStr .= '</ | ||
- | |||
- | $match = $resultStr; | ||
- | return array($state, | ||
- | |||
- | |||
- | case DOKU_LEXER_EXIT : | ||
- | return array($state, | ||
- | case DOKU_LEXER_SPECIAL : | ||
- | break; | ||
- | } | ||
- | return array(); | ||
- | } | ||
- | |||
- | |||
- | /** | ||
- | * Create output | ||
- | */ | ||
- | function render($mode, | ||
- | if($mode == ' | ||
- | list($state, | ||
- | | ||
- | switch ($state) { | ||
- | case DOKU_LEXER_ENTER : | ||
- | $renderer-> | ||
- | break; | ||
- | |||
- | case DOKU_LEXER_MATCHED : | ||
- | break; | ||
- | |||
- | case DOKU_LEXER_UNMATCHED : | ||
- | |||
- | $renderer-> | ||
- | |||
- | case DOKU_LEXER_EXIT : | ||
- | $renderer-> | ||
- | break; | ||
- | |||
- | case DOKU_LEXER_SPECIAL : | ||
- | break; | ||
- | } | ||
- | return true; | ||
- | } | ||
- | return false; | ||
- | } | ||
- | } | ||
- | |||
- | ?> | ||
- | </ | ||
- | |||
- | // | ||
- | 01/06/2011 - Thank you monoceros80 for adding the colors! | ||
- | <file php> | ||
- | <?php | ||
- | /* | ||
- | * DokuWiki task box plugin | ||
- | * Copyright (C) 2009 Sherri Wheeler | ||
- | * Usage: | ||
- | * | ||
- | * < | ||
- | * TITLE: A test task | ||
- | * PRIORITY: High | ||
- | * DEADLINE: 12/10/2010 | ||
- | * OPENED: 10/29/2010 | ||
- | * ESTIMATE: 4h | ||
- | * PROGRESS: 10% | ||
- | * ASSIGNED: Sherri | ||
- | * DESCRIPTION: | ||
- | * </ | ||
- | | ||
- | * This program is free software; you can redistribute it and/or modify | ||
- | * it under the terms of the GNU General Public License as published by | ||
- | * the Free Software Foundation; either version 2 of the License, or | ||
- | * (at your option) any later version. | ||
- | | ||
- | * This program is distributed in the hope that it will be useful, | ||
- | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
- | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | ||
- | * GNU General Public License for more details. | ||
- | | ||
- | * You should have received a copy of the GNU General Public License | ||
- | * along with this program; if not, write to the Free Software | ||
- | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 | ||
- | */ | ||
- | |||
- | if(!defined(' | ||
- | if(!defined(' | ||
- | require_once(DOKU_PLUGIN.' | ||
- | |||
- | class syntax_plugin_avtaskbox extends DokuWiki_Syntax_Plugin | ||
- | { | ||
- | |||
- | /** | ||
- | * return some info | ||
- | */ | ||
- | function getInfo() | ||
- | { | ||
- | return array | ||
- | ( | ||
- | ' | ||
- | ' | ||
- | ' | ||
- | ' | ||
- | ' | ||
- | ' | ||
- | ); | ||
- | } | ||
- | |||
- | /** | ||
- | * What kind of syntax are we? | ||
- | */ | ||
- | function getType() | ||
- | { | ||
- | return ' | ||
- | } | ||
- | |||
- | /** | ||
- | * Where to sort in? | ||
- | */ | ||
- | function getSort() | ||
- | { | ||
- | return 999; | ||
- | } | ||
- | |||
- | |||
- | /** | ||
- | * Connect pattern to lexer | ||
- | */ | ||
- | function connectTo($mode) { | ||
- | $this-> | ||
- | } | ||
- | |||
- | function postConnect() { | ||
- | $this-> | ||
- | } | ||
- | |||
- | |||
- | /** | ||
- | * Handle the match | ||
- | */ | ||
- | function handle($match, | ||
- | switch ($state) { | ||
- | case DOKU_LEXER_ENTER : | ||
- | return array($state, | ||
- | case DOKU_LEXER_MATCHED : | ||
- | break; | ||
- | case DOKU_LEXER_UNMATCHED : | ||
- | |||
- | preg_match('/ | ||
- | $title = (!empty($matches[1]) && strlen(trim($matches[1]))> | ||
- | |||
- | preg_match('/ | ||
- | $priority =(!empty($matches[1]) && strlen(trim($matches[1]))> | ||
- | |||
- | preg_match('/ | ||
- | $deadline = (!empty($matches[1]) && strlen(trim($matches[1]))> | ||
- | |||
- | preg_match('/ | ||
- | $opened = (!empty($matches[1]) && strlen(trim($matches[1]))> | ||
- | |||
- | preg_match('/ | ||
- | $estimate = (!empty($matches[1]) && strlen(trim($matches[1]))> | ||
- | |||
- | preg_match('/ | ||
- | $assigned = (!empty($matches[1]) && strlen(trim($matches[1]))> | ||
- | |||
- | preg_match('/ | ||
- | $progress = (!empty($matches[1]) && strlen(trim($matches[1]))> | ||
- | |||
- | preg_match('/ | ||
- | $description = (!empty($matches[1]) && strlen(trim($matches[1]))> | ||
- | |||
- | if($progress< | ||
- | if($progress> | ||
- | $sizeLeft = 100-$progress; | ||
- | $progbar .= '< | ||
- | |||
- | |||
- | |||
- | #mark yellow as standard | ||
- | $priority_color = '# | ||
- | $priority_color_dark = '# | ||
- | $priority_reason_priority = false; | ||
- | $priority_reason_opened = false; | ||
- | $priority_reason_deadline = false; | ||
- | #mark red if high priority | ||
- | if ($priority==' | ||
- | $priority_color = '# | ||
- | $priority_color_dark = '# | ||
- | $priority_reason_priority = true; | ||
- | } | ||
- | #mark red if topic opened for over one year | ||
- | if (strtotime($opened)+31536000< | ||
- | $priority_color = '# | ||
- | $priority_color_dark = '# | ||
- | $priority_reason_opened = true; | ||
- | } | ||
- | #mark red if deadline within 4 weeks | ||
- | if (strtotime($deadline)-2419200< | ||
- | $priority_color = '# | ||
- | $priority_color_dark = '# | ||
- | $priority_reason_deadline = true; | ||
- | } | ||
- | #mark green if done | ||
- | if ($progress==100){ | ||
- | $priority_color = '# | ||
- | $priority_color_dark = '# | ||
- | $priority_reason_priority = false; | ||
- | $priority_reason_opened = false; | ||
- | $priority_reason_deadline = false; | ||
- | } | ||
- | |||
- | |||
- | $resultStr = '< | ||
- | |||
- | |||
- | $resultStr .= '< | ||
- | $resultStr .= '< | ||
- | $resultStr .= '< | ||
- | $resultStr .= '< | ||
- | |||
- | |||
- | $resultStr .= '</ | ||
- | |||
- | $match = $resultStr; | ||
- | return array($state, | ||
- | |||
- | |||
- | case DOKU_LEXER_EXIT : | ||
- | return array($state, | ||
- | case DOKU_LEXER_SPECIAL : | ||
- | break; | ||
- | } | ||
- | return array(); | ||
- | } | ||
- | |||
- | |||
- | /** | ||
- | * Create output | ||
- | */ | ||
- | function render($mode, | ||
- | if($mode == ' | ||
- | list($state, | ||
- | |||
- | switch ($state) { | ||
- | case DOKU_LEXER_ENTER : | ||
- | $renderer-> | ||
- | break; | ||
- | |||
- | case DOKU_LEXER_MATCHED : | ||
- | break; | ||
- | |||
- | case DOKU_LEXER_UNMATCHED : | ||
- | |||
- | $renderer-> | ||
- | |||
- | case DOKU_LEXER_EXIT : | ||
- | $renderer-> | ||
- | break; | ||
- | |||
- | case DOKU_LEXER_SPECIAL : | ||
- | break; | ||
- | } | ||
- | return true; | ||
- | } | ||
- | return false; | ||
- | } | ||
- | } | ||
- | |||
- | ?> | ||
- | </ | ||
- | 01/06/2011 - Zmartant |
plugin/avtaskbox.txt · Last modified: 2022-08-08 20:46 by sherri