Support

  1. galbur
  2. General
  3. Tuesday, May 10 2022, 04:24 PM
Hi

There is a radius search on your own user-list. Is it possible to fill out the adress field with the users position?
Or maybe with the value of a customfield (adress? Zip-Code?)

Thank you
Best regards
Christoph
Accepted Answer
admin Accepted Answer
Admin
The form search the address in the field with alias "adresse_google_suche", but the position of the users is stored in field with alias "map_test"
  1. more than a month ago
  2. General
  3. # Permalink
admin Accepted Answer
Admin
Do you mean something like "users near you"?
  1. more than a month ago
  2. General
  3. # 1
galbur Accepted Answer
Hi
And sorry for my delay. I was in Holiday.
Yes. I search for something like this (on your own site)

I don't know how to acitvate it. In the module? In the Menulink parameters? In the MAP customfield?

Thank you
Best regards
Christoph
  1. more than a month ago
  2. General
  3. # 2
admin Accepted Answer
Admin
Hi,
basically you need a list with users near you, so you can use this way to show users on a map (with Map Module) or simple a list (users list module).
To do this you can combine "SQL custom where" (this parameter is available in both modules) with our content plugin.

You can replace in SQL custom where the coordinates of the position with loggen in user position, so in parameter "SQL custom where" you can put this code
( 6371 * acos( cos( radians({user map_alias_lat raw}) ) * cos( radians( b.`map_lat` ) ) * cos( radians( b.`map_lng` ) - radians({user map_alias_lng raw}) ) + sin( radians({user map_alias_lat raw}) ) * sin( radians( b.`map_lat` ) ) ) ) < 20


- in this example you will get users near me (logged in user), with 20km of radius (you can change the value 20 with something else)
- {user map_alias_lat raw} will be replaced by my latitude of map_alias field (you need to replace map_alias with the alias of google map field, for example if the field alias is "address" then you need to replace "map_alias_lat" with "address_lat";)
- {user map_alias_lng raw} will be replaced by my longitude of map_alias field (you need to replace map_alias with the alias of google map field, for example if the field alias is "address" then you need to replace "map_alias_lng" with "address_lng";)

Docs for our Content plugin here: https://www.easy-profile.com/docs/26-plugin-content.html
  1. more than a month ago
  2. General
  3. # 3
galbur Accepted Answer
Hi and thanks a lot

I tried to make it work. But without succes.
So i enabled a gmap field with the following settings (s. easyprofile.p_1png)

But when i try to use the radius-Search with a city name i don't have andy results.

Another question: How can i change the order of the from fields? (s.easyprofile_2png) I want the radius search at the end of the form.

Regards
Christoph
  1. more than a month ago
  2. General
  3. # 4
admin Accepted Answer
Admin
Hi,
there is an small incompatibility issue with jQuery version used by your template and our script, try to follow these steps:
- Download and unzip the attached gmap.zip file
- Replace with new gmap.php file the old file placed in /administrator/components/com_jsn/helpers/fields/gmap.php (do not rename the old file, replace it or delete it)

I will include this fix in the next release.
Attachments (1)
  1. more than a month ago
  2. General
  3. # 5
galbur Accepted Answer
Content Protected
  1. more than a month ago
  2. General
  3. # 6
galbur Accepted Answer
OK

That was the point!
Thank you ...

Regards
Christoph
  1. more than a month ago
  2. General
  3. # 7
  • Page :
  • 1


There are no replies made for this post yet.
However, you are not allowed to reply to this post.

Request Support

Support is currently Online

Support Availability

Working days: Monday to Friday. The support staff is not available on weekends; in the most of cases tickets will not be answered during that time.

Reply time: Depending on the complexity of your support issue it's usually between a few minutes and 24 hours for paid members and about one week for free members. When we expect longer delays we will notify you.

Guidelines

Before you post: read the documentation and search the forums for an answer to your question.

When you post: include Site Details if you request a support (you can use the form below the reply in Site Details tab).

Auto Solved Question: If after a week the author of the post does not reply to a request by moderator, the question will be marked as resolved.

Language: only English

Search Users

Easy Profile® is not affiliated with or endorsed by Open Source Matters or the Joomla Project. Joomla is Free Software released under the GNU/GPL License.