Revision [16837]
This is an old revision of UserChangesAction made by Zw5Qd9 on 2007-05-31 10:54:47.
UserChanges Action
This action is meant as a module to integrate the MyChanges action into the UserAdmin tool.
To use it as a standalone action simply add:
{{userchanges user="UserName"}} in the page body.
To use it as a standalone action simply add:
{{userchanges user="UserName"}} in the page body.
This is an upgraded version of the MyChanges action. It allows not only to display pages edited by current user but also by any other registered user specified either via a user action parameter or via a user GET variable.
Save the code below as actions/userchanges.php.
The action
Current version: 0.4Changes:
- Added documentation header;
- Initialized variables;
- User is checked in the following order: GET parameter, action parameter, current user;
To do:
- (Optionally) create a config option allowing admins to decide whether users can display pages modified by other users;
actions/userchanges.php
%%(php)
<?php
$author =; #initializing variable
switch(true) {
case (isset($_GET['user'])