where's location row in the db?

Started by Naytheet, September 21, 2023, 11:13:28 AM

Previous topic - Next topic

Naytheet

Hello, Can anyone tell me if geographic location is in the members table? I can't see it and I wonder how it can find it, because it is showed in the profile view.
In me sanitas et robur

Diego Andrés

Do you mean location? That's a custom field and it would be stored in the custom_fields table.

SMF Tricks - Free & Premium Responsive Themes for SMF.

Naytheet

Ok but where are stored the values of the locations?
In me sanitas et robur

Diego Andrés

I believe it's the smf_themes table.

SMF Tricks - Free & Premium Responsive Themes for SMF.

Kindred

Let's ask the important question....

WHY are you looking for the information? WHAT are you looking to accomplish?
Once you tell us that, we can give you better instructions on what to do and how.
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Naytheet

I'm moving members data from a forum to another, the source forum is quite old and not SMF.
In me sanitas et robur

Kindred

What is the old forum system?

It becomes complicated, Because those fields are only created when a user enters data.   The blank fields do not exisr
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Naytheet

it's a forum made through a course, without any PHP guider like SMF. I searched some entered value in the files locally with the GREP instr and didn't find anything lol.
In me sanitas et robur

Kindred

Right,  nothing is stored in files.

The extended profile information is stored as individual rows in the smf_themes table in the database. 
The exact value set will be different based on what theme you are using as well as what the field is...
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Naytheet

You mean the user has to enter his location in each theme? I haven't looked into this table yet.
In me sanitas et robur

Diego Andrés

No, it uses theme_id = 1 when it stores the custom_field.
Check the function makeCustomFieldChanges

SMF Tricks - Free & Premium Responsive Themes for SMF.

Naytheet

Ok I could find it there indeed, thank you so much everyone for clear and concise explanations and guidance.
In me sanitas et robur

Advertisement: