Hi. Anyone know if it’s possible somehow to add a location to a map by dropping a pin with this plugin?
The locations of some communities are in places that are hard to identify without the use of coordinates, which might put some users off adding a location. Thanks!
I noticed an issue with location under topic title. If a user remove a previously added location from /preferences/profile
Then it will show an empty location under topic title instead of remove it.
Using the outlet is way more elegant, but there is an issue.
The outlet location is just after the topic title… And before the badges div (where it shows the dot indicating unread messages or new topics). The result:
I see no easy solution to fix this, even with CSS (I tried stuff).
I also feel that asking for a new outlet in #feature wouldn’t be interesting enough to be added to Discourse.
Edit: I made it so the badge is next to the location. That will do.
@Canapin once this is mature I’d definitely welcome this as a PR to the main plugin repo so long as:
the behaviour was behind a plugin setting
the CSS designed in such a way that it doesn’t disturb things if there are other uses of the outlet in addition to this one.
For example, Topic Ratings also uses the same plugin outlet. Turns out you can chain things via the same outlet. I tested this and it appears they both show if active at the same time (good ), but you wouldn’t want the CSS to disturb the ratings section unnecessarily.
ditto if the setting was OFF
Also, if the setting was OFF you’d want the icon to remain in its original position.
This fixes the map! But the other buttons are also broken: when clicking on “find address” when creating a discussion, and clicking the small location icon in a topic list shows the pin button instead.
Btw thank you for this plugin, it’s so convenient.
Hi folks - I’m interested in adding a State/City field to my new user sign up process, which would then populate the locations map. Is there an easy way to accomplish this? Thanks!
I have another question. When I try to add a location to a new post and click “Save”, the window does not close anymore. In the developer console of the browser I see everytime I hit “Save” the following:
Deprecation notice: DButton no longer supports @action as a string. Please refactor to use an closure action instead. [deprecation id: discourse.d-button-action-string]
User problem or maybe problem with another plugin or component or just a bug?