plugin:userannotations
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
plugin:userannotations [2012-08-25 12:35] – Add a fix for the exception. Klap-in | 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. | ||
- | //Example//: Annotations for the page '' | + | :!: **Warning:** This plugin uses the DirectoryIterator from the SPL library (included in PHP 5) and is not compatible |
- | The annotations can be styled on a general or on a per-user basis. | + | ===== Example ===== |
- | **Warning:** This plugin uses the DirectoryIterator from the SPL library (included in PHP 5) and is not compatible | + | Annotations for the page '' |
- | ===== Download ===== | + | The annotations can be styled on a general |
- | + | ||
- | Download the plugin here (manually | + | |
===== Release history ===== | ===== Release history ===== | ||
Line 46: | Line 49: | ||
> | > | ||
> Example: | > Example: | ||
- | > < | + | > < |
try{ | try{ | ||
foreach (new DirectoryIterator(preg_replace('/ | foreach (new DirectoryIterator(preg_replace('/ | ||
Line 59: | Line 62: | ||
} | } | ||
</ | </ | ||
+ | |||
+ | ==== 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.1345890953.txt.gz · Last modified: 2012-08-25 12:35 by Klap-in