Locations 插件 🌍

Hey @merefield thanks for this plugin! :pray:

Is it possible to use the User Location to automatically place them in groups. Ex. User is located in Germany and automatically added to the Germany-Group.

Thanks again!

1 个赞

Not currently automated. However, you might be able to come up with some inventive algorithm in the Rails console to achieve that on an ad hoc basis. For a start on that see Locations Plugin - #684 by merefield. You’d have to consider the fact that locations entry is also voluntary.

You might also consider the custom wizard plugin together with the national flags plugin to capture users’ countries. (This would help with the voluntary part)

1 个赞

Hi Robert,

Again me :confused: There is another issue with /u page user search. When typing a user name in this field. Nothing happening.
Screenshot 2021-07-02 at 22.56.48

No error in /logs.
In console :arrow_down:

Not sure but maybe cause it this commit.

Thank you! :slight_smile:

2 个赞

Thanks for the report.

Given this is a non-critical issue I will probably look at this later in the month.

Please take note of the supported period for upgrades. Appreciate this was reported within that period. We do our best to deal with critical breaking changes that come up during that time.

2 个赞

I’ve had a spare moment, so took a look. Hopefully it’s now fixed, thanks for your patience: COMPATIBILITY: a fix for users page to take account of recent core ch… · paviliondev/discourse-locations@e0f47d5 · GitHub

3 个赞

Thanks Robert! Works fantastic! :heart_eyes:

2 个赞

Continuing the issue raised by @James_Higginson here and in accepting this as the use case as indicated by @Robert in this post has anyone any suggestion as to how to avoid this scenario which seems only to encourage community members to question whether there is a fault in the underlying software?

As can be seen in the above graphic, this user has entered a location but it is not displayed in the user field and the only clue (may be not an obvious one to a casual or inexperienced observer) is the inclusion of the info icon and the words “Your location will be displayed publicly” underneath a blank field, suggesting an error or incomplete capture and that the info icon and text is not actually associated with the correct completion of the field.

These images are from the Adminstration settings pages for reference:



3 个赞

Hey Graham (btw, I’m not @ Robert), I had a look at this for you and I think the problem lies in the timeout setting. Experiment by raising it.

See further at: Empty results caused by timeouts! - Locations - Pavilion

cc: @James_Higginson

1 个赞

@merefield Oups! Apologies, my bad :slightly_smiling_face:

Thanks for the info which I’m sure @James_Higginson will now take up.
G

4 个赞

Thanks guys, will try this now!

3 个赞

Over a thousand of our members have added themselves to the map now and it’s still loading pretty quickly :+1:t2:

Screen Shot 2021-08-27 at 20.24.37

Thanks again for the continued maintenance of this plugin @angus @merefield :smiley:

6 个赞

Can confirm. :wink:

6 个赞

Pretty amazing community engagement guys too!

7 个赞

What would cause a user to be shown on his user card map:

but not on the full user map:

1 个赞

@Richie , how many users do you show on your map? Mine seems to be stuck at 1093.

Perhaps this is some kind of limit for the plugin?

image

2 个赞

Hi @omarfilip we are currently showing 1205 on our map:

2 个赞

It seems to have been a self-inflicted wound. I had location users map limit set to 1100. I’m not sure where the 7 (1100-1093) went though.

With the setting increased, the map is again working normally at 1297 mapped users:

1297 users on map

2 个赞

我想报告一个非常小的(而且很少见的)用户体验问题。

在我共同管理的论坛上,有一位用户的位置信息非常长。在法国的一些地区可能会出现这种情况。

为了保护用户信息,我编辑了位置信息以显示该问题

我已经在本地用一些 CSS 修复了这个问题,但以防万一其他人也感兴趣,这里是问题的根源

.location-selector-container .ac-wrap {
    box-sizing: border-box;
    height: 34px;
}

我已经做了这个修复,应该没问题了

.location-selector-container .ac-wrap {
    min-height: 34px;
    height: auto;
}
4 个赞

罗伯特,您好:

昨天我尝试将我们的网站更新到 Ember CLI,并注意到 Locations Plugin 出现了一个错误。如果我创建一个主题,它会在控制台中抛出此错误,并且该主题无法加载,只能显示标题部分。这只是一个检查一切是否正常运行的测试,因此在检查后,我现在已从 Ember CLI 回退。谢谢 :slightly_smiling_face:

2 个赞

啊,谢谢,这很容易解决。

抱歉,过去几天我一直忙于 TLP 和其他项目。我今天会尝试修复它,不过这可能不是唯一的问题!我还没有在 Ember-CLI 上检查过这个。

2 个赞