plugin:listeabo
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
plugin:listeabo [2010-03-03 11:33] – 145.242.11.4 | plugin:listeabo [2016-01-22 10:44] (current) – Aleksandr | ||
---|---|---|---|
Line 2: | Line 2: | ||
---- plugin ---- | ---- plugin ---- | ||
- | description: | + | description: Displays the subscription list (fr: Affiche la liste des abonnements) |
author | author | ||
email : emauvaisfr@yahoo.fr | email : emauvaisfr@yahoo.fr | ||
Line 84: | Line 84: | ||
* 2008-10-06: Better superuser detection. | * 2008-10-06: Better superuser detection. | ||
* 2008-11-26: German language added (thanks to Otto R.) | * 2008-11-26: German language added (thanks to Otto R.) | ||
- | * 2009-01-05: Bugs corrected: BOM in the german | + | * 2009-01-05: Bugs corrected: BOM in the German |
===== Discussion ===== | ===== Discussion ===== | ||
* Tell me... | * Tell me... | ||
* | * | ||
- | ==== 2009-09-04 ==== | ||
- | Good plugin - Tank You! | ||
- | //Info:// The plugin requires the [[plugin: | ||
- | |||
- | // | ||
- | The unsubscribe Button in the list view doesn' | ||
- | |||
- | It jumps to the start page, but doesn' | ||
- | I don't know how I can correct this behaviour. | ||
- | |||
- | (dokuwiki 2009-02-14b) | ||
- | |||
- | ==== 2009-08-17 Installation error ==== | ||
- | |||
- | Hello, | ||
- | |||
- | There is an error when I try to install the plugin with the Plugin Manager : | ||
- | |||
- | Impossible de télécharger le fichier du plugin: | ||
- | http:// | ||
- | | ||
- | Warning: gzinflate() [function.gzinflate]: | ||
- | |||
- | But it works when I do it by hand ... | ||
- | |||
- | (PHP Version 5.2.10 and dokuwiki-2009-02-14b.tgz) | ||
Line 154: | Line 128: | ||
>Thanks! Corrected in the new version (2009-01-05) | >Thanks! Corrected in the new version (2009-01-05) | ||
>Happy new year! | >Happy new year! | ||
+ | |||
+ | ==== 2009-08-17 Installation error ==== | ||
+ | |||
+ | Hello, | ||
+ | |||
+ | There is an error when I try to install the plugin with the Plugin Manager : | ||
+ | |||
+ | Impossible de télécharger le fichier du plugin: | ||
+ | http:// | ||
+ | | ||
+ | Warning: gzinflate() [function.gzinflate]: | ||
+ | |||
+ | But it works when I do it by hand ... | ||
+ | |||
+ | (PHP Version 5.2.10 and DokuWiki-2009-02-14b.tgz) | ||
+ | |||
+ | ==== 2009-09-04 ==== | ||
+ | Good plugin - Tank You! | ||
+ | |||
+ | //Info:// The plugin requires the [[plugin: | ||
+ | |||
+ | // | ||
+ | The unsubscribe Button in the list view doesn' | ||
+ | |||
+ | It jumps to the start page, but doesn' | ||
+ | I don't know how I can correct this behaviour. | ||
+ | |||
+ | (DokuWiki 2009-02-14b) | ||
+ | |||
+ | I fixed it. It links now on a namespace subscriptions to the first page which is found in the namespace. | ||
+ | |||
+ | |||
+ | on line 126 I replaced: | ||
+ | <code php> | ||
+ | else { | ||
+ | if($page=='' | ||
+ | $page = " | ||
+ | print $this-> | ||
+ | $nbCat++; | ||
+ | } | ||
+ | </ | ||
+ | with this | ||
+ | <code php> | ||
+ | else { | ||
+ | if($page=='' | ||
+ | $page = " | ||
+ | else | ||
+ | $page = $this-> | ||
+ | print $this-> | ||
+ | $nbCat++; | ||
+ | } | ||
+ | </ | ||
+ | and added this function: | ||
+ | <code php> | ||
+ | function next_file($wiki_dir){ | ||
+ | global $conf; | ||
+ | $dir = $conf[' | ||
+ | $dir = str_replace(":","/", | ||
+ | if($dh = opendir($dir)) { | ||
+ | while(($file = readdir($dh)) !== false) { | ||
+ | if($file != " | ||
+ | if (is_file($dir.$file)) | ||
+ | { | ||
+ | closedir($dh); | ||
+ | $file = str_replace(" | ||
+ | return $wiki_dir.$file; | ||
+ | } | ||
+ | } | ||
+ | } | ||
+ | } | ||
+ | } | ||
+ | </ | ||
+ | (DokuWiki 2009-12-25c " | ||
+ | | ||
+ | // | ||
+ | | ||
+ | | ||
+ | |||
+ | | ||
+ | |||
+ | |||
+ | ==== 2010-03-29 Adding button in Lemming ==== | ||
+ | (DokuWiki 2009-12-25c) | ||
+ | |||
+ | The file ''< | ||
+ | <code php> | ||
+ | ... | ||
+ | case ' | ||
+ | if($conf[' | ||
+ | if($_SERVER[' | ||
+ | if($INFO[' | ||
+ | if(actionOK(' | ||
+ | $out .= tpl_link(wl($ID,' | ||
+ | | ||
+ | ' | ||
+ | } else { | ||
+ | if(actionOK(' | ||
+ | $out .= tpl_link(wl($ID,' | ||
+ | | ||
+ | ' | ||
+ | } | ||
+ | | ||
+ | //listeabo | ||
+ | $out .= tpl_link(wl($ID,' | ||
+ | | ||
+ | ' | ||
+ | //listeabo | ||
+ | |||
+ | } | ||
+ | } | ||
+ | ... | ||
+ | </ | ||
+ | |||
+ | ==== Display fix for Anteater (and newer) versions ==== | ||
+ | |||
+ | Since Anteater DokuWiki stores additional data about digest mail subscriptions in the *.mlist files. This prevents the plugin from displaying the usernames in a proper way. | ||
+ | To re-enable the "good look" you could add the following three lines to your action.php: [[https:// | ||
+ | |||
+ | ==== To make it work under Angua ==== | ||
+ | |||
+ | I actually like this plugin but I was only interested in the Admin-part here so no guarantee for the rest of this. \\ | ||
+ | In addition to the digest-patch above some HTML-Escape characters in the .mlist files needed to be replaced. There is probably some function that does this and catches some more escapes, but I do not know it. So the full patch is: | ||
+ | |||
+ | <code php> | ||
+ | ... | ||
+ | foreach(file($page) as $nom) { | ||
+ | $nom=chop($nom); | ||
+ | |||
+ | //added code at line 90 | ||
+ | // Discard digest information of the line | ||
+ | $digest = strpos($nom, | ||
+ | if($digest) $nom = substr($nom, | ||
+ | |||
+ | $search = array(" | ||
+ | $replace = array(" | ||
+ | $nom = str_replace($search, | ||
+ | //and added code | ||
+ | ... | ||
+ | </ | ||
+ | |||
+ | Also the table layout can be improved, but that's a matter of taste. \\ | ||
+ | You should also have a look at the english lang.php. \\ | ||
+ | Watch out for the hardcoded " | ||
+ | |||
+ | |||
+ | ==== Required: Remove not existing users from Abo ==== | ||
+ | It would be nice, if there would be a possibility in the admin area of this plugin, to clean the '' | ||
+ |
plugin/listeabo.1267612433.txt.gz · Last modified: 2010-03-03 11:33 by 145.242.11.4