Country flag

VAULT+ NULLED XF2 ADD-ON Country flag v1.3

Upgrade or register to download
Potentially Outdated? (3+ Months)
Potentially Outdated: This resource hasn't been updated in over 3 months. Since base platforms and games update frequently, older files may experience compatibility issues. Please verify the supported versions and check the discussion tab or official sources first. If the resource no longer works, consider requesting an update from the author.
Compatible XF Versions 2.x2.1
Description:

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.
Installation:
  1. Download Andy-CountryFlag-1.1.zip and unzip it.
  2. Copy the src/addons/Andy/CountryFlag directory to your server.
  3. From the Admin Control Panel Install the add-on.
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.​
Author
Rykoo
First release
Last update

Ratings

0.00 star(s) 0 ratings
Back
Top