1
alyussiu
Module creation / verify if a user is connected
  • 2006/7/24 7:19

  • alyussiu

  • Not too shy to talk

  • Posts: 119

  • Since: 2004/4/9 9


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 ^^.

2
birdseed
Re: Module creation / verify if a user is connected
  • 2006/7/24 9:18

  • birdseed

  • Just popping in

  • Posts: 59

  • Since: 2005/2/26


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

3
alyussiu
Re: Module creation / verify if a user is connected
  • 2006/7/25 8:48

  • alyussiu

  • Not too shy to talk

  • Posts: 119

  • Since: 2004/4/9 9


Thanks birdseed, I'll try that. :)

Login

Who's Online

369 user(s) are online (283 user(s) are browsing Support Forums)


Members: 0


Guests: 369


more...

Donat-O-Meter

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

Latest GitHub Commits