User History Plugin

userhistory plugin by Ondrej Zara
Displays all changes done by selected user

Last updated on 2007-01-16. Provides Admin.
No compatibility info given!

Similar to querychangelog.

Tagged with changelog, listing, spam, users.

    Download http://ondras.praha12.net/userhistory.zip

    Description

    The User History 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 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:

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

    TallPaul 2008-09-19 18:09

    1) all data/meta/*.changes files must be parsed
     
    plugin/userhistory.txt · Last modified: 2009/10/10 18:43 by laynee
     
    Except where otherwise noted, content on this wiki is licensed under the following license:CC Attribution-Noncommercial-Share Alike 3.0 Unported
    Imprint Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki
    WikiForumIRCBugsGitXRefTranslate