DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:userhistory

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
2013-12-15
Provides
Admin

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

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

Description

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.

Comment 6: TIME FIX APPLIED

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!

Comments

1

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.

2

What are the differences between this and the Editor plugin?
Viktor Söderqvist 2007-01-22 15:41

3

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

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

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

4

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?
2008-02-21

5

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

6

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

7

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

etc.
2008-11-02

8

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

9

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

10

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

11

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

12

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

2011-08-09 15:58

13

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

14

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; }

2013-06-10

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

15

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)
bugmenot2bugmenot2

2014-11-02 02:32

16

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)}}
1)
all data/meta/*.changes files must be parsed
plugin/userhistory.txt · Last modified: 2015-09-21 19:26 by 75.148.84.233