Giter Site home page Giter Site logo

nothingag / contao-geodomains Goto Github PK

View Code? Open in Web Editor NEW
1.0 15.0 2.0 23 KB

Contao extension that redirects a visitor according to its IP address to a specific root page. All settings are done in the page settings. The extension provides a frontend module to manually switch between the root pages/ regions.

PHP 100.00%
unmaintained

contao-geodomains's Introduction

[UNMAINTAINED]

This project is not maintained anymore.

CONTAO EXTENSION: GEODOMAINS

(Previously GEOIP)

Redirects a visitor according to its IP address to a specific root page. All settings are done in the page settings. The extension provides a frontend module to manually switch between the root-pages/ regions.

SETUP AND USAGE

Prerequisites

  • Contao 3.2.x

Installation

  1. Install the GeoLite database from MaxMind in the same database as your Contao installation. The required DB scheme can be found in the file config/database.sql (see table tl_geoipcountrywhois)
  2. Copy the files into the modules folder from Contao
  3. Update the database (e.g. with the Extension manager)
  4. Configure which root page is responsible for which country in the root page settings
  5. Insert the frontend module CountryList to manually switch between the regions
  6. Enjoy!

GeoIp & Proxy

Note that if x forwarded for is set the redirect might fail to work. If this is the case (mobile on 3g). To get around that make sure an initconfig.php file is added to system/config and it contains the following lines:

unset($_SERVER['HTTP_X_FORWARDED_FOR']);
unset($_SERVER['HTTP_X_FORWARDED_HOST']);

VERSION HISTORY

2.2.0 (2014-09-24)

  • Switch to uuid for images
  • Added skip functionality for specific visible page tress to not appear in the gd list (available in site structure)

2.1.0 (2013-08-13)

  • Added skip functionality for hidden page tree entries (set visibility in the backend)

2.0.0 (2013-06-05)

  • Initial Contao 3 version

1.0.0 (2012-07-12)

  • Initial release

KNOWN ISSUES

  • We had to add the "gd_fallback" flag manually to certain page roots, otherwise it wouldn't use the geo redirection if the browser had something else than English as preferred language.
  • Unable to fully transfer database.sql to dca files

LICENSE

contao-geodomains's People

Contributors

captspot avatar red-nothing avatar cyclodex avatar

Stargazers

Andraz avatar

Watchers

Weyert de Boer avatar René Stalder avatar ciathyza avatar Philippe Lang avatar  avatar James Cloos avatar Andreas Schempp avatar Yannis Güdel avatar Xarinor avatar  avatar Josua Muheim avatar Bengiamin Barblan avatar Xaver Fleer avatar Sandro Schweizer avatar Joanna Salathé avatar

Forkers

kikmedia katgirl

contao-geodomains's Issues

Kompitabilität mit Contao 3.3.0

Hallo,

ich bin zur Zeit auf der Suche nach einer Contao Erweiterung die es ermöglicht je nach Herkunftsland des Besuchers meiner Website etwas zugänglich zu machen beziehungsweise auszublenden. Geo_ip würde dafür meiner Meinung nach ausreichen wenn denn eine Kompitabilität zu Contao 3.3.0 gegeben ist. Hat man damit bereits Erfahrungen oder ist die Einbindung eines php Ip2Country Skripts in Contao voraussichtlich einfacher umzusetzen ?

MfG
conBlow

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.