User Location plugin
Inspired by X About this Account, this plugin shows the country of registration and the country of login on user card and user profile.
| Summary | shows the country of registration and the country of login on user card and user profile | |
| Repository Link | https://github.com/communiteq/discourse-user-location | |
| Install Guide | How to install plugins in Discourse | |
| Sponsored by | This plugin was kindly sponsored by @WorldIsMine |
Features
- Automatic Detection: Uses Discourse’s built-in IP lookup (MaxMind) to determine countries.
- Dual Display: Shows both “Registered In” (based on registration IP) and “Located In” (based on most recent IP).
- Smart Caching: Caches location data in a custom field to prevent constant IP lookups and latency. It only updates when the user’s IP address changes.
- Privacy Controls: Allows admins to exempt specific user groups (e.g., Admins, Moderators) from having their location displayed.
Screenshots
User Card
User Profile
Settings
| Name | Description |
|---|---|
| user_location_enabled | Enable or disable the plugin globally. |
| user_location_exempt_groups | A list of groups whose members will not have their location displayed. |


