• 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,039
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 Remove preview
AndyB Remove preview bởi valai,
AndyB Post info
AndyB Post info bởi valai,
AndyB Secondary group check
AndyB Secondary group check bởi valai,
AndyB Location flag
AndyB Location flag bởi valai,
AndyB Email reminder
AndyB Email reminder bởi valai,
AndyB Custom title manager
AndyB Custom title manager bởi valai,
Back
Top