Plugin Author
Paul
(@paultgoodchild)
When I do IP Whois lookup on: 95.141.20.197 I get GB/UK from http://cqcounter.com/whois/
And this shows both madrid and the UK:
http://www.iplocation.net/index.php
This highlights that IP Geolocation is not an exact science and you can’t always be sure IPs resolve to locations you expect.
Plugin Author
Paul
(@paultgoodchild)
You should try:
[CBC_COUNTRY /]
and see what country is being detected.
Hi Paul!
Thanks for the reply. Got it.
Is there a fallback value parameter for this:
[CBC_COUNTRY /]
if there’s no country being detected?
Plugin Author
Paul
(@paultgoodchild)
Nope, there’s no fallback – this simply outputs what it finds. If it cannot match the IP, I’m not actually sure what it would output, to be honest.
Are you having that happen?
Problem is, if I have a shopping cart and would like to greet visitors by country, a missing country name would be weird, but if i could use a fallback like “your country” it would make sense gain…
Example:
We offer free shipping to [CBC_COUNTRY /]
if not country detected it would just be blank after to
If i could use a fallback like:
[CBC_COUNTRY default=”your country” /]
it would make sense again 🙂
Plugin Author
Paul
(@paultgoodchild)
These shortcodes are designed (as yet) to be used on the frontend, except for debugging purposes to ensure countries etc are being detected as you expect. I’ll have a think about new shortcodes to use etc. for what you’re looking for.
i have the same problem
thie is the output:
I AM IN USA NOW
Country =
and
IP = 121.35.226.12
no country was detected.
but in who is IP it tells you it’s china.
I also have another issue, not sure if it’s a problem or bug or it’s just like this,
the top bar where it says:
The IP-2-Nations data needs to be updated/installed before you can use the Content By Country plugin.
when i click to install, it keeps waiting for about a minute then it goes to my WP-Dash board. when i go back the the plugin setting, the message is still there!
let me know what’s up.
thanks
Plugin Author
Paul
(@paultgoodchild)
It looks like the database isn’t being properly installed which is why you’re getting the message repeatedly and you’re not getting a country detected…
So is there anything I could do?
Plugin Author
Paul
(@paultgoodchild)
You could take the SQL file that is shipped with the plugin and use something like PHP MyAdmin to import the sql directly to your WordPress database.
I was going you do a hot fix.
Thanks.
I was going you do a hot fix.
Thanks.