• Resolved vision-hive

    (@vision-hive)


    Selected all continents except Europe for exclusion. Plugin continues to display the notice for all US test sites I’ve used. GeoIP accurately identifies the location (see below for test). The Exclude Zone feature is not working.

    GeoIP Detection
    Options
    Selected data source: GeoLite2 City database (updated monthly)
    Database file: wp-content/uploads/GeoLite2-City.mmdb
    Last updated: December 22, 2017 11:02 pm
    Database data from: December 6, 2017 7:52 pm
    Next update: January 3, 2018 12:00 am
    Test IP Detection Lookup
    IP: redacted
    Use these locales:
    Skip cache
    Lookup
    Lookup Result
    The function $record = geoip_detect2_get_info_from_ip(‘73.251.124.109’, NULL); returns an object:
    Lookup duration: 0.01899 s
    Key Value Shortcode equivalent
    $record->city->name Charlottesville [geoip_detect2 property=”city”]
    $record->mostSpecificSubdivision->isoCode VA [geoip_detect2 property=”mostSpecificSubdivision.isoCode”]
    $record->mostSpecificSubdivision->name Virginia [geoip_detect2 property=”mostSpecificSubdivision”]
    $record->country->isoCode US [geoip_detect2 property=”country.isoCode”]
    $record->country->name United States [geoip_detect2 property=”country”]
    $record->location->latitude 38.0888 [geoip_detect2 property=”location.latitude”]
    $record->location->longitude -78.5592 [geoip_detect2 property=”location.longitude”]
    $record->continent->code NA [geoip_detect2 property=”continent.code”]
    $record->location->timeZone America/New_York [geoip_detect2 property=”location.timeZone”]

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter vision-hive

    (@vision-hive)

    Some of your code is making me think you might think the word “exclude” means the opposite of what it actually means

    $exclude = $this->show_bar();

    This returns true for posts that are NOT excluded.

    • This reply was modified 7 years, 3 months ago by vision-hive.
    Thread Starter vision-hive

    (@vision-hive)

    Solution: In GeoIP Detect settings, you need to make sure “Add a country-specific CSS class to the <body>-Tag.” is checked.

    Thanks @vision-hive. This resolved a similar issue we were having with configuring Cookie Consent.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Exclude Zone feature is defective’ is closed to new replies.