Uutiset:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu
Advertisement:

Looking for array name to grab Member Location from....

Aloittaja MechSpecs, syyskuu 08, 2013, 12:40:20 IP

« edellinen - seuraava »

MechSpecs

I'm using a custom page in SimplePortal that presents the user with an application form (for a gaming league).

I'm trying to pull as much data from their actual forum registration as possible. So far I have it automatically pulling their member name... like this...


array(

               'caption' =>        "What is your MWO Pilot Name / Callsign",

               'name' =>            "nickname",

               'type' =>            "text",

               'options' =>        "",

               'defaultvalue' =>     $context["user"]["name"],

               'required' =>        1 

           ),


What I can NOT find is where the member location is stored. $member["location"] doesn't work.

Any ideas on this?

EDIT: Yes, I have done NUMEROUS searches on trying to solve this issue and so far haven't found anything that works.

Sir Osis of Liver

When in Emor, do as the Snamors.
                              - D. Lister

Arantor

That only works in the profile area... (since that's the only place $context['member'] is actually declared)

You might actually find it in $user_settings['location'] assuming it's the default field and not a custom field or anything.
Holder of controversial views, all of which my own.


MechSpecs

Lainaus käyttäjältä: Arantor - syyskuu 08, 2013, 03:57:09 IP
That only works in the profile area... (since that's the only place $context['member'] is actually declared)

You might actually find it in $user_settings['location'] assuming it's the default field and not a custom field or anything.

Thank you sir! You saved from Headache Round 2 after last nights searching. Which there was a manual were all this kinda information was stored or at least a manual that showed up during searches for it LOL

Arantor

The problem with a manual is that no-one actually wants to write it.
Holder of controversial views, all of which my own.


Advertisement: