It's better when it's simple

User Tools

Site Tools


This is an old revision of the document!

User History Plugin

Compatible with DokuWiki

2006-11-06, Mulled Wine, Lemming, Anteater, Rincewind, Angua, Adora Belle, Weatherwax, Binky

plugin Displays all changes done by selected user

Last updated on

This extension has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues.

Similar to editor

Tagged with !maybe.broken, changelog, listing, spam, users


The User History Plugin displays list of all users with links → all changes done by specified user, in chronological (reversed) order. It works from admin panel.

From current plugin archive's holder

Archive's MD5 sum 30a9b68f63600506cc733815e305a5cf

Comments 3-5, 7: I don't see this problem on my site, so archive don't have these fixes.


Comments 8-10: Links are obsolete, but I add language files for “cs”, “de”, “es”, “fr”, “uk” besides “en” and “ru”. Sorry for google translate

Comment 11: Yes, but I just clean up this page and plugin archive. I don't know PHP really

Comment 14: _casefix/admin.php don't work on my Binky - site is work normally, but all ADMIN PAGES ARE BLANK, be careful with this fix!



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 implemented at the moment.


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:


(with 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:


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
Any idea?


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);
$href = wl($ID).'&do=admin&page='.$this->getPluginName().'&user='.hsc($nick);
Line 112
$href = wl($ID).'?do=admin&page='.$this->getPluginName();
$href = wl($ID).'&do=admin&page='.$this->getPluginName();

and that worked for me …


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


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 yet.

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



Please provide a fix! Here is a German translation: Regards Ferhat D.


Fixed Version
If anyone is interested in a working .zip without the problems mentioned below, try this
2010-07-11 15:34


Fixed Version with FR lang files
You can download an updated archive of the plugin (bugs fixed) with the FR lang files here. The link below needs flash to be used. — Jc Charvy 2010-07-27 16:31


What other plugins need to be installed? I cannot get userhistory running at all.
Is it even maintained anymore? 2011-02-10 19:20


the version from “2007-01-16” works for my rincewind
Erkan YilmazErkan Yilmaz

2011-08-09 15:58


I'm using the monobook template and this plugin doesn't work. On the admin page after I click on User History and it doesn't display and user history. Only a couple headers.
2012-05-31 05:58


There seems to be a problem with the case of user names, so i changed line 92 of admin.php to the following:

if (strtolower($change['user']) == strtolower($user)) { $changes[] = $change; }


Warning: this fix may work incorrect in last build Binky - admin pages may be blanked


Small fix for 2014-09-29a “Hrun” compatibility
Change function globr definition at line 56 in admin.php to this:

		function globr($dir, $pattern) {
			$files = glob($dir.'/'.$pattern);
			$subdirs = glob($dir.'/*', GLOB_ONLYDIR);
			if (!empty($subdirs)) {
				foreach ($subdirs as $subdir) {
					$subfiles = globr($subdir, $pattern);
					if (!empty($subfiles) && !empty($files)) {
						$files = array_merge($files, $subfiles);
			return $files;

Download the fixed version here (direct link)

2014-11-02 02:32


I love this plugin and it's convenient output format but would like to put it on the home page of the user (which I have in :user:@USER@) instead of in admin panel. Any way to do this? I know about the Editor plugin but I like seeing each change on its own line and the handy one-click diff tool.

A partial fix is to use the changes plugin and filter by the username, e.g.

{{changes>user = myname & render = pagelist(header, list, firsthl, desc, comments, showlinkbacks)}}

BUG! Broken upgrade

If i click on “upgrade” button in plugin manager, this will get reinstalled, but stays listed as “upgradeable”. Dokuwiki still thinks that there is upgrade available even when it's the same old version.

all data/meta/*.changes files must be parsed
plugin/userhistory.1548660732.txt.gz · Last modified: 2019-01-28 08:32 by harvie