Quote:
Originally Posted by Alan @ CIT
The userinfo is stored in the (suprisingly) userinfo array  To access it use:
Code:
echo $vbulletin->userinfo['userid'];
echo $vbulletin->userinfo['username'];
echo $vbulletin->userinfo['etc...etc'];
|
Copied it directly, nothing printed out.
Tried printing random stuff on same line to make sure that the echo is working. It does. Seems that userid is not populated? I am logged in when trying it.
Quote:
Originally Posted by KirbyDE
1) For Debug Output one should use DEVDEBUG instead of echo ... doesn't destroy the Layout 
|
Thanks. How do you use it?
Do you have to turn on debug mode? In config.php? $config=1;?
Quote:
2) You can "output" an object just like an array: print_r($object)
|
I didn't know you could do that with an array. I thought you had to loop through all the keys and values. Hmm, I'll have to try that.
Quote:
3) OOP is a great concept, although PHP (yet?) isn't "really" object-orientated.
|
Is there pretty much universal agreement on that, or is there a battle between the pro and anti OOP crowd?
Quote:
4) In the constructor (and all Methods of Class vB_Input_Cleaner), the Userid is available as
PHP Code:
$this->registry->userinfo['userid']
|
Couldn't get that to work either.
Tried:
echo $this->registry->userinfo['userid'];
Tried:
$test= $this->registry->userinfo['userid'];
echo $test;
etcetera...