Locations Plugin

Those 2 in the middle of the Pacific Ocean look like they are living the life! :desert_island:

which geolocation providers are you each using?

1 Like

Both are on Oahu, Hawaii. :desert_island:

Nominatim.

3 Likes

Nominatim here too :+1:t2:

3 Likes

@Roi this is merged:

Not sure this ever worked as intended, looks like it only showed for the account viewing the Posts and only to them, so great find, thanks for your patience!

@merefield thank you for the information. And already running here and it looks good on first sight. :slight_smile:

You’re welcome. :slight_smile: I am glad that I can also help by reporting stuff. Thank you again!

Next to this, and still not able to code myself, I have another idea/feature request. :grin:

The usermap plugin I was using for the old phpBB board where I was coming from to Discourse, had a nice feature: Every user was able to see the distance to other users - if both users entered their location. That would be a great addition. And maybe also showing the distance to locations in topic posts.

1 Like

Nice.

I’m afraid we are very busy atm, but PR or funding welcome!

There is a heap of ways this could be useful; for my lot, having a list of all those within X distance from a certain point or all those in a certain region would be really helpful for promoting local events.

There seems to be a bug that was introduced recently. When I have this plugin enabled and go to a user’s profile, it’s blank. Disable the plugin, and it comes back.

I think that was fixed recently:

There is still a bit of a glitch with duplication of the Website field though:

Thanks Nathan, unfortunately, I’m on latest, and this is still happening, is it not for anyone else? Could be a conflict with another plugin.

Hmmm … cannot reproduce either of these issues so far.

I noticed something, maybe it is also PEBCAK (as I did not find an option to disable this :wink: ).

If you take a look here you can see some topics with locations, here an example:

image

The mouse is where the title ends and the location begins. Does not look great.

Here’s an example when also an event is involved (I already put an 0.25em margin between the event box and the location text):

image

Is it possible to disable the location text in the topic list?

Nevertheless the layout should look a bit different. Some kind of separation, maybe a bit smaller text or even showing the location text in the next line under the topic title with a bit smaller text (maybe like the tags).

1 Like

Cannot reproduce both issues here, too.

I’m seeing the same thing here. The location is weirdly attached after topics names. Example:

There is also no specific class attributed to this text, so I don’t think we can hide it easily.

3 Likes

Yes. A CSS class would help a lot. Plus maybe bringing it into the next line, too.

1 Like

Ooh yeah agree, that’s pretty nasty … will take a look at that as soon as I have time.

4 Likes

Just adding my name to the list, thanks Robert @merefield :smiley:

1 Like

This is merged

  • IMPROVE adds spans to location text on Topic List and Topic
  • IMPROVE adds corresponding tests
  • FIX formatting of post user location meta on mobile PMs

@Richie @Roi @vincefrommtl

I’ve taken a stab at a basic 10px gap on the TL, but it’s got a span around it now on both the Topic List and the Topic title so feel free to customize to your own taste.

3 Likes

This worked perfectly, thank you very much for your hard work on this great plugin.

2 Likes