• I am traveling to central america shortly and this is exactly what i am looking for for when i post. I would like for my lat / long to be displayed after the title of the post or down by the time stamp… I have tried researching and searching for geo track but don’t seem to find much info… any help or a kick in the correct direction would be awesome!

Viewing 15 replies - 1 through 15 (of 17 total)
  • <?php
    if (
    (get_settings(‘use_geo_positions’)) &&
    (get_Lon() != null) &&
    (get_Lon() < 360) &&
    (get_Lon() > -360) ) {
    ?><?php print_Lat();
    echo ” x “;
    print_Lon();
    echo “”;
    print_UrlPopNav();
    }
    ?>

    Thread Starter ahreno

    (@ahreno)

    alan, where would i put that?

    Where you want it to display (you said after the title). Since I don’t travel much I have it at the top of my page. When I did travel I stuck it in the loop inside the meta div after the “filed under…” that way it would display my location for each post. – Alan Smithee

    I notice something bizarre. I’ve added simple code to just print lat and long with each post. My longitude is negative and is correctly entered under Options/Miscellaneous yet when it prints out the page, the – is dropped leading one to believe I’m in an entirely different location than I actually am. What might be the issue?
    TIA –
    Matt

    It is correct -74.006 = 74.006W

    Apologies. Not sure how I missed the ‘W’.
    Thanks.

    If you don’t want “W” and prefer the “-” just use: echo get_Lon()

    Thread Starter ahreno

    (@ahreno)

    Ok, i guess i should have prefaced to let you know i’m not much of a coder. I can hack my way around wiht some guidance but not just off the top of my head… which file would i put it? i put it in post.pho after the div that contains “<div class=”meta”><?php _e(“Filed under:”) etc…” it didn’t work. I just copied and pasted it in though… any more help? my email is [email protected] if you’d like to tell me that way! thanks much

    Thread Starter ahreno

    (@ahreno)

    thanks much, i’ll test it out when i get home tonight!

    Thread Starter ahreno

    (@ahreno)

    hmm, i got it in and it displays a drop down bar with a bunch of sites in it…
    is it possible to just make the coords be a link to one of the siteS? also, none of the links do anything… i select one from the drop down and it just sits there….
    https://www.osterbrink.org/blog is the site. thanks for your help

    Thread Starter ahreno

    (@ahreno)

    still looking for some help!

    Thread Starter ahreno

    (@ahreno)

    I’m gettins some funky java script errors…. i believe that’s why it isn’t working. I use firefox but have checked in IE (no pop blocker there) and also in firefox with the popup blocker turned off.
    I like the idea of just having one site that it links to, however i can’t figure out how to make it not have the drop down box and just be a text link.
    When i load up Firefox’s java console and then select a link from the drop down box, i get the following error in the console:
    Error: formHandler is not defined
    when using IE, i get this:
    Line: 67
    Char: 1
    Error: Object expected
    Code: 0
    URL: https://www.osterbrink.org/blog/
    any ideas?

    For one link, did you not try what I posted immediately proceeding your post? You cannot use the function to get a single link – it is a dropdown list’o’links function.

    Thread Starter ahreno

    (@ahreno)

    well I went in and took out all the other array’s and just left one, but it’s still not redirecting me anywhere…. and like i said, i’ve tried with turning off pop blocing in firefox, and tried with a generic install of IE….

Viewing 15 replies - 1 through 15 (of 17 total)
  • The topic ‘how do i use the Geotracking?’ is closed to new replies.