• Welcome to XF2 Addons

    You can purchase a Premium membership for only $35 per year, and this gives you access to download any or ALL of the over 400 add-ons developed for Xenforo 2.x. In addition, Premium members will get technical support. Once the Premium membership has expired you can continue to use the installed addons on your forum as long as you like.

Installing the GeoIp2 library


Staff member
The Members map v2.1 add-on has an option to use the GeoIp2 library which is installed on your server. This GeoIp2 library allows reading the GeoLite2 database. Once installed you will be able to add an unlimited number of markers to your Members map add-on for free.

These instructions have been tested on a web host which has cPanel.

Follow these steps:
  1. Create a directory called misc in your public_html directory.
  2. Log into your server using SSH. Important, do not log into SSH as root, log in as cPanel user.
  3. Navigate to the misc directory.
  4. Enter the following command composer require geoip2/geoip2:~2.
  5. Composer will install the GeoIp2 library.
A new directory called vendor contains the files needed to use GeoIp2 library.

Example of the vendor directory.


In order to use the GeoIp2 library, you will need to download the GeoLite2-City.mmdb database. First step is to register at the maxmind.com site:


Then go to the downloads page here:


Download the GZIP file.


Unpack the GZIP file and upload the GeoLite2-City.mmdb file to your /misc directory on your server. Last step is to update the Members map v2.1 Options page with the paths to the GeoIp2 autoloader.php and the path to the GeoLite2-City.mmdb file.


Staff member
Once in a while you will want to update the GeoLite2-City.mmdb file so you have the latest IPs. Go to the downloads page and get the latest GZIP file as described above.