1
Yasen
Lame queston about uid
  • 2005/8/29 12:42

  • Yasen

  • Just popping in

  • Posts: 14

  • Since: 2005/6/7 1


I'm trying to enhace a module.
I need to know if
$xoopsUser->getVar('uid');

will give me uid of the user?

2
Mithrandir
Re: Lame queston about uid

$uid = isset($xoopsUser) ? $xoopsUser->getVar('uid') : 0;

Will ensure that you won't get a blank page if the page is accessed by an anonymous user
"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

3
Yasen
Re: Lame queston about uid
  • 2005/8/29 13:02

  • Yasen

  • Just popping in

  • Posts: 14

  • Since: 2005/6/7 1


And I'll need to check if $uid is not 0, wont I?

4
Mithrandir
Re: Lame queston about uid

Yup.
"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

5
Yasen
Re: Lame queston about uid
  • 2005/8/29 13:12

  • Yasen

  • Just popping in

  • Posts: 14

  • Since: 2005/6/7 1


Thanks alot.

6
Mithrandir
Re: Lame queston about uid

anytime
"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

241 user(s) are online (133 user(s) are browsing Support Forums)


Members: 0


Guests: 241


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