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 issue

8 years 10 months ago
Licenses:
JomSocial Active

HI,
I have a problem with the geolocation of my users. When I create or update a user, Jomsocial doesn't save the latitude / longitude values.

I have installed Geommunity 3, this plugin searches for data in # _community_users (latitude/longitude fields). But in this table all values stored are 255.
But in # _community_location_cache there are some records...

In Jomsocial configuration (Integration tab) I defined the address fields.

I attached some capture images...
Can you help me solve this problem?
Thanks.

Attachments:
8 years 10 months ago
  • Dimas's Avatar
  • Dimas
  • Visitor
  • Thank you received: 0
Licenses:

Hi,

Would you mind provide me phpmyadmin access, please? I will check this directly.

thank you!

8 years 10 months ago
Licenses:
JomSocial Active

Hi,
I added the server access to the Private Site information.

Thanks.

8 years 10 months ago
  • Dimas's Avatar
  • Dimas
  • Visitor
  • Thank you received: 0
Licenses:

Hi Acción,

Seems your location fields are wrong, you changed the field type with your language hard for me to investigate it since I dont understand what it means :(

if possible would you mind use the orignal setting from us, please? also please enable field country on it.





thank you

Attachments:
8 years 10 months ago
Licenses:
JomSocial Active

Hi,
I added country field and I changed Address field from textbox to Textarea. And it doesn't work...

I don't understand what is wrong in the mapping fields:
cb_centrodireccion = Address
cb_centropoblacion = City
cb_centroprovincia = State
cb_centropais = Country
cb_centrocp = Post Code

Attachments:
8 years 10 months ago
Licenses:

Hi,

because field code only use for jomsocial internaly, please changing that fields code to:
FIELD_ADDRESS
FIELD_CITY
FIELD_STATE
FIELD_COUNTRY
FIELD_ZIPCODE

instead of cb_centrodireccion, etc.

Regards

8 years 10 months ago
Licenses:
JomSocial Active

Hi,
Thanks for the reply, now I undertand the problem... but then why is necessary to do the mapping field?

Last question, if I rename the fields codes, can you assure me that will not lose the addresses of all users?

8 years 10 months ago
Licenses:

Hi,

there is a bug with the mapping field, that mapping not works.
if you rename the fields code, the data wiill stay, not lose.

Regards

8 years 10 months ago
Licenses:

Hi,

for fields mapping issue:
edit /components/com_community/libraries/mapping.php at line 35, find this code

static public function getAddressData($address)
{
after that code, put this code (line 37)
if(is_object($address)){
	$address = implode((array)$address,',');
}

edit /components/com_community/models/profile.php line 514, find this code
$address = str_replace('COM_COMMUNITY_LANG_NAME_', '', $user->getAddress());
changing it to
$address = CMapsHelper::getAddress($userid);

now you can using any field code to that address fields.

Regards

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