netresearch / contexts_geolocation
Multi-channel contexts: Geolocation - Use the user's geographic location as context
Installs: 15 431
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 15
Forks: 7
Open Issues: 0
Type:typo3-cms-extension
Requires
- netresearch/contexts: ^1.0
Requires (Dev)
- mikey179/vfsstream: ^1.4
- namelesscoder/typo3-repository-client: ^1.2
- phpunit/phpunit: ^4.7 || ^5.0
Replaces
- typo3-ter/contexts_geolocation: v1.0.3
This package is auto-updated.
Last update: 2024-10-09 12:32:52 UTC
README
Allows you to show pages and content elements for people in certain countries, continents or within a given area.
It uses the Maxmind GeoIP database to determine the user's probable physical location. Note that this is working most of the time, but also fails regularly.
Country and Continent rules are pretty safe to use, while small distances are not accurate at all.
Setup
Install the PHP extension
geoip
(requires root access to the server)If that is not possible, install the
Net_GeoIP
package from PEARInstall and activate this TYPO3 extension
contexts_geolocation
Dependencies
contexts
TYPO3 extensionstatic_info_tables
TYPO3 extensiongeoip
PHP extension, see its homepage- or Net_GeoIP from PEAR instead of
geoip
Context types
The contexts_geolocation
extension ships with three different
context types:
Continent
Matches when the user is on one of the selected continents.
Continent - unknown -
can be used to match all users whose position
could not be determined.
Country
Matches when the user accessing the page is in one of the selected countries.
Country - unknown -
can be used to match all users whose position
could not be determined.
Distance
Select a location on a map and a distance, and the context matches when the user's location is within this area.
Note that the free geoip database does seldom give you exact locations, so this is more a fun experiment rather that it should be used in production.
Plugins
Contexts geolocation: show current position
Shows a map with a marker at the detected position of the user's IP.
Also shows a dump of other data for this IP, like continent, country and city.
Useful for testing and debugging.
Allows manual IP address input.