====== 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 : changes, controlling, users
----
^ Download | [[http://ondras.praha12.net/userhistory.zip]] |
===== Description =====
The User History [[plugins|Plugin]] displays all changes done by specified user, in chronological (reversed) order.
===== Comments =====
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 impemented ATM.
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 non-existant 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//