*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:
- Download and extract the sweetalert library to libraries folder.
- Rename the library to sweetalert.
- To add new website url: Navigate to admin/config/ip-locator/create
- Splash message settings: Navigate to admin/config/ip-locator/splash-message-settings
- To update added urls or list out: Navigate to admin/config/ip-locator/ip-locator-configuration
- Download and extract the sweetalert library to sites/all/libraries/sweetalert directory.
- 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.
Comment | File | Size | Author |
---|---|---|---|
#2 | Message.png | 22.95 KB | lhuria94 |
#2 | Splash message configuration.png | 25.2 KB | lhuria94 |
Comments
Comment #2
lhuria94 CreditAttribution: lhuria94 commentedComment #3
lhuria94 CreditAttribution: lhuria94 commentedComment #4
lhuria94 CreditAttribution: lhuria94 commentedHello guys, Need your review on this.
Thanks
Comment #5
lhuria94 CreditAttribution: lhuria94 commentedComment #6
Shamsher_Alam CreditAttribution: Shamsher_Alam commentedHi 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.
Comment #7
lhuria94 CreditAttribution: lhuria94 commentedHi 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
Comment #8
lhuria94 CreditAttribution: lhuria94 commentedComment #9
lhuria94 CreditAttribution: lhuria94 commentedComment #10
lhuria94 CreditAttribution: lhuria94 commentedComment #11
Shamsher_Alam CreditAttribution: Shamsher_Alam commentedyes working fine.
Comment #12
lhuria94 CreditAttribution: lhuria94 commentedComment #13
lhuria94 CreditAttribution: lhuria94 commentedComment #14
lhuria94 CreditAttribution: lhuria94 commentedComment #15
lhuria94 CreditAttribution: lhuria94 commentedComment #16
lhuria94 CreditAttribution: lhuria94 commented