IP Locator with Splash

Component ID

2560365

Component name

IP Locator with Splash

Component type

module

Maintenance status

Development status

Component security advisory coverage

covered

Downloads

248

Component created

Component changed

Component body

*Most Useful for Multi site purposes* (This module will not work on localhost unless you have setup Virtual IP Address on your local machine.)

This module is for displaying a splash page to users if they have a option available to visit their country's website in a very cool and configurable pop-up. It also supports different type of animations plus what text you would like to be seen by the website visitors.

It also has a configuration page to add new website urls and flush them in case url is added by mistake.

Usage example, If a United State's visitor visits a Germany website and if United State's website is available which user might not be having knowledge of, visitor will get a pop up that you can visit your country's website or else they can stay on the website itself.

Dependencies:

Libraries

Requirement:

Download the library from https://github.com/lhuria94/sweetalert/archive/master.zip

How to configure:

  1. Download and extract the sweetalert library to libraries folder.
  2. To add new website url: Navigate to admin/config/system/ip-locator-configuration/create
  3. Splash message settings: Navigate to admin/config/system/ip-locator-configuration/splash-message-settings
  4. To update added urls or list out: Navigate to admin/config/system/ip-locator-configuration
  5. That's it!


Highlights:

  • No session cookies etc. Uses webstorage mechanism, So it won't break your Varnish
  • Easily identifies the geographical location of the user.
  • Lightweight

Follows the 2 letter country codes, refer to http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2

Very simple and unique!!

D8 Porting in Progress: https://github.com/Ashwini7/location-agent-using-Splash