Country Flags by IP Address [Deleted]

Is there a way to display the visitor's country in template using this addon for unregistered or not logged in users ? something like {xen:helper country,$visitor.snog_flag}
Sorry, that's not possible. The user must be logged in to establish what flag they should have.
 
It seems like the add-on will automatically set flag privacy to Nobody when they hide their online status? Is there anyway to prevent this?
 
It seems like the add-on will automatically set flag privacy to Nobody when they hide their online status? Is there anyway to prevent this?
I can't duplicate that happening.

Is there a specific place it's not showing, or is it everywhere on your site?
 
For some reason, changing "Show online status" will always reset (basically it'll be unticked) this option:
View attachment 131786
I've checked that with 3 different test accounts and I can't duplicate it.

Do you have any other add-ons that change the info displayed on the member privacy page?

What version of the add-on are you running and what version of XF?
 
Do you have any other add-ons that change the info displayed on the member privacy page?
Quite a few, yeah. Though why would it untick the view flag privacy if I simply ticked/unticked "Show online status" from the navigation visitor tab popup?
What version of the add-on are you running and what version of XF?
Add-on: v1.3.2 (with heavy modification on the snog_flag.css template)
XenForo: v1.5.6
 
Quite a few, yeah. Though why would it untick the view flag privacy if I simply ticked/unticked "Show online status" from the navigation visitor tab popup?
OK, that's something totally different. I was using the member's privacy page to try to get it to toggle.

I can duplicate it from the popup. I'll try to have an update out in the next day or two to correct that.
 
OK, that's something totally different. I was using the member's privacy page to try to get it to toggle.
Aha, that explains it. All this time I've always changed the "Show online status" option from the navigation visitor tab popup only. Which is why I could always reproduce that issue.
I can duplicate it from the popup. I'll try to have an update out in the next day or two to correct that.
Got it, and thanks for the support!
 
@Snog could you make this with U.S. State flags?
Sorry, no.

It's not that I don't want to do it, it's that IP addresses aren't always accurate enough to establish a state. For example, you could have someone in Illinois with an Indiana IP address. Something similar already happens with mobile users in Europe, but it is far less frequent than it would be in the US.
 
Sorry, no.

It's not that I don't want to do it, it's that IP addresses aren't always accurate enough to establish a state. For example, you could have someone in Illinois with an Indiana IP address. Something similar already happens with mobile users in Europe, but it is far less frequent than it would be in the US.

Actually, they can be. But those databases are commercial only (aka cost to use because they're updated every 2 weeks or so).

My style is making part of another flag visible; how can i fix this?

Here's what i see:

xenforo.webp
 
Actually, they can be. But those databases are commercial only (aka cost to use because they're updated every 2 weeks or so).

My style is making part of another flag visible; how can i fix this?

Here's what i see:

View attachment 132446
Actually, no they can't. You're missing the point that people in Illinois quite frequently have IP addresses in Indiana or another surrounding state. IP addresses in the US are not accurate enough to display the city correctly. I've tried it. That database is 90% accurate on a state level and 81% accurate on a city level for the US within a 50 kilometer radius. 50 kilometers (31 miles) is a huge distance and does often cross state lines.

For the other flag, you've changed the styling somewhere along the line. Return either the snog_countryflag template or the snog_flags.css template to their original state.
 
Last edited:
Back
Top Bottom