Quote:
Originally Posted by JohnK
OK, how about something really basic
The variables appear to be in two parts eg $bbuserinfo['userid'] there are also $show $post etc
Can anyone start by explaining how this works?
|
I assume you've figured this out by now, but in case anyone else stumbles on this thread and is wondering the same thing...
$bbuserinfo is a variable array: A variable that can hold multiple values, as opposed to a standard variable that holds only one value.
'userid' is one value in the
$bbuserinfo array that is only set if the user is a registered member.
So basically "if $bbuserinfo['userid']" is equivelant to saying, "Is the 'userid' value in the $bbuserinfo array set? If yes, then the user is registered".
To the best of my knowledge there is no one location where all the standard conditionals are documented here. One developer said it's because there are dozens of variable arrays with hundreds of values each, and as such making a list is just too time consuming for anyone to get to it right now.
Or something.