• Resolved Some Thing

    (@jeffdrichardsongmailcom)


    I am not sure if the plugin is working since I can’t get it to output anything. Is there a diagnostic script with if-then command and instruction where exactly we can put the script to get it to work?

    When I put the example from FAQs in my WP footer, I get this output:

    country_code == ‘DE’)` echo ‘Hallo! Schön dass Sie hier sind!’; ?>

    I tried to surround it with <?php and ?> and few other things, but none of them helped. And in admin Dashboard when I look up my own IP the plugin tells me it’s not in the DB which I find hard to believe as it is from a pool that belongs to a large ISP.

    But I can’t really be sure if it’s not in the DB or simply not working, so I’d like to ask for a working example what unambiguously outputs those parameters or else returns some information that we can see.

    http://wordpress.org/plugins/geoip-detect/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Firstly, have you updated you database? To do that use
    Tools => GEO IP Detect
    and click on “Update now” button.

    Once done, test it out by clicking on the “Lookup” button. This shows you a complete dump of the data available.

    As for your “WP Footer”, I assume you mean that you are updating your WP Footer using
    Appearance => Widget
    and selecting to update one of your footer widgets. If so, try adding a Text widget. In the widget, add
    [geoip_detect property="country_code"]
    Then save your widget and display a page/post on your web site. You should see a country code. Worked for me.

    Plugin Author Benjamin Pick

    (@benjaminpick)

    Thank you very much for answering, dccharron!

    I’ve added the shortcode into the FAQ and also removed the backticks.

    Plugin Author Benjamin Pick

    (@benjaminpick)

    Thank you very much for answering, dccharron!

    I’ve added the shortcode into the FAQ and also removed the backticks.

    Thread Starter Some Thing

    (@jeffdrichardsongmailcom)

    dccharron, thanks that shortcode worked for me too!

    The thing with DB update got me… It wasn’t very prominent and I didn’t even notice I didn’t have any DB to work with!

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Can you provide a more complete example?’ is closed to new replies.