@Roi you got your wish … this was admittedly quite an important one.
User Map will no longer serve data if any of following is true:
User is not logged in and hide_user_profiles_from_public is active.
Plugin setting location_user_map is OFF
Site’s enable_user_directory is OFF
User Map link in community section should no longer show in those circumstances either.
If you think Locations is awesome and I did a great job, you can buy me a coffee, and if Locations is important to your business or organisation, please consider sponsoring me on one of the higher tiers . This will all help to guarantee timely updates to Locations and its future.
Oh wow great, thank you so much! I cannot believe that this never popped up before and was asked.
I will try tonight and update the addon.
Don’t get me wrong and think that I am greedy and inappropriate: But is it also possible to hide the Location user post if activated along with the user map as well for guests and search engines?
I think this means it was just a setting to add an icon to the Topic List (via “TopicStatus”) … I’m not sure why you wouldn’t just handle this via the new Topic List location label and handle its visibility via CSS?
Therefore I think it’s redundant and probably all related code should be removed?
I just started using this plugin so I can’t speak to others who might have been using that setting, but I could see why one might want a more subtle indicator that there is location rather than the whole location label. But I was able to get the same thing after tinkering with some CSS (hint float: left) so yeah, likely redundant.
אני סקרן - מה יידרש, מבחינה הנדסית ומבחינה כספית, כדי שיהיה נקודת קצה של API לכתיבה/אחזור המיקום עבור נושא? ברמה גבוהה, אני חושב על זרימת עבודה כזו, כאשר ה-API משמש בשלב האחרון:
משתמש מתחיל נושא חדש עם מידע על עסק: שם, עיר, ולעיתים שכונה.
השתמש בכלי אוטומציה של זרימת עבודה כגון n8n כדי לאחזר את שם הנושא והתוכן ולהזין אותו למודל LLM כדי להחזיר כתובת רחוב.
סטנדרטיזציה של פורמט הכתובת באמצעות, למשל, Google Maps API.
שלח את כתובת הרחוב ל-API של תוסף המיקום כדי לשלוח (POST) את הכתובת עבור הנושא.
הפעלנו את פונקציונליות המיקום עבור המשתמשים, אך האימוץ משתנה. חלק מהמשתמשים תמיד כוללים מיקומים, חלקם לעולם לא. אז אני מנסה לפתור עבור המשתמשים שלא מוסיפים מיקומים.
The Geocoder gem that ships with the plugin already does a lot of cool searching (and could be used to do more e.g. IP lookup). The data formats used by the plugin are standard already.
You can probably reverse engineer the API using the browser requests as a guide.
Yes, my experience too. If someone wanted to support an option for mandatory IP based defaulting of user location I’d be up for a PR (though this would need to be an opt in tick or something as a bit of a privacy leak!)
There is also a current in-flight PR here (which adds a simple button to the UI for topic locations) but the author seems to have abandoned it? (which would be a shame) … could be extended for User location theoretically … lowering the barrier further.
למעשה, אנחנו לא מחפשים את מיקום המשתמש, אלא את מיקומם של העסקים (מסעדות) שהם כותבים עליהם, ולכן אנחנו עדיין צריכים LLM כדי לנתח את התוכן של מי שהם כותבים עליו, למשל, The French Laundry, Yountville, ולמצוא את כתובת המסעדה:
Today after updating Discourse this great plugin shows some deprecations, one also on the page itself for admins:
[Admin-Hinweis] Plug-in ‘discourse-locations’ enthält Code, der aktualisiert werden muss. (ID:discourse.jquery-autocomplete) (mehr erfahren)
Others in the developer console of the browser:
DEPRECATION: [PLUGIN discourse-locations] The user property path was used in the discourse/plugins/discourse-locations/discourse/templates/connectors/user-card-location-and-website/replace-location.hbs template without using this. This fallback behavior has been deprecated, all properties must be looked up on this when used in the template: {{this.user}} [deprecation id: ember-this-fallback.this-property-fallback] This will be removed in ember-this-fallback n/a. See Resolving the `this-property-fallback` deprecation for more details.
DEPRECATION: [PLUGIN discourse-locations] The showUserLocation property path was used in the discourse/plugins/discourse-locations/discourse/templates/connectors/user-card-location-and-website/replace-location.hbs template without using this. This fallback behavior has been deprecated, all properties must be looked up on this when used in the template: {{this.showUserLocation}} [deprecation id: ember-this-fallback.this-property-fallback] This will be removed in ember-this-fallback n/a. See Resolving the `this-property-fallback` deprecation for more details.
DEPRECATION: [PLUGIN discourse-locations] The linkWebsite property path was used in the discourse/plugins/discourse-locations/discourse/templates/connectors/user-card-location-and-website/replace-location.hbs template without using this. This fallback behavior has been deprecated, all properties must be looked up on this when used in the template: {{this.linkWebsite}} [deprecation id: ember-this-fallback.this-property-fallback] This will be removed in ember-this-fallback n/a. See Resolving the `this-property-fallback` deprecation for more details.
DEPRECATION: [PLUGIN discourse-locations] The removeNoFollow property path was used in the discourse/plugins/discourse-locations/discourse/templates/connectors/user-card-location-and-website/replace-location.hbs template without using this. This fallback behavior has been deprecated, all properties must be looked up on this when used in the template: {{this.removeNoFollow}} [deprecation id: ember-this-fallback.this-property-fallback] This will be removed in ember-this-fallback n/a. See Resolving the `this-property-fallback` deprecation for more details.
The only setting I’ve found is Location sidebar menu map link, disabled by default, which adds this “Map” (leading to https://unicyclist.com/map) link when enabled:
I integrated that plugin in my discourse - but how can a user delete his location? Everytime if i am deleting it in a profile, it occurs again and again.
i have used the plugin for a few years. it always worked. recently after i updated discourse and the plugin, when i try to enter the location of a topic, it asks me to Select Options. When I selected the dropdown, it doesn’t display any choices. Question: how can our users avoid this dropdown and go back to entering the address? Thanks.