Module to show custom PHP code for specific countries

This forum is for general questions about extensions for Joomla! 3.x.

Moderators: pe7er, General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10.
Post Reply
User avatar
Joomla! Intern
Joomla! Intern
Posts: 70
Joined: Mon Dec 05, 2011 4:37 am

Module to show custom PHP code for specific countries

Post by layer8 » Thu Feb 13, 2020 11:56 am

Hi mates,
I need a module to show custom piece of PHP code only for specific countries.

I was looking on JED and haven't found anything
The only module that is similar to what I need is "Metamod" ,but the GEO filtering is not working in J3.9.15
Maybe because now Maxmind requires a token, and that module hasn't been updated since 05.05.2018

of course, if someone here can share a piece of php code to implement Maxmind GEOIP filtering will help a lot, because I already have a module to run custom php code in frontend, I only need to add the if condition for the country filtering based on two letters country code (btw, the Maxmind Database should update automatically)

Post Reply

Return to “Extensions for Joomla! 3.x”