Simple Machines Community Forum

Customizing SMF => SMF Coding Discussion => Aiheen aloitti: leroymcqy - maaliskuu 10, 2014, 10:36:03 IP

Otsikko: where do i find all the functions or context calls at
Kirjoitti: leroymcqy - maaliskuu 10, 2014, 10:36:03 IP
where can i find a list of these items:


$PersonalText = $memberContext[$id]['blurb'];
                $Website = $memberContext[$id]['website']['url'];
                $UserName = $context['user']['name'];
                $UserPosts = $user_info['posts'];
                $UserAvatar = $context['user']['avatar']['href'];


i am looking to add data to my custom script. i am usin ssi but i like to actually hard code my items and use ssi with certain items then for the whole site.

i love freedom coding not strict coding. if it comes to using ssi for most parts then yes i will use it then.
Otsikko: Re: where do i find all the functions or context calls at
Kirjoitti: leroymcqy - maaliskuu 11, 2014, 10:37:43 IP
bump
any help??
Otsikko: Re: where do i find all the functions or context calls at
Kirjoitti: kat - maaliskuu 12, 2014, 06:33:50 AP
I'm not sure what you're asking for, to be honest.

What is it that you want to do with this information, exactly?
Otsikko: Re: where do i find all the functions or context calls at
Kirjoitti: Oldiesmann - maaliskuu 12, 2014, 12:06:20 IP
Lainaus käyttäjältä: leroymcqy - maaliskuu 10, 2014, 10:36:03 IP
where can i find a list of these items:


$PersonalText = $memberContext[$id]['blurb'];
                $Website = $memberContext[$id]['website']['url'];
                $UserName = $context['user']['name'];
                $UserPosts = $user_info['posts'];
                $UserAvatar = $context['user']['avatar']['href'];


i am looking to add data to my custom script. i am usin ssi but i like to actually hard code my items and use ssi with certain items then for the whole site.

i love freedom coding not strict coding. if it comes to using ssi for most parts then yes i will use it then.

If you want data for the current member, then you can include SSI.php and access $context['user'] or $user_info to get the data you want ($memberContext is only used internally and won't be set in most places).