• warforever.com is open to the public, non-registered users can post and download resources for free. Have a nice stay!

AndyB Country registration check

XF 2.1 / 2.2 AndyB Country registration check 1.9

valaiVerified member

Administrator

Staff member
Vip Member
Reputation: 100%
Messages
1,019
Reaction score
71
Info : Requires XF v2.1 or newer

Description :
Bloque l'enregistrement des pays spécifiés.
Blocks registration to specified countries.

(Example of options page) :

AndyB Country registration check 19-1.webp


(Example of error message) :

AndyB Country registration check 19-2.webp


Example of Country registration check page) :

AndyB Country registration check 19-3.webp


Features :
  • Uses ipstack.com for accurate country locations.
  • Uses internal table for recent IP locations.
  • All phrases start with countryregistrationcheck_ for your convenience.
Installation :
  1. Download Andy-CountryRegistrationCheck-1.0.zip and unzip it.
  2. Copy the src/addons/Andy/CountryRegistrationCheck directory to your server.
  3. From the Admin Control Panel Install the add-on.
Setup :
  1. Navigate to Sign Up - ipstack and sign up for their free plan.
  2. Enter access key into options page.
  3. Enter country codes into options page.
View countries registration check page:

You view a list of blocked countries, add 'countryregistrationcheck' to your forum URL. Must be an admin to view this page.

Database changes : A table called andy_country_registration_check is created in your database.

Country registration check v1.2 changes : Added 'Allowed country codes' to options page.

Country registration check v1.3 changes : Now compatible with PHP 7.4.

Country registration check v1.4 changes : Now compatible with PHP 7.4.

Country registration check v1.5 changes : Fixed issue where ipstack.com is over limit and variable was returned as null.

Country registration check v1.6 changes : Added additional code to prevent null condition server error logs.

Country registration check v1.7 changes : Added error handling code if ipstack.com returns invalid json.

Country registration check v1.8 changes : Now using ipapi.co for country lookup.

Country registration check v1.9 changes : The table andy_county_registration_check table is now being pruned by cron entry. The Country registration check page will now show every occurrence of rejected countries.
 
XF 2.0 / 2.1 / 2.2  AndyB Affiliate parser  1.7
XF 2.0 / 2.1 / 2.2  AndyB Index now  1.3

Attachments

Last edited:
Relate Threads
AndyB Delete users banned
AndyB Delete users banned bởi valai,
AndyB Delete user follows all
AndyB Delete user follows all bởi valai,
AndyB Editor buttons lite
AndyB Editor buttons lite bởi valai,
AndyB Thread info
AndyB Thread info bởi valai,
AndyB Approve all posts
AndyB Approve all posts bởi valai,
AndyB Post new thread manager
AndyB Post new thread manager bởi valai,
Back
Top