1
kalamata
What does the level attribute in xoops_users table represent?
  • 2006/12/12 11:29

  • kalamata

  • Not too shy to talk

  • Posts: 121

  • Since: 2005/3/3 1


Dear All,

I am not very clear about what the level attribute in the xoops_user table represents and where it is used. I had a look at the XOOPS documentation and run a search on the site, but no luck.

Could anybody please help?

Thanks,
George

2
zyspec
Re: What does the level attribute in xoops_users table represent?
  • 2006/12/12 13:23

  • zyspec

  • Module Developer

  • Posts: 1095

  • Since: 2004/9/21


'level' is used to tell whether a user has been activated (>0) or inactive (0).

3
kalamata
Re: What does the level attribute in xoops_users table represent?
  • 2006/12/12 15:13

  • kalamata

  • Not too shy to talk

  • Posts: 121

  • Since: 2005/3/3 1


Some of my users have their level attribute set to 5 or 2. What would these values represent?

Thanks,
George

4
Dave_L
Re: What does the level attribute in xoops_users table represent?
  • 2006/12/12 16:11

  • Dave_L

  • XOOPS is my life!

  • Posts: 2277

  • Since: 2003/11/7


activated
 0 
not activated
-disabled


I don't think other values have any significance, although as zyspec said, the usual check for an activated user is "level > 0".

5
kalamata
Re: What does the level attribute in xoops_users table represent?
  • 2006/12/13 13:05

  • kalamata

  • Not too shy to talk

  • Posts: 121

  • Since: 2005/3/3 1


Is that documented somewhere? What code should I look at to check these values? Surely, users can not have level values assigned randomly to them as long as they are not zero or minus one.

George

6
Dave_L
Re: What does the level attribute in xoops_users table represent?
  • 2006/12/13 13:32

  • Dave_L

  • XOOPS is my life!

  • Posts: 2277

  • Since: 2003/11/7


I don't think it's documented anywhere.

My very first post at xoops.org, over three years ago, asked about this same issue:https://xoops.org/modules/newbb/viewtopic.php?topic_id=13571

7
Mithrandir
Re: What does the level attribute in xoops_users table represent?

the -1 = disabled is - so far - a XOOPS 2.2-only level.

Apart from that, you should only worry about 0 (not activated) and >0 (activated). Level 5 is given to the user created through the setup process, but is effectively the same as level 1.

My guess is that it is a leftover from earlier days, when the group permissions were not as good as they are today and we needed a way to specify an administrator specifically on the user profile.
"When you can flatten entire cities at a whim, a tendency towards quiet reflection and seeing-things-from-the-other-fellow's-point-of-view is seldom necessary."

Cusix Software

Login

Who's Online

233 user(s) are online (139 user(s) are browsing Support Forums)


Members: 0


Guests: 233


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