userhistory plugin by Ondrej Zara
Displays all changes done by selected user
Last updated on 2007-01-16. Provides Admin.
No compatibility info given!
| Download | http://ondras.praha12.net/userhistory.zip |
|---|
The User History Plugin displays all changes done by specified user, in chronological (reversed) order.
This is a very simple hack which might perform very poorly in wikis with a lot of pages 1). Moreover, no user/edit paging is impemented ATM.
What are the differences between this and the Editor plugin? — Viktor Söderqvist 2007-01-22 15:41
Link generation problem
I have found little problem when using this plugin on my wiki: the link on the “User list” page has been generated as:
(...)doku.php?id=start?do=admin&page=userhistory&user=awd
(width double '?'). This links to new “start_do_admin” page instead of history page of user “awd”. Looks like you cannot generate link by concatenating with '?'. Instead you have to check, if there are any '?' in base address and use '?' or '&' accordingly. To achieve this I have added:
.(strpos(wl($ID),'?')?'&':'?').
and changed lines 60 and 112 to:
$href = wl($ID).(strpos(wl($ID),'?')?'&':'?').'do=admin&page='.$this->getPluginName().'&user='.hsc($nick); $href = wl($ID).(strpos(wl($ID),'?')?'&':'?').'do=admin&page='.$this->getPluginName();
— Doderic 2007-06-12 01:15 CET
Link generation problem bis
Same problem with double ”?” in the link
Applied the patch on line 60 and 112
I now have
Warning: Invalid argument supplied for foreach() in ../wiki/lib/plugins/userhistory/admin.php on line 72
Under PHP Version 5.1.3RC4-dev
An idea ?
2008-02-21
Link generation problem
I have modified "?" to "&" in lines 60 and 112 like this;
Line 60 $href = wl($ID).'?do=admin&page='.$this->getPluginName().'&user='.hsc($nick); to $href = wl($ID).'&do=admin&page='.$this->getPluginName().'&user='.hsc($nick);
Line 112 $href = wl($ID).'?do=admin&page='.$this->getPluginName(); to $href = wl($ID).'&do=admin&page='.$this->getPluginName();
and that worked for me …
2008-03-04
date/time formatting
DokuWiki release 2008-05-05 uses strftime() rather than date() so $conf['dformat'] is now in strftime() format and hence you need to replace date() with strftime() on line 121.
— TallPaul 2008-09-19 18:09