Current Location Plugin
Plugin Details:
• Current Version: 1.4
• Last Updated: 05/12/2010
• WordPress Link (Download Here)
• Got a suggestion?
Description: The plugin uses the Google Badge System and pulls the JSON file. The plugin then parses through the json file and displays your current location. You need to have a Google Account and signed into Google Latitude on your computer/Mobile device. I’m currently using this plugin with my Blackberry World Edition phone and Google Maps on the phone.
Why: I thought it would be really cool to have my blog display my current location without my editing anything. Also I wanted to learn how to write a plugin for WordPress.
Uses: <?php display_current_location(); ?> – This will display the reverse city look up. You can pass “map” / “city” / “coords” / “accuracy” into the () like this. display_current_location(“map”,”coords”);
When you call any of them it will put a <br /> at the end of the output. So the output in the source code would look like this:
Nashville, TN, USA <br /> 3909 meters <br />
FAQ:
Q: Output says this “User ID incorrect. You entered this id: Nothing”
A: You need to visit the Current Location settings page and update the Google Badge UserID.
Q: On the settings page you see this note: “Since you are using an older version of WordPress, the timestamp output will be set to the server.”
A: All that means is your not using WordPress 2.8, which is fine, but the new TimeZone feature in 2.8 will fix the timestamp to your local blog timezone instead of your server timezone. Example: My server is located in the EST timezone but I want my blog on the CST. This will fix the timestamps for CST not EST.
Pictures:







I put into the content portion of a template, and only the appropriate “date” of my latest latitude update was posted. Map and City did not work. I’ve tried Map without city or date, and it also did not work.
Also in the configuration for “current location” it says that my timezone isn’t set, when it is set to UTC+2
I am using WordPress 3.0-beta2-14597 with Theme Arjuna X.
Thanks!
Falieson,
When you go to the Google Latitudes page does it show your current location? Can you add it back to your template and let me see it?
Also, thanks for putting out the timezone. It works with you select a city name but it doesn’t seem to work with the UTC options. I will look into fixing that.