Support » Plugin: GeoIP Detection » Region select

  • Resolved hdmcreativenet

    (@hdmcreativenet)


    Hi there,

    Firstly, I love your plugin. It is really useful!

    I am wondering if there would be a way to “Create a select input with all regions within Australia”, that would override the “Show or hide content depending on the location” shortcodes I have inserted? For example, visitors from Victoria are shown particular content based on their region but it would be great to disable that via a dropdown for a visitor.

    Thanks,

    Ed

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

    (@benjamin4)

    These are actually 3 features that you need:

    – Creating a select box with the regions of Australia

    This is too specific for my plugin, because I would need to save the data from GeoNames for all regions of all countries (Maxmind can only tell the region of the current IP). However, you could adapt what I’ve done with the countries in /lib/geonames for regions …

    – Then you need to save the user’s decision somewhere

    In his session? in the database? in his profile? This depends on your concrete usecase and as such, is also not a good match for this plugin.

    – Overriding the IP-based decisions of geoip_detect2_show_if

    I will add a wordpress filter geoip_detect2_shortcode_show_if_ip_info_override in the next plugin version that will allow you to do so.

    But in all 3 cases you will need someone to be able to code in PHP, shortcodes alone will not suffice.

    Hi Benjamin,

    Thanks so much for your reply!

    I would like to engage someone to implement the above in a more simple manner (the rules being “hide if in Sydney” or “Show if in Melbourne”, defaulting to Melbourne), so therefor I need a select box or link that gives “Sydney” or Melbourne”. Saving the user’s decision would make most sense to be in the database for that IP address.

    Would you be capable / interested in engaging in this work, or maybe someone reliable you can recommend? If so, please reply to me with your rates / cost.

    Thanks!

    Ed

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.