[OzzModz] Country Flags by IP Address

[OzzModz] Country Flags by IP Address 2.2.0 Patch Level 4

No permission to download
2.2.0 Patch Level 4.:
- Fixied XF 2.2.13 template modification compatibility
2.2.0 Patch Level 1:
- Fix: incorrect cron job class name
- Now requires XF 2.2+
- PHP 8 compatibility
- Removed useless Cloudflare Middleware
- Refactor Maxmind API integration
- Fix: check "last-modified" header for GeoIP Database file before updating
- GeoIP Database file moved to "internal-data" and mounted to own filesystem for compatibility with XF setups with external storage
Fixed: post_macros template modification to hopefully be more compatible with all styles.
Changed: Addon name to [OzzModz] Country Flags by IP Address
Added: Support link for addon in the addon list in the ACP.
Reverted the changes that were made in 2.1.2. The changes were not designed to do what I thought they did.

Fixed a display issue on smaller devices if you had the position of the flags to be shown below the username.
Fixed the flags showing in forums that were selected to not show in.
Changed most of the template modifications from Simple replacement to Regular expression to hopefully avoid conflicts with third party styles.
Add - Download of database when MaxMind license key is entered or changed in add-on options
Change - Database update cron task will not run without MaxMind license key
Change - Flag detection will not run if MaxMind database hasn't been downloaded
Remove - Download of database from setup routine

NOTE: All users of this add-on must obtain their own license key from MaxMind and enter it in the add-on options. Sign up for free,

To obtain a license key, see this:
  • Change - Return any errors generated prior to MaxMind database download during setup