Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Try Vanilla Forums Cloud product

Ready to contribute?

Amazing! Sign our contributors' agreement and then join us on GitHub.

Update for critical security issue in PHPMailer included in release Vanilla 2.3.1
Please upgrade to 2.3 here. The 2.2 and earlier branches are no longer being updated.

Flags do not show.

This discussion is related to the GeoIPFlags addon.
edited April 2012 in Vanilla 2.0 - 2.2

Flags do not show.


Best Answer


  • vbgamer45vbgamer45 New
    Accepted Answer

    First check that the flags found exists inside the plugins/geoipflags/ folder and that images exist in there.
    Plugin also assumes that the default url of your plugins folder is

  • Error in default.php

    echo '<td><img src="/plugins/geoipusers/flags/' . $countrycode . '.png" alt="' . $countrycode . '" /></td>';

    I change geoipusers for GeoIPFlags but not work :(

  • peregrineperegrine MVP
    edited April 2012

    Do you mean they do not show in the dashboard.

    First off it requires version 2.1

    Second - it believe it may have the wrong permission on all the files when you unzip
    they all pretty much need 755 permissions, or don't they.

    third - what is in the .dat file - make me wonder what it does. hard to tell whether there is anything i don't want in there (paranoia vs. suspicion).

    I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.

  • estest New
    edited May 2012

    I use Vanilla and get this plugin to work through the following steps:

    line 39:

    $countrycode = geoip_country_code_by_addr($handle, $Sender->EventArgs['User']->LastIPAddress);

    change for

    $countrycode = strtolower(geoip_country_code_by_addr($handle, $Sender->EventArgs['User']->LastIPAddress));

    line 41:

    echo '<td><img src="/plugins/geoipusers/flags/' . $countrycode . '.png" alt="' . $countrycode . '" /></td>';

    change for

    echo '<td><img src="/plugins/GeoIPFlags/flags/' . $countrycode . '.png" alt="' . $countrycode . '" /></td>';`
  • mattmatt ✭✭
    edited July 2012

    On unix systems the paths are case sensitive, which is why the above change are needed.

    I also needed to change the path to GeoIP.dat

    My changes are here:

Sign In or Register to comment.