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-29 17:31] – template custimization in lemming 194.120.150.21 | 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 142: | Line 142: | ||
But it works when I do it by hand ... | But it works when I do it by hand ... | ||
- | (PHP Version 5.2.10 and dokuwiki-2009-02-14b.tgz) | + | (PHP Version 5.2.10 and DokuWiki-2009-02-14b.tgz) |
==== 2009-09-04 ==== | ==== 2009-09-04 ==== | ||
Line 155: | Line 155: | ||
I don't know how I can correct this behaviour. | I don't know how I can correct this behaviour. | ||
- | (dokuwiki | + | (DokuWiki |
+ | |||
+ | 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 ==== | ==== 2010-03-29 Adding button in Lemming ==== | ||
- | (dokuwiki | + | (DokuWiki |
- | The file ''< | + | The file ''< |
<code php> | <code php> | ||
... | ... | ||
Line 188: | Line 240: | ||
... | ... | ||
</ | </ | ||
+ | |||
+ | ==== 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.1269876664.txt.gz · Last modified: 2010-03-29 17:31 by 194.120.150.21