What's new

Welcome to NullScriptz - NulledScriptz

Join us now to get access to all our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, and so, so much more. It's also quick and totally free, so what are you waiting for?

Ask question

Ask Questions and Get Answers from Our Community

Answer

Answer Questions and Become an Expert on Your Topic

Requests

Can't find what you are looking for, request it in our request section our staff and members will do their best to help you!

  • Due to new payment rules, all accounts must have a 2-step verification.
Andy - Country Flag

Xenforo 2.1.x Andy - Country Flag 1.5

No permission to download
Your advertisement here?
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
90
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.1.x Andy - Account Upgrade Receipt Xenforo 2.1.x Addons 0
WinSys32 Xenforo 2.1.x Andy - Ad Below Post Xenforo 2.1.x Addons 0
WinSys32 Xenforo 2.1.x Andy - Ad Manager Xenforo 2.1.x Addons 0
WinSys32 Xenforo 2.1.x Andy - Admin Notes Xenforo 2.1.x Addons 0
WinSys32 Xenforo 2.1.x Andy - Admin Statistics Xenforo 2.1.x Addons 0
WinSys32 Xenforo 2.1.x Andy - Advanced Search Xenforo 2.1.x Addons 0
WinSys32 Xenforo 2.1.x Andy - Affiliate Manager Xenforo 2.1.x Addons 0
WinSys32 Xenforo 2.1.x Andy - Affiliate Parser Xenforo 2.1.x Addons 0
WinSys32 Xenforo 2.1.x Andy - Amazon Parser Xenforo 2.1.x Addons 0
WinSys32 Xenforo 2.1.x Andy - Amazon Parser All Xenforo 2.1.x Addons 0
WinSys32 Xenforo 2.1.x Andy - Anchor Xenforo 2.1.x Addons 0
WinSys32 Xenforo 2.1.x Andy - Approval Que Lite Xenforo 2.1.x Addons 0
WinSys32 Xenforo 2.1.x Andy - Ask A Question Xenforo 2.1.x Addons 0
WinSys32 Xenforo 2.1.x Andy - Attach Count Check Xenforo 2.1.x Addons 0
WinSys32 Xenforo 2.1.x Andy - Attachment Check Xenforo 2.1.x Addons 0
WinSys32 Xenforo 2.1.x Andy - Attachment Manager Xenforo 2.1.x Addons 0
WinSys32 Xenforo 2.1.x Andy - Audio Xenforo 2.1.x Addons 0
WinSys32 Xenforo 2.1.x Andy - Auto Close Xenforo 2.1.x Addons 0
WinSys32 Xenforo 2.1.x Andy - Auto Close By Prefix Xenforo 2.1.x Addons 0
WinSys32 Xenforo 2.1.x Andy - Auto Close Plus Xenforo 2.1.x Addons 0
WinSys32 Xenforo 2.1.x Andy - Auto Delete Xenforo 2.1.x Addons 0
WinSys32 Xenforo 2.1.x Andy - Auto Delete By Prefix Xenforo 2.1.x Addons 0
WinSys32 Xenforo 2.1.x Andy - Auto Delete Email Confirm Xenforo 2.1.x Addons 0
WinSys32 Xenforo 2.1.x Andy - Auto Delete Rejected Xenforo 2.1.x Addons 0
WinSys32 Xenforo 2.1.x Andy - Auto Forum Watch Xenforo 2.1.x Addons 0
WinSys32 Xenforo 2.1.x Andy - Auto Move Xenforo 2.1.x Addons 0
WinSys32 Xenforo 2.1.x Andy - Auto Move By Likes Xenforo 2.1.x Addons 0
WinSys32 Xenforo 2.1.x Andy - Auto Move By Prefix Xenforo 2.1.x Addons 0
WinSys32 Xenforo 2.1.x Andy - Auto Move By Reactions Xenforo 2.1.x Addons 0
WinSys32 Xenforo 2.1.x Andy - Auto Move Plus Xenforo 2.1.x Addons 0
WinSys32 Xenforo 2.1.x Andy - Auto Prefix By Last Post Xenforo 2.1.x Addons 0
WinSys32 Xenforo 2.1.x Andy - Auto Resolve Reports Xenforo 2.1.x Addons 0
WinSys32 Xenforo 2.1.x Andy - Ban Thread Xenforo 2.1.x Addons 0
WinSys32 Xenforo 2.1.x Andy - Birthday Email Xenforo 2.1.x Addons 0
WinSys32 Xenforo 2.1.x Andy - Birthday Thread Xenforo 2.1.x Addons 0
WinSys32 Xenforo 2.1.x Andy - Birthday Thread Xenforo 2.1.x Addons 1
WinSys32 Xenforo 2.1.x Andy - Bookmark List Xenforo 2.1.x Addons 0
WinSys32 Xenforo 2.1.x Andy - Bump Limit Xenforo 2.1.x Addons 0
WinSys32 Xenforo 2.1.x Andy - Change Author Xenforo 2.1.x Addons 0
WinSys32 Xenforo 2.1.x Andy - Conversation Search Xenforo 2.1.x Addons 0
WinSys32 Xenforo 2.1.x Andy - Conversation Search Plus Xenforo 2.1.x Addons 0
WinSys32 Xenforo 2.1.x Andy - Convert Image Xenforo 2.1.x Addons 0
WinSys32 Xenforo 2.1.x Andy - Convert Image All Xenforo 2.1.x Addons 0
WinSys32 Xenforo 2.1.x Andy - Convert Image By Domain Xenforo 2.1.x Addons 0
WinSys32 Xenforo 2.1.x Andy - Convert Image Media Gallery Xenforo 2.1.x Addons 0
WinSys32 Xenforo 2.1.x Andy - Convert To JPG Xenforo 2.1.x Addons 0
WinSys32 Xenforo 2.1.x Andy - Countdown Xenforo 2.1.x Addons 0
WinSys32 Xenforo 2.1.x Andy - Cover Photo Xenforo 2.1.x Addons 0
WinSys32 Xenforo 2.1.x Andy - Daily Digest Xenforo 2.1.x Addons 0
WinSys32 Xenforo 2.1.x Andy - Data Check Xenforo 2.1.x Addons 0
Similar resources
Xenforo 2.1.x Andy - Account Upgrade Receipt
Xenforo 2.1.x Andy - Ad Below Post
Xenforo 2.1.x Andy - Ad Manager
Xenforo 2.1.x Andy - Admin Notes
Xenforo 2.1.x Andy - Admin Statistics
Xenforo 2.1.x Andy - Advanced Search
Xenforo 2.1.x Andy - Affiliate Manager
Xenforo 2.1.x Andy - Affiliate Parser
Xenforo 2.1.x Andy - Amazon Parser
Xenforo 2.1.x Andy - Amazon Parser All
Xenforo 2.1.x Andy - Anchor
Xenforo 2.1.x Andy - Approval Que Lite
Xenforo 2.1.x Andy - Ask A Question
Xenforo 2.1.x Andy - Attach Count Check
Xenforo 2.1.x Andy - Attachment Check
Xenforo 2.1.x Andy - Attachment Manager
Xenforo 2.1.x Andy - Audio
Xenforo 2.1.x Andy - Auto Close
Xenforo 2.1.x Andy - Auto Close By Prefix
Xenforo 2.1.x Andy - Auto Close Plus
Xenforo 2.1.x Andy - Auto Delete
Xenforo 2.1.x Andy - Auto Delete By Prefix
Xenforo 2.1.x Andy - Auto Delete Email Confirm
Xenforo 2.1.x Andy - Auto Delete Rejected
Xenforo 2.1.x Andy - Auto Forum Watch
Xenforo 2.1.x Andy - Auto Move
Xenforo 2.1.x Andy - Auto Move By Likes
Xenforo 2.1.x Andy - Auto Move By Prefix
Xenforo 2.1.x Andy - Auto Move By Reactions
Xenforo 2.1.x Andy - Auto Move Plus
Xenforo 2.1.x Andy - Auto Prefix By Last Post
Xenforo 2.1.x Andy - Auto Resolve Reports
Xenforo 2.1.x Andy - Ban Thread
Xenforo 2.1.x Andy - Birthday Email
Xenforo 2.1.x Andy - Birthday Thread
Xenforo 2.1.x Andy - Birthday Thread
Xenforo 2.1.x Andy - Bookmark List
Xenforo 2.1.x Andy - Bump Limit
Xenforo 2.1.x Andy - Change Author
Xenforo 2.1.x Andy - Conversation Search
Xenforo 2.1.x Andy - Conversation Search Plus
Xenforo 2.1.x Andy - Convert Image
Xenforo 2.1.x Andy - Convert Image All
Xenforo 2.1.x Andy - Convert Image By Domain
Xenforo 2.1.x Andy - Convert Image Media Gallery
Xenforo 2.1.x Andy - Convert To JPG
Xenforo 2.1.x Andy - Countdown
Xenforo 2.1.x Andy - Cover Photo
Xenforo 2.1.x Andy - Daily Digest
Xenforo 2.1.x Andy - Data Check
shape1
shape2
shape3
shape4
shape7
shape8
Top