1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

LOoking for a hello [your state] script

Discussion in 'Cloaking and Content Generators' started by sapo, Dec 31, 2011.

  1. sapo

    sapo Power Member

    Joined:
    Feb 25, 2008
    Messages:
    510
    Likes Received:
    281
    I am looking for a script that display your state .

    I can find one but I know their has to be, cause we all seen them.

    any one can help, REP to those who help
     
  2. skywalker55

    skywalker55 Junior Member

    Joined:
    Jan 29, 2010
    Messages:
    123
    Likes Received:
    109
    Occupation:
    Web App Development
    Location:
    London
    I have this script. But I'm on my phone not at my computer. Shoot me a pm and I will give you it tomorrow when I'm home.
     
    • Thanks Thanks x 1
  3. sapo

    sapo Power Member

    Joined:
    Feb 25, 2008
    Messages:
    510
    Likes Received:
    281
    thanks added rep
     
  4. marusia

    marusia Senior Member

    Joined:
    Oct 25, 2010
    Messages:
    1,122
    Likes Received:
    2,320
    Code:
    <script language="JavaScript">document.write(geoip_state());</script>
    Code:
    <script language="JavaScript">document.write(geoip_region_name());</script>
    Take your pick. :D
     
    • Thanks Thanks x 1
    Last edited: Dec 31, 2011
  5. marusia

    marusia Senior Member

    Joined:
    Oct 25, 2010
    Messages:
    1,122
    Likes Received:
    2,320
    Or maybe you want city and state in php

    Code:
    <?php
    	$sCity = geoip_city();
    	$sState = geoip_state();
    	print(" ");
    	print($sCity);
    	print(", ");
    	print($sState);
    ?>
     
    • Thanks Thanks x 1
  6. a_z_0_9

    a_z_0_9 Junior Member

    Joined:
    Jul 18, 2011
    Messages:
    110
    Likes Received:
    21
    @marusia - You forgot to give reference link to JS functions

    Is your code in PHP?
     
    Last edited: Dec 31, 2011
  7. sapo

    sapo Power Member

    Joined:
    Feb 25, 2008
    Messages:
    510
    Likes Received:
    281
    Code:
    <script language="JavaScript" src="http://j.maxmind.com/app/geoip.js"></script>
     
  8. a_z_0_9

    a_z_0_9 Junior Member

    Joined:
    Jul 18, 2011
    Messages:
    110
    Likes Received:
    21
  9. marusia

    marusia Senior Member

    Joined:
    Oct 25, 2010
    Messages:
    1,122
    Likes Received:
    2,320
    Nope, no api. I only use what I know (unfortunately not much LOL). With that script, I was only using js and css. I only use api with wordpress.
     
  10. koconder

    koconder Junior Member

    Joined:
    Oct 18, 2010
    Messages:
    116
    Likes Received:
    13
    2 ways to do this in php, ill post it when i get home... Simple 5-6 liner to show the state without using maxmind tables