Show/hide module based on user country accessing the site

1 year 5 months ago #93 by svarmuza
Greetings,
could you help me with php code with this situation:
I would like to be able to use your extension to show/hide modules on my web page regarding the country from where user is accessing my page.
Can this be done with your CONDITION MODULE extension ?
Greetings,
Sasa

Please Log in or Create an account to join the conversation.

1 year 5 months ago #95 by administrator
Hi,
Do you use Cloudflare's service?

JoomHelper - Free Joomla Extensions and Tutorials.
- Facebook: bit.ly/3Fmq9AN
- Youtube: bit.ly/33onadN
- Donate: bit.ly/3uu8yFs

Please Log in or Create an account to join the conversation.

1 year 5 months ago #98 by svarmuza
I think I have it available on my server, but Im not using it at the moment
Greetings,
Sasa

Please Log in or Create an account to join the conversation.

1 year 5 months ago #101 by administrator
If you use Cloudflare, you can use $_SERVER["HTTP_CF_IPCOUNTRY"] variable in the module condition. Otherwise, you need to find an API-enabled service to find the country's code by IP address. It will be more complicated.

JoomHelper - Free Joomla Extensions and Tutorials.
- Facebook: bit.ly/3Fmq9AN
- Youtube: bit.ly/33onadN
- Donate: bit.ly/3uu8yFs

Please Log in or Create an account to join the conversation.

1 year 5 months ago #102 by svarmuza
Greetings,
Thank you for your reply. I will check this out how it goes.
Greetings,
Sasa

Please Log in or Create an account to join the conversation.