Welcome to the MetaMod and Chameleon Support Forums.

Before posting, please check out the FAQs.

helpme

 

Need extra help with your Joomla site? Consider paid Joomla support by the developer of Chameleon and MetaMod.

 

Alternative Geo DB Format

Alternative Geo DB Format

It seems as though Maxmind have stopped offering the "legacy" databases now and are offering their GeoLite2 databases in different formats. How can I go about using metamod with this new databases
https://dev.maxmind.com/geoip/geoip2/geolite2/

Thanks

smallpsam
Beginner Modder
ranks
useravatar
Offline
3 Posts
Administrator has disabled public posting

Re: Alternative Geo DB Format

Hi,

A new version of MetaModPro is about to be released, that can use the GeoLite2 databases. I've just had it in user testing and it's all working fine and ready for the public. You'll be able to download it from this site in the next few days.

Best regards
Stephen

Stephen Brandon
MetaMod / Chameleon developer
If you use MetaMod or Chameleon, please post a rating and a review at the Joomla! Extensions Directory: Chameleon | MetaMod

metamodguy
useravatar
Offline
3312 Posts
User info in posts
Administrator has disabled public posting

Re: Alternative Geo DB Format

Hi,

Thanks for the reply. I assume that this has now been rolled out? I've purchased and install the metamod pro plugin but my module is still looking for a geoip.dat file. Can you provide a bit of guidance as to how I can use one of the new maxmind databases?

Thanks.
Sam

smallpsam
Beginner Modder
ranks
useravatar
Offline
3 Posts
Administrator has disabled public posting

Re: Alternative Geo DB Format

Hi Sam - yes, it has been rolled out.
You need to download the new style MMDB file from here:
http://geolite.maxmind.com/download/geo … ty.mmdb.gz

then unzip it and place it into a folder at the root of your web space called "geoip"

Then in MetaMod, indicate that you are using the GeoLite2 country database, using the dropdown.

That should work!

Stephen

Stephen Brandon
MetaMod / Chameleon developer
If you use MetaMod or Chameleon, please post a rating and a review at the Joomla! Extensions Directory: Chameleon | MetaMod

metamodguy
useravatar
Offline
3312 Posts
User info in posts
Administrator has disabled public posting

Re: Alternative Geo DB Format

Thanks Stephen, that worked great.

smallpsam
Beginner Modder
ranks
useravatar
Offline
3 Posts
Administrator has disabled public posting

Re: Alternative Geo DB Format

Hi Stephen
are the PHP instructions the same as before?
assuming I'm using the GeoLite2 country mmdb,
is this statement OK?


if($fromCountryId=='IT') { return 399;}
else  if($fromCountryId!='IT') {return 450; }

nick2011
Beginner Modder
ranks
useravatar
Offline
10 Posts
Administrator has disabled public posting

Re: Alternative Geo DB Format

Yes that should be fine. You can simplify it a bit too:

if($fromCountryId=='IT') return 399;
else return 450;

Stephen Brandon
MetaMod / Chameleon developer
If you use MetaMod or Chameleon, please post a rating and a review at the Joomla! Extensions Directory: Chameleon | MetaMod

metamodguy
useravatar
Offline
3312 Posts
User info in posts
Administrator has disabled public posting

Board Info

Board Stats:
 
Total Topics:
1666
Total Polls:
6
Total Posts:
5909
Dormant:
User Info:
 
Total Users:
10095
Newest User:
johnson58
Members Online:
0
Guests Online:
223

Online: 
There are no members online

Forum Legend:

 Topic
 New
 Locked
 Sticky
 Active
 New/Active
 New/Locked
 New Sticky
 Locked/Active
 Active/Sticky
 Sticky/Locked
 Sticky/Active/Locked