Register Members List Search Today's Posts Mark Forums Read

Thread Tools
Old 06 Aug 2008, 12:23
wouta wouta is offline
Join Date: Jan 2008
how to echo thing rorm the vbulletin var


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

Last edited by wouta; 06 Aug 2008 at 12:36.
Reply With Quote
Old 06 Aug 2008, 13:29
Opserty Opserty is offline
Join Date: Apr 2007
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.
Reply With Quote
Old 07 Aug 2008, 10:07
wouta wouta is offline
Join Date: Jan 2008
Yes maybe your right i need to know a lot more about OOP....
Reply With Quote
Old 07 Aug 2008, 10:50
Dismounted's Avatar
Dismounted Dismounted is offline
Join Date: Jun 2005
Real name: Hanson
Also note that OOP functionality has changed significantly from PHP 4 to 5.
Former Staff Member

View My Modifications
29 Releases and Counting... Latest Modification: dmActivityStream - vBookie Integration (4.x)

Please do not PM me to ask for support - please use the relevant thread or forum.
Reply With Quote

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

New To Site? Need Help?

All times are GMT. The time now is 03:41.

Layout Options | Width: Wide Color: