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
Vanilla 2.6 is here! It includes security fixes and requires PHP 7.0. We have therefore ALSO released Vanilla 2.5.2 with security patches if you are still on PHP 5.6 to give you additional time to upgrade.

ip2 location plugin

This discussion is related to the IP2Location addon.

I was using 2.3 but did a completely fresh install of 2.5 ip2location plugin when you look at users profile says invalid ip address

Comments

  • RiverRiver MVP
    edited January 6

    various older addons that display or use ipaddress may have issues.

    This plugin and the various membership listing plugins that display or use IP addresses probably need to be updated since the ip address is now encoded in the database by vanilla.
    Retrieval and use before decoding will most likely lead to unexpected results.

    therefore when retrieving ip addresses in Vanilla 2.5 from the database and/or user table, it NOW has to be decoded prior to display or use.

    • for instance things like this might not go as expected
      echo ($Sender->User->LastIPAddress);

    • you must decode it first.

      $decodedIP = ipDecode($value);
      echo $decodedIP;

    Pragmatism is all I have to offer. Avoiding the sidelines and providing centerline pro-tips.

  • Sorry for the issue. It has been fixed in latest version.

Sign In or Register to comment.