plugin:userannotations
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
plugin:userannotations [2010-10-03 15:43] – HåkanS | plugin:userannotations [2023-12-21 18:50] (current) – new download url Aleksandr | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== | + | ====== |
---- plugin ---- | ---- plugin ---- | ||
Line 11: | Line 11: | ||
tags : annotations, | tags : annotations, | ||
- | downloadurl: | + | downloadurl: |
+ | bugtracker : | ||
+ | sourcerepo : | ||
+ | donationurl: | ||
+ | |||
+ | screenshot_img: | ||
---- | ---- | ||
- | This plugin enables users to create annotations and comments for each wiki page. The annotations reside in a special namespace that mirrors the regular namespace structure. // | + | This plugin enables users to create annotations and comments for each wiki page. The annotations reside in a special namespace that mirrors the regular namespace structure. |
- | The annotations can be styled on a general or on a per-user basis. | + | :!: **Warning: |
- | **Warning: | + | ===== Example ===== |
- | ===== Download ===== | + | Annotations for the page '' |
- | Download the plugin here (manually | + | The annotations can be styled on a general |
===== Release history ===== | ===== Release history ===== | ||
Line 34: | Line 39: | ||
* When I installed this plugin into DokuWiki 2009-12-25c, | * When I installed this plugin into DokuWiki 2009-12-25c, | ||
* **Echo that** - using lemming and this plugin, both header and footer disappear. | * **Echo that** - using lemming and this plugin, both header and footer disappear. | ||
+ | * 2010-12-15 Get | ||
+ | < | ||
+ | Fatal error: Uncaught exception ' | ||
+ | failed to open dir: No such file or directory' | ||
+ | </ | ||
+ | This is using the plugin straight out of the box on a PHP5.3.1 base. | ||
+ | |||
+ | > This exception is because ''/ | ||
+ | > | ||
+ | > Example: | ||
+ | > <code php> | ||
+ | try{ | ||
+ | foreach (new DirectoryIterator(preg_replace('/ | ||
+ | { | ||
+ | if($item-> | ||
+ | $user = $item-> | ||
+ | if($user != $current) | ||
+ | $annotation_ns[] = $user; | ||
+ | } | ||
+ | } | ||
+ | }catch (Exception $e){ | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | ==== Patch for controlling recursion ==== | ||
+ | --- [[user> | ||
+ | |||
+ | As I found annoying the link to make annotations inside annotations, | ||
+ | |||
+ | === Code === | ||
+ | |||
+ | Original lines 98 to 103 in action.php | ||
+ | |||
+ | <code php> | ||
+ | // The currently logged in user can create his own annotation | ||
+ | elseif($user == $current && auth_quickaclcheck($privatepath.':' | ||
+ | { | ||
+ | echo '< | ||
+ | echo '? | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | Change those lines into this: | ||
+ | |||
+ | <code php> | ||
+ | // The currently logged in user can create his own annotation | ||
+ | elseif($user == $current && auth_quickaclcheck($privatepath.':' | ||
+ | { | ||
+ | // Check recursion allowance | ||
+ | if( ($this-> | ||
+ | { | ||
+ | echo '< | ||
+ | echo '? | ||
+ | } | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | === Config === | ||
+ | |||
+ | This patch needs a new entry in conf/ | ||
+ | |||
+ | < | ||
+ | // Allow annotations in annotations | ||
+ | $conf[' | ||
+ | </ | ||
+ | |||
+ | Changing the value of this entry to ' |
plugin/userannotations.1286113436.txt.gz · Last modified: 2010-10-03 15:43 by HåkanS