By Radu Jentimir on Thursday, 27 February 2020
Posted in General Issues
Likes 0
Views 392
Votes 0
Hello Stackideas,
1. I want to restrict the geolocation to city and country only, in other words when a user fills in their address field to only show city and not the whole address. Street and house number should not appear.
2. Also in the user's introduction section to show City and Country and not the State and Country, for example Chicago, United States and not Illinois, United States.

Is there an option to do that or set some restrictions in google maps api?

Thank you very much.
Currently I am not sure whether that is possible to restrict it from the Google service provider and we do not have an option to let site admin to decide which address info should appear on the user profile page.

For now you can try download my attached file then put these files into this following template override file location, it will only show city and country data.

JoomlaFolder/templates/yourCurrentTemplate/html/com_easysocial/apps/fields/user/address/widgets/display.php
JoomlaFolder/templates/yourCurrentTemplate/html/com_easysocial/apps/fields/user/address/display_content.php


For those new folder you have to create it manually.
·
Thursday, 27 February 2020 12:51
·
0 Likes
·
0 Votes
·
0 Comments
·
+1 good idea. I will also be consistent worldwide
·
Thursday, 27 February 2020 22:06
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks for head up on this ssnobben.
·
Friday, 28 February 2020 12:23
·
0 Likes
·
0 Votes
·
0 Comments
·
Thank you very much. I will implement it soon.
·
Friday, 28 February 2020 18:54
·
0 Likes
·
0 Votes
·
0 Comments
·
You are most welcome.

Just for your information, I have locked and marked this thread as resolved to avoid confusions in the future. Please start a new thread if you have any other issue in the future so it will be easier for us to manage your inquiries.

Thanks for understanding.
·
Friday, 28 February 2020 19:22
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post