Revision [16834]
This is an old revision of UserPagesAction made by PssQ5n on 2007-05-31 10:54:13.
UserPages Action
This action is meant as a module to integrate the MyPages action into the UserAdmin tool.
To use it as a standalone action simply add:
{{userpages user="UserName"}} in the page body.
To use it as a standalone action simply add:
{{userpages user="UserName"}} in the page body.
This is an upgraded version of the MyPages action. It allows not only to display pages owned 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/userpages.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 owned by other users;
%%(php)
<?php
$owner =; #initializing variable
switch(true) {
case (isset($_GET['user'])