Author Topic: Download button redirects based on country  (Read 3542 times)

0 Members and 1 Guest are viewing this topic.

Offline didoman

  • Newbie
  • *
  • Posts: 32
    • View Profile
Download button redirects based on country
« on: May 08, 2009, 01:36:29 PM »
I have version 1.7.6

Is it possible to have a mod where users who are NOT from the USA are directed to a different download link URL

Example.
If you are from the USA and you click on the download button, then you are directed to the URL in the download field (normal process)
BUT.... if you are from another country then you will be sent to a different URL

To put it another way....
If you are from USA and click on the download button then you are directed to the URL in the download field (normal process)
If you are from Australia and click the download button then your directed to australiaurl.com (whatever)
If you are from England and click on the download button then your directed to englandurl.com (whatever)
Etc Etc Etc.....

Basically I want an intelligent download button that knows your not from the USA so directs you to an appropriate URL based on your country.

I have searched the forum and I cant find anything similar to this.
Any help or a push in the right direction will be muchly appreciated...

4IMAGES ROCKS!  :mrgreen:




Offline mawenzi

  • Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
Re: Download button redirects based on country
« Reply #1 on: May 08, 2009, 02:13:26 PM »
1. only for registered users ... ?
2. you can use the user-loggin-IP ...
    and via IP you can assign the country-ID ( via geoip.inc ) for the user ...
    and depends from the country-ID you can generate the country-download-button ...

... insofar a theory and a push in a (right) direction ...
Your first three "must do" before you ask a question ! ( © by V@no )
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

You are on search for top 4images MOD's ?
- then please search here ... Mawenzi's Top 100+ MOD List (unsorted sorted) ...

Offline didoman

  • Newbie
  • *
  • Posts: 32
    • View Profile
Re: Download button redirects based on country
« Reply #2 on: May 08, 2009, 10:33:51 PM »
1. only for registered users ... ?

No I want it so any user (guest or member) will be directed by their IP address.

I think with 4images one can get the IP address of any user whether they are a guest or logged in.
So with this information I can use it to tell the download button what to do.

The country flag mod sounds like the way to go with this, but alas I am of feeble mind and have no idea on how to tie this in and script this up.

Anyone out there know how to tie the geoip tool with what I want above ??  :idea:  :wink:
« Last Edit: May 09, 2009, 03:41:48 PM by didoman »