Notice

The forum is in read only mode.

Support Forum

Welcome! Support Forums have been reactivated
Welcome the Technical Support section. Help us in assisting you by providing us with a concise and descriptive elaboration of your issues. Be specific and if possible, provide us with a step-by-step instruction in replicating your problem.

Geolocation not recognising a UK address format (put apartment in 1st line)

11 years 5 months ago
  • Susan's Avatar
    Topic Author
  • Susan
  • Offline
  • Fresh Boarder
  • Posts: 69
  • Thank you received: 20
Licenses:
JomSocial Expired AdAgency Expired iSEO Expired Socialize Expired

ISSUE SUMMARY:

1) in the Uk people write the address format with their Apartment as the first line of their address eg
Apt 1, 196 Fulham Palace Rd, London W6

[Also, most people in the UK call their apartment a 'Flat' eg 'Flat 1' (and they put that in the first line of the address)]

We have discovered that if the user puts 'Apt' or 'Flat' at the start of the address, the address is not recognised….

We are using Hello Maps. They tell us the Geolocation is managed directly by JomSocial - HelloMaps takes coordinates generated from the table of JomSocial.

I have tested on UK Google Maps ( www.google.co.uk/maps/ ), and Google does correctly position addresses with Flat or Apartment in the first line.

Therefore please can you tell us how we can get Jomsocial to generate correct co-ordinates for all UK address formats?


STEPS TO REPLICATE:
1 Put Flat 1 in front of a UK address, eg above
2 Look on maps to see location (or HelloMaps)
3
4
5
RESULT The address is not marked on HelloMaps at all
EXPECTED RESULT - addresses with apartments, flats, building names should show on the map and be correctly positioned!
BROWSER

11 years 5 months ago
Licenses:

Hi Susan,

I need to deep inside the issue. please provide me FTP and cpanel/phpmyadmin access detail.
and what username that having that address?

and I want make sure, the issue with this page, right?:


Removed by admin

FYI: you can put any credentials information by editng your first post at this topic, put it at site info form.

Regards

11 years 4 months ago
  • Susan's Avatar
    Topic Author
  • Susan
  • Offline
  • Fresh Boarder
  • Posts: 69
  • Thank you received: 20
Licenses:
JomSocial Expired AdAgency Expired iSEO Expired Socialize Expired

I updated the first post

11 years 4 months ago
Licenses:

Hi Susan,

I confirmed, this is a bug for "two words" country name. here the temporary fix:
edit [joomla root]/components/com_community/models/profile.php around line 512, find this code

$address = str_replace('COM_COMMUNITY_LANG_NAME_', '', $user->getAddress());
changing it to
$address = str_replace('UNITEDKINGDOM', 'UNITED KINGDOM', str_replace('COM_COMMUNITY_LANG_NAME_', '', $user->getAddress()));

Regards

11 years 4 months ago
  • Susan's Avatar
    Topic Author
  • Susan
  • Offline
  • Fresh Boarder
  • Posts: 69
  • Thank you received: 20
Licenses:
JomSocial Expired AdAgency Expired iSEO Expired Socialize Expired

To clarify, will this fix the issue of putting Flat/Apartment/Building name before the street name, so that these addresses will shown on the Map?

Thanks a lot,

11 years 4 months ago
Licenses:

Hi Susan,

yes, that correct. I made the test with that.

Regards

11 years 4 months ago
  • Susan's Avatar
    Topic Author
  • Susan
  • Offline
  • Fresh Boarder
  • Posts: 69
  • Thank you received: 20
Licenses:
JomSocial Expired AdAgency Expired iSEO Expired Socialize Expired

Thank you, this works for the UK now.

Is this code still going to work in other countries if one our subdomains is based in another country?

11 years 4 months ago
Licenses:

Hi Susan,

the issue only happing with the countries name that containing "two words". e.g: United Kingdom, that country name always become as "one word" (unitedkingdom).

this issue is a bug, our developer still fixing this issue.

there are any site members that from "two words" countries name? (except UK)

Regards

11 years 4 months ago
  • Susan's Avatar
    Topic Author
  • Susan
  • Offline
  • Fresh Boarder
  • Posts: 69
  • Thank you received: 20
Licenses:
JomSocial Expired AdAgency Expired iSEO Expired Socialize Expired

South Africa, Hong Kong, South Korea to think of a few! There are lots! The solution needs to cover all countries!! Our site is not specific to one country.

11 years 4 months ago
Licenses:

Hi Susan,

please wait official fixes from jomsocial developer.

Regards

11 years 4 months ago
Licenses:

Hi,

here the fix:

This attachment is hidden for guests.
Please log in or register to see it.

unzip and put it at:
components/com_community/libraries/user.php

or upgrade to 4.0.8

Regards

This message has an attachment file.
Please log in or register to see it.

Moderators: Piotr Garasiński
Powered by Kunena Forum

Join 180,000 websites creating Amazing communities

JomSocial is the most complete, easy-to-use addon that turns Joomla CMS into a
full -fledged, social networking site

TRY NOW BUY NOW