Looking to Add Variables to $user->data[]...

Discussion forum for MOD Writers regarding MOD Development.
User avatar
Jackanape
Registered User
Posts: 1076
Joined: Wed Oct 13, 2004 6:01 am
Location: Capitol of the Great State of New York
Name: Jack Drury

Looking to Add Variables to $user->data[]...

Post by Jackanape »

I'm digging around, trying to sift through various functions, sessions.php, etc., and having a tough time finding this. I'd like not to have to make a data call for every time the header is referenced, if I can just use the $user->data[] array...

Where can this best be done?
~Extending the rule of meticulous exactitude to exaspirating punctillio...still.~
Treat your phpBB like a member of the family--Update and MOD her by hand, with HTML-Kit
: : Wanna Talk Poker? : : Image : :
User avatar
Elsensee
Former Team Member
Posts: 124
Joined: Sat May 07, 2011 11:04 am
Location: Hamburg, Germany
Name: Oliver Schramm

Re: Looking to Add Variables to $user->data[]...

Post by Elsensee »

The $user->data array consists of the data for every column in the users table.
So by adding a new column to the users table, you're adding a new key-value-pair to the $user->data array. ;)
Former Development Team Member
I don't make bugs - I make features
User avatar
Jackanape
Registered User
Posts: 1076
Joined: Wed Oct 13, 2004 6:01 am
Location: Capitol of the Great State of New York
Name: Jack Drury

Re: Looking to Add Variables to $user->data[]...

Post by Jackanape »

Alright! Thanks, and CHEERS!
~Extending the rule of meticulous exactitude to exaspirating punctillio...still.~
Treat your phpBB like a member of the family--Update and MOD her by hand, with HTML-Kit
: : Wanna Talk Poker? : : Image : :

Return to “[3.0.x] MOD Writers Discussion”