DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:userhistory

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
plugin:userhistory [2018-06-06 00:20]
Klap-in
plugin:userhistory [2019-07-07 08:49] (current)
Dr-Yukon
Line 6: Line 6:
 email      : ondras@zarovi.cz email      : ondras@zarovi.cz
 type       : admin type       : admin
-lastupdate : 2013-12-15 +lastupdate : 2019-07-07 
-compatible : 2006-11-06Mulled WineLemmingAnteaterRincewindAnguaAdora BelleWeatherwax, Binky+compatible : WeatherwaxBinkyPonder StibbonsHrunDetritusElenor of TsortFrusterick MannersGreebo
 depends ​   :  depends ​   : 
 conflicts ​ :  conflicts ​ : 
-similar ​   :  +similar ​   : editor 
-tags       : changelog, listing, users, spam, !maybe.broken+tags       : changelog, listing, users, spam
  
-downloadurl: ​http://comicslate.org/_media/wiki/dokuplug/​userhistory.tgz+downloadurl: ​https://github.com/Dr-Yukon/dokuwiki-plugin-userhistory/tarball/master 
 +bugtracker : https://​github.com/​Dr-Yukon/​dokuwiki-plugin-userhistory/issues 
 +sourcerepo : https://​github.com/​Dr-Yukon/​dokuwiki-plugin-userhistory
 ---- ----
- 
  
 ===== Description ===== ===== Description =====
  
-The User History Plugin ​displays list of all users with links -> all changes done by specified user, in chronological (reversedorderIt works from admin panel. +This plugin ​displays ​list of all registered ​users in the admin panel. If you choose a specified user, it displays a list of all changes done by them in reversed ​chronological ​order (limited to 1000 in performance saving purpose).
- +
-===== 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 ===== ===== Comments =====
Line 40: Line 27:
  
 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. 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.
- 
-== 2 == 
- 
-What are the differences between this and the [[Editor]] plugin?\\ 
---- //​[[gviktor@gmail.c|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: 
-<​code>​(...)doku.php?​id=start?​do=admin&​page=userhistory&​user=awd</​code>​ 
-(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: 
-<​code>​.(strpos(wl($ID),'?'​)?'&​amp;':'?'​).</​code>​ 
-and changed lines 60 and 112 to: 
-<​code>​ 
-$href = wl($ID).(strpos(wl($ID),'?'​)?'&​amp;':'?'​).'​do=admin&​amp;​page='​.$this->​getPluginName().'&​amp;​user='​.hsc($nick);​ 
- 
-$href = wl($ID).(strpos(wl($ID),'?'​)?'&​amp;':'?'​).'​do=admin&​amp;​page='​.$this->​getPluginName();​ 
-</​code>​ 
---- //​[[doderic@wp.pl|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 
-<​code>​Warning:​ Invalid argument supplied for foreach() in ../​wiki/​lib/​plugins/​userhistory/​admin.php on line 72</​code>​ 
-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; 
-<​code>​ 
-Line 60 
-$href = wl($ID).'?​do=admin&​amp;​page='​.$this->​getPluginName().'&​amp;​user='​.hsc($nick);​ 
-to 
-$href = wl($ID).'&​do=admin&​amp;​page='​.$this->​getPluginName().'&​amp;​user='​.hsc($nick);​ 
-</​code><​code>​ 
-Line 112 
-$href = wl($ID).'?​do=admin&​amp;​page='​.$this->​getPluginName();​ 
-to 
-$href = wl($ID).'&​do=admin&​amp;​page='​.$this->​getPluginName();​ 
-</​code>​ 
-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.\\ 
---- //​[[paul@tallpaul.org|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.**\\ 
-<​code>​ 
-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</​code>​ 
-etc.\\ 
-//​2008-11-02//​ 
- 
-== 8 == 
- 
-<​del>​Please provide a fix! 
-Here is a German translation:​ [[http://​drop.io/​userhistoryde|de.zip]] 
-Regards Ferhat D.</​del>​ 
- 
-== 9 == 
- 
-**Fixed Version** \\ 
-<​del>​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//</​del>​ 
- 
-== 10 == 
- 
-<​del>​**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// </​del>​ 
- 
-== 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\\ 
---- [[user>​Erkan Yilmaz|Erkan 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: 
-<​code>​ 
-if (strtolower($change['​user'​]) == strtolower($user)) { $changes[] = $change; } 
-</​code>​ 
-//​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: 
-<​code>​ 
- 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; 
- } 
-</​code>​ 
-Download the fixed version [[http://​getwebb.org/​v/​tiQmvSCi|here]] ([[http://​getwebb.org/​d/​tiQmvSCi|direct link]]) 
-\\ --- [[user>​bugmenot2|bugmenot2]] //​2014-11-02 02:32// 
  
 == 16 == == 16 ==
Line 179: Line 33:
  
 A partial fix is to use the [[changes]] plugin and filter by the username, e.g. <​code>​{{changes>​user = myname & render = pagelist(header,​ list, firsthl, desc, comments, showlinkbacks)}}</​code>​ A partial fix is to use the [[changes]] plugin and filter by the username, e.g. <​code>​{{changes>​user = myname & render = pagelist(header,​ list, firsthl, desc, comments, showlinkbacks)}}</​code>​
 +
 +== 17 ==
 +
 +Rework, add admin icon, add new languages, add URL of edited pages, add user-list and edit-list counters, apply all patches from comments ## 2-15, replace plugin from my host to Github. Your issues and patches are welcome there. ​ --- [[user>​Dr-Yukon|Rainbow-Spike]] //​2019-07-07 08:49//
plugin/userhistory.1528237240.txt.gz · Last modified: 2018-06-06 00:20 by Klap-in