====== User History Plugin ======
---- plugin ----
description: Displays all changes done by selected user
author : Ondrej Zara
email : o.z.fw@seznam.cz
type : admin
lastupdate : 2007-01-16
compatible :
depends :
conflicts :
similar :
tags : changelog, listing, users, spam, !maybe.broken
downloadurl: http://ondras.praha12.net/userhistory.zip
----
===== Description =====
The User History [[plugins|Plugin]] displays all changes done by specified user, in chronological (reversed) order.
===== Comments =====
**Fixed Version with FR lang files** \\
You can download an updated archive of the plugin (bugs fixed) with the FR lang files [[http://www.charvy.fr/dokuwiki/userhistory.tar.gz|here]]. The link below needs flash to be used. --- //[[jc.charvy@gmail.com|Jc Charvy]] 2010-07-27 16:31//
**Fixed Version** \\
If anyone is interested in a working .zip without the problems mentioned below, [[http://www.filedropper.com/userhistory|try this]] //2010-07-11 15:34//
This is a very simple hack which might perform very poorly in wikis with a lot of pages ((all //data/meta/*.changes// files must be parsed)). Moreover, no user/edit paging is implemented at the moment.
What are the differences between this and the [[Editor]] plugin? --- //[[gviktor@gmail.c|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@wp.pl|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//
//2008-11-02//
\\
**Dude, changing from ? to & makes the link invalid, thus resulting in a nonexistent page. It's wrong.
I've the same problem, haven't solved it jet.**
Warning: Invalid argument supplied for foreach() in /www/wiki/lib/plugins/userhistory/admin.php on line 72
Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /www/wiki/lib/plugins/userhistory/admin.php on line 74
Warning: array_merge() [function.array-merge]: Argument #2 is not an array in /www/wiki/lib/plugins/userhistory/admin.php on line 74
etc.
Please provide a fix!
Here is a German translation: [[http://drop.io/userhistoryde|de.zip]]
Regards Ferhat D.
\\
\\
**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.
--- //[[paul@tallpaul.org|TallPaul]] 2008-09-19 18:09//
**Requirements**\\
What other plugins need to be installed? I cannot get userhistory running at all.\\
Is it even maintained anymore?
-- //137.226.57.168 2011-02-10 19:20//
\\ the version from "2007-01-16" works for me for ricewind, --- [[user>Erkan Yilmaz|Erkan Yilmaz]] //2011/08/09 15:58//