PDA

View Full Version : Usergroup


colicab-d
04-18-2003, 08:46 PM
Where is $usergroupid given its value? i.e in which file is this value assigned?

I want to know as ive got a little hack coming along nicley using a switch statement to set certain things up for users based on there usergroup id in the postbit ;)

Logik
04-18-2003, 09:21 PM
I believe global.php. IF im not mistakin. I very well could be.

colicab-d
04-19-2003, 08:31 AM
ive been looking about in global but i can find the variable there..

i will have a closer look tonite after work

Dean C
04-19-2003, 11:10 AM
Do you mean $bbuserinfo[usergroupid] ?

- miSt

Xenon
04-19-2003, 11:16 AM
$usergroupid is always defined temprarily in functions to work with.

the only global usergrouoid is $bbuserinfo['usergroupid'] and that's defined in globa.php or sessions.php i'm not absolutely sure ;)

colicab-d
04-19-2003, 05:26 PM
thnx xenon :D i will maodify my code now to work.. witht he info given and see how it goes