Country Flags by IP Address [Deleted]

Change - Hovering over country flag now shows as a tooltip
Is it possible to phrase these tooltips for the next release?
Because it shows English names when hovered, not good when your board is non-English.
 
Is it possible to phrase these tooltips for the next release?
Because it shows English names when hovered, not good when your board is non-English.
Despite the names being in a php file, they are not provided by the add-on. They are provided directly from MaxMind.

The available languages from them are...
de, en, es, fr, ja, pt-BR, ru, zh-CN

If I were to do anything, I would provide an option to use one of those languages.
 
Despite the names being in a php file, they are not provided by the add-on. They are provided directly from MaxMind.

The available languages from them are...
de, en, es, fr, ja, pt-BR, ru, zh-CN

If I were to do anything, I would provide an option to use one of those languages.
I understand. Ok. Sadly my target language is not in that list.
 
And it's been a while since I did anything with this add-on. I forgot, the countries in the php file are used for the country filtering in the forum thread list display.
 
And it's been a while since I did anything with this add-on. I forgot, the countries in the php file are used for the country filtering in the forum thread list display.
Does this mean you can make phrasing available? :)
 
Does this mean you can make phrasing available? :)
Not easily. The country names are still obtained from MaxMind for use everywhere else. They have just been duplicated for use in the country filtering section of Thread Display Options.

I have however put phrasing on the wish list for the add-on.
 
  • Like
Reactions: sbj
@Snog After uploading files to upgrade I get this error:

Code:
Server Error

The file "/home/dressedw/public_html/data/countryflags/GeoLite2-Country.mmdb" does not exist or is not readable.

    Countryflags\Db\Reader->__construct() in Snog/CountryFlags/Listener/Visitor.php at line 75
    Snog_CountryFlags_Listener_Visitor::visitor()
    call_user_func_array() in XenForo/CodeEvent.php at line 90
    XenForo_CodeEvent::fire() in XenForo/Visitor.php at line 469
    XenForo_Visitor::setup() in XenForo/Session.php at line 378
    XenForo_Session::startAdminSession() in XenForo/ControllerAdmin/Abstract.php at line 48
    XenForo_ControllerAdmin_Abstract->_setupSession() in XenForo/Controller.php at line 306
    XenForo_Controller->preDispatch() in XenForo/FrontController.php at line 346
    XenForo_FrontController->dispatch() in XenForo/FrontController.php at line 134
    XenForo_FrontController->run() in /home/dressedw/public_html/admin.php at line 13

And now the forum is dead.
 
Server Error The file "/home/dressedw/public_html/data/countryflags/GeoLite2-Country.mmdb" does not exist or is not readable.
That could be a problem, make sure the 'GeoLite2-Country.mmdb' file is readable and actually present in the /data/countryflags folder, as in the permission ins 0644
Screen Shot 2558-05-23 at 8.20.09 AM.webp
 
that happened to me on one of my test forums once. but it was because i deleted the GeoLite2-Country.mmdb file,

luckily i found it in one of other test forums so i just copied and uploaded and my forum came back. I couldn't find it either in the downloaded files, it must create itself after installation?

ohwell, now i always keep a copy of it now before update
 
that happened to me on one of my test forums once. but it was because i deleted the GeoLite2-Country.mmdb file,

luckily i found it in one of other test forums so i just copied and uploaded and my forum came back. I couldn't find it either in the downloaded files, it must create itself after installation?

ohwell, now i always keep a copy of it now before update
Very strange, I'm sure @Snog will be along to sort it out in the download though..
 
I don't seem to have that file in my downloaded version. I just uninstalled it and reinstalled it after disabling addons. Posted the error message for posterity.
Yes I can confirm I just downloaded the lastest version and it was missing sending my Forum into database error and not usable
I did have a copy of the older version of the file so used that for the time being.
 
The GeoLite2-Country.mmdb file is not included with the download. It is downloaded from MaxMind during installation. And it is also automatically updated periodically while the add-on is installed.

If no errors were thrown when installing the add-on, I am at a loss as to why the file wouldn't exist after install.
 
The GeoLite2-Country.mmdb file is not included with the download. It is downloaded from MaxMind during installation.

If no errors were thrown when installing the add-on, I am at a loss as to why the file wouldn't exist after install.
Ok, now I understand, well understand why I got errors as I deleted both folders for the flags then uploaded the new ones, then saw the errors on my forum but this was before going to 'Upgrade' the xml file
So best not to delete the folder in the future and just upload and replace the files already there
I can't comment on how the other guy did it though but now I understand the GeoLite2 file is..
Thanks for clearing that up snog
 
Back
Top Bottom