PDA

View Full Version : What is $bbuserinfo['userid'] ???


kau
09-15-2004, 09:25 PM
I set this value to this:

if($dobbimagecode AND $bbuserinfo['userid'] !== 42324)

And I tried

if($dobbimagecode AND $bbuserinfo['userid'] != 42324)

It still allows the IF statement to run even for that userid.

Is userid not that?

ALSO

What is the $bbuserinfo['whater'] for that users group they are in?

Jolten
09-15-2004, 09:43 PM
Usergroups are called by $bbuserinfo['usergroupid']

Admins would be
$bbuserinfo['usergroupid'] == 6

Registered users would be
$bbuserinfo['usergroupid'] == 2

and so on.

if (($dobbimagecode && ($bbuserinfo['usergroupid'] == 6))

may work for you (assuming you want to allow admins to post images.)

kau
09-15-2004, 09:50 PM
Do you have any idea what function builds a thread and calls the handle_bbcode_img to parse the IMG?