By User on Sunday, 10 February 2019
Posted in General Issues
Replies 18
Likes 0
Views 652
Votes 0
Hello. I lost my user's "Country" and "City" data after migration from EasySocial and can't figure out how to set up new field (fast and free). Only for user's profile

Translate "Regions" at the moment - it will take a lot of time.

Use "country.json"? May be I can adopt this russian language country from CSV to text and put it to country.json, but I will get only Contry. But how to get City?

I tried "Country" field and "Adress field" both: from File and from Regins databace - no sucess.

I tried Foursquare API - it dosent display map, don't autodetect location and location searchbox still doesn't found "Russia" and "Россия".

At the moment I use ADRESS field in the "JomSocial default profile" Workflows.

What should I try? Thanks.
Yes, it is correct behavior, when you enabled "Use Maps" option from the address field, it will not render those country, state, city fields.

And it will display the whole address on the profile page as what map provider return you that address data.
·
Monday, 01 July 2019 19:21
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey there,

May i know how your site user enter their address into their user profile page (JomSocial)?

Is it it will render the address, city, state, and etc fields or just render a map location (Google map)?

Because when you do the migration, you need to choose which custom field you would like to migrate to for this location field? https://www.screencast.com/t/GmZwr44I

I tried Foursquare API - it dosent display map, don't autodetect location and location searchbox still doesn't found "Russia" and "Россия".

At the moment I use ADRESS field in the "JomSocial default profile" Workflows.

Regarding the EasySocial location, basically there are two parts. One to display / render the map. Another part is for the geolocation ( search for places and etc ).

Currently in EasySocial, all the map display / rendering are using Google map. As for geolocation, it depends on site admin which service provider to use. Meaning to say, the geolocation has to be used in conjunction with Google map.

As for your case, you will still need to setup Google Map API to render the map if your address field require to display map location.
·
Monday, 11 February 2019 16:44
·
0 Likes
·
0 Votes
·
0 Comments
·
May i know how your site user enter their address into their user profile page (JomSocial)?

Country (JS) was "Country" -> migrated as Country field (ES) - no data migrated.
City (JS) was "Textbox" -> migrated as "adress" (ES) - my mistake. Now thwre is no data in DB.

So, I'm looking for the best way to keep new City and Country.

If I don't need to display map in profile, but need to display as searchable text: Country and City (and may be state), so I still need to setup Google Map API? Thanks.
·
Thursday, 14 February 2019 04:06
·
0 Likes
·
0 Votes
·
0 Comments
·
Country (JS) was "Country" -> migrated as Country field (ES) - no data migrated.
City (JS) was "Textbox" -> migrated as "adress" (ES) - my mistake. Now thwre is no data in DB.

So, I'm looking for the best way to keep new City and Country.

Based on what I tested in locally, the 'Country' field data did migrated over to Easysocial.

What I realised is the country data already migrated but when you check on the user profile page, it didn't populate that country value is because I haven't initialise the country/state from the Regions section. Once I did it, it will populate the correct migrated value.

Regarding the 'City' field, you should choose back 'texbox' custom field type during migration, if not that is not possible to map back the value from Jomsocial to Easysocial.

May i know is this the domain site 'crimson-land.ru' is your live site which already migrated over to Easysocial? If that is development site, then it should be possible to re-do the migration again, if that is live site then that is not possible to re-do the migration.

By the way, it seems like I can't see any country custom field from Easysocial user workflow (JomSocial default profile).

If I don't need to display map in profile, but need to display as searchable text: Country and City (and may be state), so I still need to setup Google Map API? Thanks.

If you do not need to display the map in the profile so you do not need to setup Google Map API.
And you also no need to use Easysocial "Address" custom field as well since your Country and City just a normal field without populate the map previously.
·
Thursday, 14 February 2019 11:21
·
0 Likes
·
0 Votes
·
0 Comments
·
May i know is this the domain site 'crimson-land.ru' is your live site which already migrated over to Easysocial?
Hellp. Yes, it's live site and it is not possible to re-do the migration. I'm ready to start over (from the beginning), but don't know how.

Seems I need to use field "Country" and "Regions section" or file JPATH_ADMINISTRATOR . '/components/com_easysocial/defaults/countries.json. So I have to translate countries.json first.
When user start to type "Ru..." system offers to choose "Russia" country.

But what about City? I' heve to use "Textarea" for example? And there is no way to let user make preselection while typing like with Country?

Will be City visible in "Introducing" profile page section? How to make it visible?

P.S: after updating EasySocial, I'll have to reupload file countries.json?

Thanks.


Updated: I translated "countries.json" file and during editing profile I can type and chose "Россия" (it means "Russia"). But after save I can see "Russia" Whed I try to edit phofile again, country field is empty.
·
Monday, 18 February 2019 04:38
·
0 Likes
·
0 Votes
·
0 Comments
·
Hellp. Yes, it's live site and it is not possible to re-do the migration. I'm ready to start over (from the beginning), but don't know how.

Seems I need to use field "Country" and "Regions section" or file JPATH_ADMINISTRATOR . '/components/com_easysocial/defaults/countries.json. So I have to translate countries.json first.
When user start to type "Ru..." system offers to choose "Russia" country.

But what about City? I' heve to use "Textarea" for example? And there is no way to let user make preselection while typing like with Country?

I will suggest you to use address custom field so it will automatically show the state option which related with the country as what user choose, you can check my attached screenshot below.


Will be City visible in "Introducing" profile page section? How to make it visible?

P.S: after updating EasySocial, I'll have to reupload file countries.json?

You mean user about page? If yes, ensure that you have enable this "Appear during displaying" from the textarea custom field https://take.ms/WOWvM .

Yes, you have to re-upload again if the country/address custom field data source set to 'File'. https://www.screencast.com/t/mWRx7gSM9sKQ

File
JoomlaFolder/administrator/components/com_easysocial/defaults/countries.json

Region database (This need to initialise from backend > Easysocial > Region if you got modified these files)
JoomlaFolder/administrator/components/com_easysocial/defaults/regions/country.json
JoomlaFolder/administrator/components/com_easysocial/defaults/regions/state.json

- So this data will stored into database.
·
Monday, 18 February 2019 13:22
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi yes this is something that can be improved with ES how to make a better local profile using city (location) with zip accordingly for users so you can do geo communication with your users for campaings etc and leverage how to earn money with target customised segmentation of your user db in future. And i f using a map component change/have option for OpenStreetMap too using Mapbox features etc https://www.mapbox.com/about/maps/
·
Monday, 18 February 2019 17:53
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks for your suggestion ssnobben.
·
Monday, 18 February 2019 19:30
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello.
I created "Address" fiels and try different settings (with OpenStreet map):
Address > "Field"
- Show City: ON
- Show Country: ON
- Use Maps: ON
Address > "Requirements"
- Requires City: ON
- Requires Country: ON
As result in frontend site display map and "Detect my location" button. I like it because there is no need to type by keyboard Country and City.
But when I click on "Detect my location" it detect so many adress details: street, № house ets.
I expected to detect only country and city. As result if I save profile, it will display in fronend my full adress, but I don't want.
Does it works normal?
-----
If I try to set - Use Maps: OFF => frontend display only "City" and "Country" fields.
But there is no way to auto detect country & city?

I gain problem when some users type: NY, New York, New York City, NYC. But in fact it's different fields. Autodetect would be good.

Thanks
·
Saturday, 29 June 2019 16:42
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post