Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Aiheen aloitti: dr.wills - helmikuu 23, 2009, 05:28:17 IP

Otsikko: How to add a new variable to $context['user'] using Load.php?
Kirjoitti: dr.wills - helmikuu 23, 2009, 05:28:17 IP
I want to add a new variable to $context['user'] array so that it will be loaded and ready for use. But I don't know how to do it.
Further more, is 2.x still using $user_info array? How do I add item into this array?

I want my new variable to be ready, much the same way as $context['user']['name']

Thanks ;)
Otsikko: Re: How to add a new variable to $context['user'] using Load.php?
Kirjoitti: John Eric - helmikuu 24, 2009, 12:49:11 AP
look in CUSTOMIZE and find "DEFAULT AVATAR MOD"
do the submit button and method reveal of how to do as you ask
Otsikko: Re: How to add a new variable to $context['user'] using Load.php?
Kirjoitti: JimM - maaliskuu 14, 2009, 02:44:45 IP
akaiphan9x, did the above suggestion help you?  If this is solved, feel free to mark it as solved by clicking the Mark Topic Solved link at the bottom of the page under the linktree.