2
Getting information about each user is a snap, the xoopsUser object contains properties for each of your desired fields:
le="color: #000000"><?php $member_handler =& xoops_gethandler('member'); //Retrieve all users in our site $members =& $member_handler->getUsers(); //Loop through each user and output desired fields: foreach ($members as $obj) { echo('Member Name: ' . $obj->getVar('name')); echo('ID #: ' . $obj->getVar('uid')); echo('Joined: ' . formatTimestamp($obj->getVar('user_regdate'))); echo('Last Login: ' . formatTimestamp($obj->getVar('last_login'))); echo('Is Online?: ' . $obj->isOnline()); }
For your second request, you are starting to ask for features that should probably be a module. So I would recommend a quick jaunt over to the
Module Development documentation on the
Xoops Wiki site