Progressbar pro DokuWiki

Existuje prima plugin umožňující vykreslovat progressbar na stránkách, ale obsahuje chybu a autor se nemá ji opravit, tak jsem to udělal. Dokud nevyjde nová verze, můžete použít tu moji, která má dvě záplaty:

  • funguje číslo 0
  • obrázky mají nastavenou šířku a výšku

Patched progressbar dokuwiki plugin

Diskuze

release complete progress bar plugin, 04.03.2008 23:23:

Hello,

I'm trying to get progressbar plugin for Dokuwiki from author web site. Unfortunately, it doesn't work. Would it be possible to send me plugin-progressbar.zip (especially images) ?

Thanks for your help,

Denis

 
Denis, 07.04.2008 12:13:

Hi,

the plugin does not work if you are not in the root namespace. For my Wiki, I added “/dokuwiki/“ in line 83 of the /lib/plugins/progressbar/syntax.php, but I assume there is a variable containing the directory in which DokuWiki ist installed.

Regards,

Denis (Greetings to my namesake above! ;-) )

 
An Average Geek, 17.09.2008 11:46:

I poked around some other plugin files and the Dokuwiki documentation. To fix the problem of using this plugin when not in the root namespace, edit Line 83 as follows:

<pre>$renderer→doc .= '<img width=„100“ height=„16“ src=“'. DOKU_BASE .'lib/plugins/progressbar/images/' . $data[0] . '.gif“ alt=“' . $data[0] . '% completed“/>';</pre>

 
An Average Geek, 17.09.2008 11:49:

Gah sorry about that let's try again shall we?

$renderer->doc .= '<img width="100" height="16" src="'. DOKU_BASE .'lib/plugins/progressbar/images/' . $data[0] . '.gif" alt="' . $data[0] . '% completed"/>';
 
If you can't read the letters on the image, download this .wav file to get them read to you.
pridej.cz
blog/progressbar_pro_dokuwiki.txt · Poslední úprava: 29.05.2008 09:04 (external edit)
Creative Commons License Valid CSS Driven by DokuWiki Recent changes RSS feed Valid XHTML 1.0