[OzzModz] Country Flags by IP Address

[OzzModz] Country Flags by IP Address 2.2.1 Patch Level 5

No permission to download
While we wait for a 2.3 compatible version, could I make a feature request?
We need to see members from particular countries and the snog_flag field in xf_user is perfect for this.
Ideally we would have some kind of search widget in the members page.
But also, clicking the country flag on a member's avatar to open a list of users from that country in order of last visit would be useful.

By the way, I don't know where the 'snog' name came from for the member who created this addon, but in the UK, snog is a slang verb meaning to
  1. kiss and cuddle amorously.
    "the pair were snogging on the sofa"
 
While we wait for a 2.3 compatible version, could I make a feature request?
We need to see members from particular countries and the snog_flag field in xf_user is perfect for this.
Ideally we would have some kind of search widget in the members page.
But also, clicking the country flag on a member's avatar to open a list of users from that country in order of last visit would be useful.

By the way, I don't know where the 'snog' name came from for the member who created this addon, but in the UK, snog is a slang verb meaning to
Maybe Ozzy likes to kiss on the sofa?
 
Just installed this add-on. It seems to be working as I can right click on the place holder and see the /data/countryflags/flags/xxx.png but it just shows the place holder, but not the actual flag. And there's no such folder /data/countryflags/ in my web folder. So what's wrong?

Using R2 cloudflare.
 
Great add-on. However, I'm always being asked if members can set the country flag themselves. A few are close to country borders and seeing the wrong flags, or travelling and would prefer to keep displaying their home flag, or using a VPN etc.. Would this be possible? Happy to contribute $$ if possible.
 
I now seem to have a problem.
Code:
#0 src/XF/Db/Mysqli/Statement.php(207): XF\Db\AbstractStatement->getException('MySQL statement...', 1054, '42S22')
#1 src/XF/Db/Mysqli/Statement.php(43): XF\Db\Mysqli\Statement->getException('MySQL statement...', 1054, '42S22')
#2 src/XF/Db/Mysqli/Statement.php(61): XF\Db\Mysqli\Statement->prepare()
#3 src/XF/Db/AbstractAdapter.php(96): XF\Db\Mysqli\Statement->execute()
#4 src/XF/Db/AbstractAdapter.php(323): XF\Db\AbstractAdapter->query('UPDATE  `xf_use...', Array)
#5 src/addons/Snog/Flags/Listener.php(149): XF\Db\AbstractAdapter->update('xf_user', Array, 'user_id = ?', 1)
#6 src/XF/Extension.php(86): Snog\Flags\Listener::Visitor(Object(Andrew\ModeratorPanel\XF\Entity\User))
#7 src/XF/App.php(3368): XF\Extension->fire('visitor_setup', Array, NULL)
#8 src/XF/Repository/UserRepository.php(38): XF\App->fire('visitor_setup', Array)
#9 src/XF/App.php(2332): XF\Repository\UserRepository->getVisitor(1, Array)
#10 src/XF/Pub/App.php(200): XF\App->getVisitorFromSession(Object(XF\Session\Session))
#11 src/XF/App.php(2822): XF\Pub\App->start(true)
#12 src/XF.php(806): XF\App->run()
#13 index.php(23): XF::runApp('XF\\Pub\\App')
#14 {main}

I have tried to uninstall this thinking it was no longer supported.

but since returning to hosts, I no longer can see flags, i do have the files.
 
And when is this addon getting updated for the 2.3.4 version of xenforo?
it is running on the site i am staff on that runs 2.3.4.
the owner of that site would not still have it installed if he had noticed issues.
he already has disabled some paid plug ins that are still not updated.
 
This is showing some some wrong flags for me. (Checked against Maxmind - Ip Address is in UK. Flag shown on forum is Belgium) Does anyone have it working properly?
 
It appears to be working fine for me. Maybe the maxmind data has a bad entry and needs an update?
 
@Ozzy47 is there a way, maybe with custom bb codes, to display country flags within posts?
It makes sense to use your sprite and css to use them where I want to display flags in posts.
(I want to do this to show which countries the content relates to).
For example,
Rich (BB code):
[showflag=GB][/showflag]
would show something like
HTML:
<span class="userflag-m flags flag-GB" data-xf-init="tooltip" data-original-title="United Kingdom" aria-label="United Kingdom"></span>
with the goal of displaying the flag inline with the text.

I hope you can help with this.
Thanks.
 
I think my Maxmind download stopped working Feb 15, but I can quite happily download Maxmind from another program using the same License key up to date every day.

[root@cp snog]# cd flags/
[root@cp flags]# ls -l
total 11500
-rw-r--r-- 1 sd sd 7778057 Feb 15 04:00 GeoLite2-Country.mmdb
-rw-r--r-- 1 sd sd 3990960 Feb 15 04:00 GeoLite2-Country.tar.gz

What might have happened and how do I fix it?

Thanks,

Alex
 
Well I think I've fixed it... by creating another License key on this server (plus it makes troubleshooting easier), ran the Cron and it looks to be updating now! (y)
 
Back
Top Bottom