Jump to content

[Solved] GeoIp code where ?


Recommended Posts

hi,

Does anybody know where should I put the GeoIp code for redirecting users based on their IP ?

I tried in mytheme/index.php but doesn't seem to work.

GeoIp is installed by the provider, I have GeoIp.inc and .dat file in a directory, they can be called so no problem here, no error message either, just doesn;t work.

Regards,

R.

 

SOLVED: Works if inserted in the root index.php not theme's one.

Edited by Rhobur (see edit history)
Link to comment
Share on other sites

  • 2 years later...
  On 5/10/2012 at 1:47 PM, Rho_bur said:

hi,

Does anybody know where should I put the GeoIp code for redirecting users based on their IP ?

I tried in mytheme/index.php but doesn't seem to work.

GeoIp is installed by the provider, I have GeoIp.inc and .dat file in a directory, they can be called so no problem here, no error message either, just doesn;t work.

Regards,

R.

 

SOLVED: Works if inserted in the root index.php not theme's one.

Hello.

 

Coudl you explain where do i have to put the code for redirect? www.ladolcevitashop.com

Thanks 

B.R

Link to comment
Share on other sites

  • 11 months later...

Hey Rho_bur can you guide us step by step how to get this going ...

 

I have installed the geoip module.  Then in preferences downloaded the dat file and  so I have the .inc file also there and have enabled geolocation. Now I wanna know what piece of code is to be inserted in the index.php 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...