• Resolved hendratok

    (@hendratok)


    We found some ip detect as null, is this plugin have some shortcode to detect null result and put is as default? we try to geoip some content by country. I try

    [geoip_detect2_show_if country=”NULL”] Some Content [/geoip_detect2_show_if]

    or

    [geoip_detect2_show_if country=””] Some Content [/geoip_detect2_show_if]

    is not work. checked documentation too. but cant find anything about this. thank you

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Benjamin Pick

    (@benjaminpick)

    no it shouldn’t return NULL, can you tell me which source you are using and which IP?

    Plugin Author Benjamin Pick

    (@benjaminpick)

    It can return an empty record, though, where country returns “” – when the IP is unknown.

    Thread Starter hendratok

    (@hendratok)

    Hi, some ip got this:
    No information has been found for the IP

    https://ipstack.com/ is the source.

    what I try to do is get default shortcode country = empty ? is possible to do that?

    Thread Starter hendratok

    (@hendratok)

    Hi, sorry support, what we try to do is like have “default” content for undetected ip address. are this plugin support this feature? thank you

    Plugin Author Benjamin Pick

    (@benjaminpick)

    I have to check …
    For now, you can try using the attribute “isEmpty” as criteria:

    [geoip_detect2_show_if property=”isEmpty” property_value=”1″]

    Plugin Author Benjamin Pick

    (@benjamin4)

    [geoip_detect2_show_if country=””] Some Content [/geoip_detect2_show_if]

    is working for me. Here is a test case, it should show Empty in all three lines:

    Country empty or not?: [geoip_detect2_show_if country=""]Empty[else]Not Empty[/geoip_detect2_show_if]
    Country empty or not?: [geoip_detect2_hide_if country=""]Not Empty[else]Empty[/geoip_detect2_hide_if]
    Country empty or not?: [geoip_detect2_show_if property="isEmpty" value="1"]Empty[else]Not Empty[/geoip_detect2_show_if]

    Can you tell me:
    – Are you using AJAX mode?
    – Which IP did you test? You can send it to my Email if you want, wp-geoip-detect posteo de

    Thread Starter hendratok

    (@hendratok)

    OK great, let me test on my website, if still not working I will report here or email to you. thank you to great support

    Plugin Author Benjamin Pick

    (@benjamin4)

    [geoip_detect2_show_if country=””] Some Content [/geoip_detect2_show_if] should work in the current beta (4.3.0-beta3), can you have a try?

    https://github.com/yellowtree/geoip-detect/wiki/Beta-Testing

    I realized that empty parameter values were ignored before, accounting for the weird behaviour that you saw.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Null IP detection’ is closed to new replies.