PDA

View Full Version : how to echo thing rorm the vbulletin var


wouta
08-06-2008, 11:23 AM
Hi,

I trying to use the $vbulletin var. But i dont understand how i can use this array. When i echo something like $vbulletin->userinfo["username"] there is no problem. But when i try to echo $vbulletin->appname["lastvisit"] this most echo a mysql query i get nothing.

A other: When i try $vbulletin->session["location"] i get the follow message: Cannot use object of type vB_Session as array in

Is there someone who can tell me how i can use this array ?
Best reagrds

Opserty
08-06-2008, 12:29 PM
You can "echo" as mysql query...

I recommend you learn the basics of PHP (OOP & MySQL interaction will also be helpful) before you attempt to manipulate vBulletin.

$vbulletin is an object not an array.

wouta
08-07-2008, 09:07 AM
Yes maybe your right i need to know a lot more about OOP....

Dismounted
08-07-2008, 09:50 AM
Also note that OOP functionality has changed significantly from PHP 4 to 5.