xoops forums

alyussiu

Not too shy to talk
Posted on: 2006/7/24 7:19
alyussiu
alyussiu (Show more)
Not too shy to talk
Posts: 119
Since: 2004/4/9 9
#1

Module creation / verify if a user is connected

Hello.

It's not really a question related to "begin with xoops", but it's "begin with modules".

I'd like to create a module with a little game to learn japanese.

For that, I'd like to set a list of "highscore" with the name of members and their scores.

Before starting that, I'd like to know how to verify if a member is connected, and also, the member name (if this possibility exists).

I mean that if it doesn't exist, I'd need to make another system for that *game*.

I think I can do it, but don't know how (I'm not a *skilled* programmer).

As always, I've searched the forums and the net before but didn't find the reply...

Thanks in advance for your reply ^^.

birdseed

Just popping in
Posted on: 2006/7/24 9:18
birdseed
birdseed (Show more)
Just popping in
Posts: 59
Since: 2005/2/26
#2

Re: Module creation / verify if a user is connected

if(empty($xoopsUser)) {
// not logged in
} else {
// logged in
}

alyussiu

Not too shy to talk
Posted on: 2006/7/25 8:48
alyussiu
alyussiu (Show more)
Not too shy to talk
Posts: 119
Since: 2004/4/9 9
#3

Re: Module creation / verify if a user is connected

Thanks birdseed, I'll try that. :)