AndyB Country Flag

XF 2 Add-on AndyB Country Flag 1.5

Compatible With XenForo
2.0, 2.1
Visible Branding
No
Shows a country flag in the message user info block.

(Example of the country flag)

pic001.jpg


(Example of Privacy page)

pic002.jpg


(Example of Options page)

pic003.jpg


(Example of User group permissions)

pic004.jpg


Features:
  • Privacy option allows members to not show their country flag.
  • All phrases start with countryflag_ for your convenience.
Setup step 1:

Create a /misc/ directory in your webroot.

Setup step 2:

Copy the flags directory from the add-on folder to the /misc/ directory.

Example: https://domain.com/misc/flags

Setup step 3:

Get your Ipstack API key using this link:

https://ipstack.com/

Setup step 4:

Update the Options page with your Ipstack key.

Setup step 5:

Give the User group permissions to view the country flag:

Registered = Yes
Unregistered / Unconfirmed = Yes

Setup step 6:

Run the Cron entry for the Country flag manually, this is only required upon initial setup. The Cron entry will run once a day at 12:00 AM UTC.

Database modifications:

This add-on will create two columns in your xf_user table:

andy_country_flag_name
andy_country_flag_display
  • Like
Reactions: dsds and blackchild
Author
XenFun
Downloads
1
Views
63
First release
Last update
Rating
0.00 star(s) 0 ratings

More resources from XenFun

Top