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

Overview

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. Rename the library to sweetalert.
  3. To add new website url: Navigate to admin/config/ip-locator/create
  4. Splash message settings: Navigate to admin/config/ip-locator/splash-message-settings
  5. To update added urls or list out: Navigate to admin/config/ip-locator/ip-locator-configuration
  6. Download and extract the sweetalert library to sites/all/libraries/sweetalert directory.
  7. 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

Drupal project link: IP Locator with Splash

Git URL: http://git.drupal.org/sandbox/lhuria94/2560365.git

Git clone command (Setting up repository for the first time):

git clone --branch 7.x-1.x lhuria94@git.drupal.org:sandbox/lhuria94/2560365.git 
ip_locator_with_splash
cd ip_locator_with_splash

Manual reviews of other projects

https://www.drupal.org/node/2576111#comment-10417515
https://www.drupal.org/node/2643522#comment-10725862
https://www.drupal.org/node/2640372#comment-10726326

Thank you so much.

CommentFileSizeAuthor
#2 Message.png22.95 KBlhuria94
#2 Splash message configuration.png25.2 KBlhuria94
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

lhuria94 created an issue. See original summary.

lhuria94’s picture

lhuria94’s picture

Issue summary: View changes
lhuria94’s picture

Issue summary: View changes

Hello guys, Need your review on this.

Thanks

lhuria94’s picture

Issue summary: View changes
Shamsher_Alam’s picture

Status: Needs review » Needs work

Hi Love,

Please resolve preview issues validation.
http://pareview.sh/pareview/httpgitdrupalorgsandboxlhuria942560365git

FILE: ...var/www/drupal-7-pareview/pareview_temp/ip_locator_with_splash.module
---------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
---------------------------------------------------------------------------
424 | WARNING | Do not use drupal_add_js() in hook_page_build(), use
| | #attached on the $page render array instead
---------------------------------------------------------------------------

Resolve Preview.sh issues.

lhuria94’s picture

Hi Shamsher,

Thanks for reviewing.

All pareview.sh errors have been fixed.
Please check.
http://pareview.sh/pareview/httpgitdrupalorgsandboxlhuria942560365git

Let me know your further suggestions.
Thanks

lhuria94’s picture

Status: Needs work » Needs review
lhuria94’s picture

lhuria94’s picture

Issue summary: View changes
Shamsher_Alam’s picture

Status: Needs review » Reviewed & tested by the community

yes working fine.

lhuria94’s picture

Issue tags: +PAreview: review bonus
lhuria94’s picture

Issue tags: -PAreview: review bonus
lhuria94’s picture

Issue tags: +PAreview: review bonus
lhuria94’s picture

Issue summary: View changes
lhuria94’s picture

Status: Reviewed & tested by the community » Closed (fixed)