1
Auzze
Output xoops info
  • 2003/10/20 12:21

  • Auzze

  • Just popping in

  • Posts: 19

  • Since: 2002/6/1 2


HI..

I have been running a XOOPS site since May 1st 2003. I find XOOPS is great but I need to output some of XOOPS members info to a page.
How would I do this.

What I need to output
Members Name
ID#
When joined
Last Loged on.
If they are online.

Also I need to make a form to so the members can input some info, like time doing an activity. The times will also need to be added and outputed aswell.

Anyone willing to help me.

Auzze
http://www.vfbl.com


2
ackbarr
Re: Output xoops info

Getting information about each user is a snap, the xoopsUser object contains properties for each of your desired fields:
$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

3
Auzze
Re: Output xoops info
  • 2003/10/21 8:34

  • Auzze

  • Just popping in

  • Posts: 19

  • Since: 2002/6/1 2


Thanks for that info but how do I put it into a webpage..
I have never programmed in php.


Auzze

Login

Who's Online

203 user(s) are online (140 user(s) are browsing Support Forums)


Members: 0


Guests: 203


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits