Country Flags by IP Address [Deleted]

@Snog Hi, been using this add-on for a while, its superb. Members love it.
Would it be possible to somehow search members by country? Or for instance, once a US icon is clicked, it can somehow filter US members, etc.
 
@Snog Hi, been using this add-on for a while, its superb. Members love it.
Would it be possible to somehow search members by country? Or for instance, once a US icon is clicked, it can somehow filter US members, etc.
It's not possible right now, and I think that's already on the wish list for the add-on. I'll have to check. If it's not I'll put it on the wish list.
 
I had this (superb) add-on temporarily disabled for maintenance purposes. It was then enabled again.
New users registered during the time it was disabled do not show a country flag in their profiles.
Is there a way to add the flag to the profiles of these users?
 
I had this (superb) add-on temporarily disabled for maintenance purposes. It was then enabled again.
New users registered during the time it was disabled do not show a country flag in their profiles.
Is there a way to add the flag to the profiles of these users?
Sorry, no there isn't. The only time the flag is updated is when they log into the site.
 
i notice no country flag just letter R reserved
That usually means the user is spoofing their IP address to a reserved IP range.

If you're using NGINX, it could also be that it isn't configured properly to return the user's IP address. I don't use NGINX, so I can't help with it's configuration.
 
Last edited:
That usually means the user is spoofing their IP address to a reserved IP range.

If you're using NGINX, it could also be that it isn't configured properly to return the user's IP address. I don't use NGINX, so I can't help with it's configuration.
VPN problem maybe?
 
@Snog

I currently have cURLSSL enabled, which disables cURL. Which do you want to use?

With cURLSSL enabled it is showing flags for only two users, including me... wonder why? :confused:

Or does it show only when the user has logged in for the first time after installing the add-on?

Thank you
 
Last edited:
@Snog

I currently have cURLSSL enabled, which disables cURL. Which do you want to use?

With cURLSSL enabled it is showing flags for only two users, including me... wonder why? :confused:

Thank you
cURL is used by a cron task to update the MaxMind database. It's not used constantly.

I would think that if it's working and updating the database, then there's nothing you need to do.

Flags won't be displayed for a user until they visit the site. If they haven't visited the site since the add-on was installed, no flag will be displayed.
 
Is there any way, i can adjust the alignment of the banner... right now it looks a little crouched... a little space from username and a little way up would make it look nicer. Thank you
View attachment 128317
There is suppose to be a space between the name and flag. Just as there should be spaces between the user's banners. If you're running any sort of HTML compression, turn it off.

OR, edit the 'member_view' template modification for the add-on and place any number of &nbsp; before the <img... .
 
Code:
An exception occurred: Call to undefined function Countryflags\Db\Reader\bcadd() in /home/admin/web/nwa-clan.com/public_html/library/Snog/CountryFlags/Listener/Includes/Reader/Decoder.php on line 258

Countryflags\Db\Reader\Decoder->decodeBigUint() in Snog/CountryFlags/Listener/Includes/Reader/Decoder.php at line 242
Countryflags\Db\Reader\Decoder->decodeUint64() in Snog/CountryFlags/Listener/Includes/Reader/Decoder.php at line 131
Countryflags\Db\Reader\Decoder->decodeByType() in Snog/CountryFlags/Listener/Includes/Reader/Decoder.php at line 97
Countryflags\Db\Reader\Decoder->decode() in Snog/CountryFlags/Listener/Includes/Reader/Decoder.php at line 195
Countryflags\Db\Reader\Decoder->decodeMap() in Snog/CountryFlags/Listener/Includes/Reader/Decoder.php at line 104
Countryflags\Db\Reader\Decoder->decodeByType() in Snog/CountryFlags/Listener/Includes/Reader/Decoder.php at line 97
Countryflags\Db\Reader\Decoder->decode() in Snog/CountryFlags/Listener/Includes/Reader.php at line 62
Countryflags\Db\Reader->__construct() in Snog/CountryFlags/Listener/Visitor.php at line 113
Snog_CountryFlags_Listener_Visitor::visitor() in XenForo/CodeEvent.php at line 90
XenForo_CodeEvent::fire() in XenForo/Visitor.php at line 477
XenForo_Visitor::setup() in XenForo/Session.php at line 274
XenForo_Session::startPublicSession() in XenForo/Controller.php at line 293
XenForo_Controller->_setupSession() in XenForo/Controller.php at line 306
XenForo_Controller->preDispatch() in XenForo/FrontController.php at line 350
XenForo_FrontController->dispatch() in XenForo/FrontController.php at line 134
XenForo_FrontController->run() in /home/admin/web/nwa-clan.com/public_html/index.php at line 13

Updated to PHP 7.0 and getting this error now.

When I disable Countryflags its fine.
 
WOW... that's a huge leap forward with a server upgrade. Most stuff doesn't even support 7 yet... though I do see the appeal with the massive performance of 7.

It took a bit of fiddling especially with roundcube and phpmyadmin but so far everything works fine, also very happy with performance!
 
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}
 
Top Bottom