Andy - Country Flag

Xenforo 2.2.x add-on Free Andy - Country Flag 1.5

No permission to download Buy VIP
Shows a country flag in the message user info block.

(Example of 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 web root.

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 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 run once a day at 12:00AM UTC.

Database modifications:

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

andy_country_flag_name
andy_country_flag_display

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.

Q: What does the 'Last activity days' in the options page do?
A: This value is used when the Cron entry runs.

Q: When does the Cron entry run?
A: It runs once a day at 12:00AM UTC time.

Q: When the Cron entry runs, which members will have their country looked up?
A: Only new members which have an empty andy_country_flag_name field.

Q: Is there an option to make the add-on opt-in instead of opt-out?
A: No. Opt-in does not work, member will not take the time to opt-in.

Q: Is there a way I can update all the members country flags?
A: Yes. You can add the following to your forum URL:

countryflag/updateall

The next time the Cron entry runs it will update all your members country flags. Keep in mind inactive members will not be updated, this is a setting in the options page.
Author
WinSys32
Downloads
0
Views
126
Extention type
zip
File size
365.5 KB
Hash
d225f5dfad6b5609d4816265e25daa01
First release
Last update
Rating
0.00 star(s) 0 ratings

More resources from WinSys32

Latest updates

  1. Andy - Country Flag 1.5

    Country flag v1.5 changes: Now compatible with PHP 7.4.
Similar resources
Resource starter Title Category Downloads Last update
WinSys32 Xenforo 2.2.x Andy - Account Upgrade Receipt Xenforo 2.2.x Addons 0
WinSys32 Xenforo 2.1.x Andy - Ad Below Post Xenforo 2.2.x Addons 0
WinSys32 Xenforo 2.1.x Andy - Ad Below Post Xenforo 2.2.x Addons 0
WinSys32 Xenforo 2.2.x Andy - Ad Manager Xenforo 2.2.x Addons 0
WinSys32 Xenforo 2.2.x Andy - Admin Notes Xenforo 2.2.x Addons 0
WinSys32 Xenforo 2.2.x Andy - Admin Statistics Xenforo 2.2.x Addons 0
WinSys32 Xenforo 2.2.x Andy - Advanced Search Xenforo 2.2.x Addons 0
WinSys32 Xenforo 2.2.x Andy - Affiliate Manager Xenforo 2.2.x Addons 0
WinSys32 Xenforo 2.2.x Andy - Affiliate Parser Xenforo 2.2.x Addons 0
WinSys32 Xenforo 2.1.x Andy - Amazon Parser All Xenforo 2.2.x Addons 0
WinSys32 Xenforo 2.1.x Andy - Amazon Parser Xenforo 2.2.x Addons 0
WinSys32 Xenforo 2.1.x Andy - Amazon Parser Xenforo 2.2.x Addons 0
WinSys32 Xenforo 2.1.x Andy - Amazon Parser All Xenforo 2.2.x Addons 0
WinSys32 Xenforo 2.1.x Andy - Anchor Xenforo 2.2.x Addons 0
WinSys32 Xenforo 2.2.x Andy - Approval Que Lite Xenforo 2.2.x Addons 0
WinSys32 Xenforo 2.1.x Andy - Approval Queue Thread Manager Xenforo 2.2.x Addons 0
WinSys32 Xenforo 2.1.x Andy - Approval queue tools Xenforo 2.2.x Addons 0
WinSys32 Xenforo 2.1.x Andy - Approve All Thread Xenforo 2.2.x Addons 0
WinSys32 Xenforo 2.2.x Andy - Ask A Question Xenforo 2.2.x Addons 0
WinSys32 Xenforo 2.2.x Andy - Attach Count Check Xenforo 2.2.x Addons 0
WinSys32 Xenforo 2.2.x Andy - Attachment Check Xenforo 2.2.x Addons 0
WinSys32 Xenforo 2.2.x Andy - Attachment Manager Xenforo 2.2.x Addons 0
WinSys32 Xenforo 2.2.x Andy - Audio Xenforo 2.2.x Addons 0
WinSys32 Xenforo 2.2.x Andy - Auto Close Xenforo 2.2.x Addons 0
WinSys32 Xenforo 2.2.x Andy - Auto Close By Prefix Xenforo 2.2.x Addons 0
WinSys32 Xenforo 2.2.x Andy - Auto Close Plus Xenforo 2.2.x Addons 0
WinSys32 Xenforo 2.2.x Andy - Auto Delete Xenforo 2.2.x Addons 0
WinSys32 Xenforo 2.2.x Andy - Auto Delete By Prefix Xenforo 2.2.x Addons 0
WinSys32 Xenforo 2.2.x Andy - Auto Delete Email Confirm Xenforo 2.2.x Addons 0
WinSys32 Xenforo 2.2.x Andy - Auto Delete Rejected Xenforo 2.2.x Addons 0
WinSys32 Xenforo 2.2.x Andy - Auto Forum Watch Xenforo 2.2.x Addons 0
WinSys32 Xenforo 2.2.x Andy - Auto Move Xenforo 2.2.x Addons 0
WinSys32 Xenforo 2.2.x Andy - Auto Move By Likes Xenforo 2.2.x Addons 0
WinSys32 Xenforo 2.2.x Andy - Auto Move By Prefix Xenforo 2.2.x Addons 1
WinSys32 Xenforo 2.2.x Andy - Auto Move By Reactions Xenforo 2.2.x Addons 0
WinSys32 Xenforo 2.2.x Andy - Auto Move Plus Xenforo 2.2.x Addons 0
WinSys32 Xenforo 2.2.x Andy - Auto Prefix By Last Post Xenforo 2.2.x Addons 0
WinSys32 Xenforo 2.2.x Andy - Auto Resolve Reports Xenforo 2.2.x Addons 0
WinSys32 Xenforo 2.2.x Andy - Ban Thread Xenforo 2.2.x Addons 0
WinSys32 Xenforo 2.2.x Andy - Birthday Email Xenforo 2.2.x Addons 0
WinSys32 Xenforo 2.2.x Andy - Birthday Thread Xenforo 2.2.x Addons 0
WinSys32 Xenforo 2.2.x Andy - Birthday Thread Xenforo 2.2.x Addons 1
WinSys32 Xenforo 2.1.x Andy - Block Posting Xenforo 2.2.x Addons 0
WinSys32 Xenforo 2.2.x Andy - Bookmark List Xenforo 2.2.x Addons 0
WinSys32 Xenforo 2.1.x Andy - Bump Limit Xenforo 2.2.x Addons 0
WinSys32 Xenforo 2.1.x Andy - Calendar Xenforo 2.2.x Addons 1
WinSys32 Xenforo 2.1.x Andy - Change Author Xenforo 2.2.x Addons 0
WinSys32 Xenforo 2.1.x Andy - Change Date Xenforo 2.2.x Addons 0
WinSys32 Xenforo 2.1.x Andy - Chat Xenforo 2.2.x Addons 0
WinSys32 Xenforo 2.2.x Andy - Conversation Search Xenforo 2.2.x Addons 0
Similar resources
Xenforo 2.2.x Andy - Account Upgrade Receipt
Xenforo 2.1.x Andy - Ad Below Post
Xenforo 2.1.x Andy - Ad Below Post
Xenforo 2.2.x Andy - Ad Manager
Xenforo 2.2.x Andy - Admin Notes
Xenforo 2.2.x Andy - Admin Statistics
Xenforo 2.2.x Andy - Advanced Search
Xenforo 2.2.x Andy - Affiliate Manager
Xenforo 2.2.x Andy - Affiliate Parser
Xenforo 2.1.x Andy - Amazon Parser All
Xenforo 2.1.x Andy - Amazon Parser
Xenforo 2.1.x Andy - Amazon Parser
Xenforo 2.1.x Andy - Amazon Parser All
Xenforo 2.1.x Andy - Anchor
Xenforo 2.2.x Andy - Approval Que Lite
Xenforo 2.1.x Andy - Approval Queue Thread Manager
Xenforo 2.1.x Andy - Approval queue tools
Xenforo 2.1.x Andy - Approve All Thread
Xenforo 2.2.x Andy - Ask A Question
Xenforo 2.2.x Andy - Attach Count Check
Xenforo 2.2.x Andy - Attachment Check
Xenforo 2.2.x Andy - Attachment Manager
Xenforo 2.2.x Andy - Audio
Xenforo 2.2.x Andy - Auto Close
Xenforo 2.2.x Andy - Auto Close By Prefix
Xenforo 2.2.x Andy - Auto Close Plus
Xenforo 2.2.x Andy - Auto Delete
Xenforo 2.2.x Andy - Auto Delete By Prefix
Xenforo 2.2.x Andy - Auto Delete Email Confirm
Xenforo 2.2.x Andy - Auto Delete Rejected
Xenforo 2.2.x Andy - Auto Forum Watch
Xenforo 2.2.x Andy - Auto Move
Xenforo 2.2.x Andy - Auto Move By Likes
Xenforo 2.2.x Andy - Auto Move By Prefix
Xenforo 2.2.x Andy - Auto Move By Reactions
Xenforo 2.2.x Andy - Auto Move Plus
Xenforo 2.2.x Andy - Auto Prefix By Last Post
Xenforo 2.2.x Andy - Auto Resolve Reports
Xenforo 2.2.x Andy - Ban Thread
Xenforo 2.2.x Andy - Birthday Email
Xenforo 2.2.x Andy - Birthday Thread
Xenforo 2.2.x Andy - Birthday Thread
Xenforo 2.1.x Andy - Block Posting
Xenforo 2.2.x Andy - Bookmark List
Xenforo 2.1.x Andy - Bump Limit
Xenforo 2.1.x Andy - Calendar
Xenforo 2.1.x Andy - Change Author
Xenforo 2.1.x Andy - Change Date
Xenforo 2.1.x Andy - Chat
Xenforo 2.2.x Andy - Conversation Search