Description :
Shows a country flag in the message user info block.
(Example of country flag) :
(Example of Country flag link) :
(Example of country flag page) :
(Example of Privacy page ) :
(Example of Options page) :
(Example of User group permissions) :
Features :
Copy the flags directory from the add-on folder to the /misc/ directory.
Setup step 2 :
Get your Ipstack API key using this link:
ipstack - Free IP Geolocation API
Setup step 3 :
Update the Options page with your Ipstack key.
Setup step 4 :
Give User group permissions to view the country flag.
Setup step 5 :
Run the Cron entry for the Country flag manually, this is only required upon initial setup. The Cron entry will automatically run once a day.
Questions and Answers :
Q: When I hover the flag with my mouse, the filename is displayed in English, can I phrase this to show the filename in another language?
A: No.
Country flag v1.1 changes : "Added 'View your country flag' to privacy page".
Country flag v1.2 changes : Country flag now displays as 16x16 pixels. Also added support for retina displays.
Country flag v1.3 changes pour XF 2.1 :
Hover over flag with cursor and now it will show just the country name.
Anyone running a previous version should run the updateall function which will delete current country information for all users, then run the Country flag cron entry.
To run the updateall function add this to your forum URL:
Country flag v1.4 changes : Made adjustment to margins surrounding the display of the flag.
Country flag v1.5 changes : Now compatible with PHP 7.4.
Country flag v1.6 changes : Removed unused variable in PHP code.
Country flag v1.7 changes : Now compatible with XF 2.2.6 and newer.
Country flag v1.8 changes : Now using ipapi.co for country lookup.
Country flag v1.9 changes : Removed unused Image path in options page.
Country flag v2.0 changes : Added URL option to allow members to change their country flag. See Questions and answers in overview for more information.
Shows a country flag in the message user info block.
(Example of country flag) :
(Example of Country flag link) :
(Example of country flag page) :
(Example of Privacy page ) :
(Example of Options page) :
(Example of User group permissions) :
Features :
- Members can opt-out of showing their country flag.
- All phrases start with countryflag_ for your convenience.
- Download Andy-CountryFlag-1.0.zip and unzip it.
- Copy the src/addons/Andy/CountryFlag directory to your server.
- From the Admin Control Panel Install the add-on.
Copy the flags directory from the add-on folder to the /misc/ directory.
Setup step 2 :
Get your Ipstack API key using this link:
ipstack - Free IP Geolocation API
Setup step 3 :
Update the Options page with your Ipstack key.
Setup step 4 :
Give User group permissions to view the country flag.
Setup step 5 :
Run the Cron entry for the Country flag manually, this is only required upon initial setup. The Cron entry will automatically run once a day.
Questions and Answers :
Q: When I hover the flag with my mouse, the filename is displayed in English, can I phrase this to show the filename in another language?
A: No.
Country flag v1.1 changes : "Added 'View your country flag' to privacy page".
Country flag v1.2 changes : Country flag now displays as 16x16 pixels. Also added support for retina displays.
Country flag v1.3 changes pour XF 2.1 :
Hover over flag with cursor and now it will show just the country name.
Anyone running a previous version should run the updateall function which will delete current country information for all users, then run the Country flag cron entry.
To run the updateall function add this to your forum URL:
Code:
You must log in to view
(1 lines)
Country flag v1.4 changes : Made adjustment to margins surrounding the display of the flag.
Country flag v1.5 changes : Now compatible with PHP 7.4.
Country flag v1.6 changes : Removed unused variable in PHP code.
Country flag v1.7 changes : Now compatible with XF 2.2.6 and newer.
Country flag v1.8 changes : Now using ipapi.co for country lookup.
Country flag v1.9 changes : Removed unused Image path in options page.
Country flag v2.0 changes : Added URL option to allow members to change their country flag. See Questions and answers in overview for more information.
Attachments
-
Andy-CountryFlag-1.0.zip365.1 KB · Views: 0
-
Andy-CountryFlag-1.1.zip365 KB · Views: 0
-
Andy-CountryFlag-1.2.zip365 KB · Views: 0
-
Andy-CountryFlag-1.3.zip366.1 KB · Views: 0
-
Andy-CountryFlag-1.4.zip366 KB · Views: 0
-
Andy-CountryFlag-1.5.zip366.1 KB · Views: 0
-
Andy-CountryFlag-1.6.zip369 KB · Views: 0
-
Andy-CountryFlag-1.7.zip381.3 KB · Views: 0
-
Andy-CountryFlag-1.8.zip368.8 KB · Views: 0
-
Andy-CountryFlag-1.9.zip368.8 KB · Views: 0
-
Andy-CountryFlag-2.0.zip371 KB · Views: 0