Current Location Plugin
Plugin Details:
• Current Version: 1.5.8
• Last Updated: 08/03/2011
• 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 echo display_current_location(); ?> – This will display the reverse city look up. You can pass “map” / “city” / “coords” / “accuracy” into the () like this. echo 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.
Great plugin, thx.
Will you ever release an internationalized version, or at least a version with translateable language files?
I could assist with a German translation…….
As a first step it would be great if you replaced the hardcoded “metres” (line 76) by a simple “m”.
[...] Also made a new release of Current Location! Now up to 1.5.3. Check it out here. [...]
Hi!
Thanks for hiding the user id on error messages!
You are welcome! Let me know if you want anything new. Are you still having issues?
[...] Also made a new release of Current Location! Now up to 1.5.3. Check it out here. [...]
Hey there – can you help e with this plug-in….I originally thought that the plugin would pick up my current location based upon where I last logged into Google. We are currently in Vernon BC but it still shows us being in Regina. How do I get it to track us better? Thanks in advance…
Hi,
Just added the shortcode to a page in my template using WordPress 3.1.3 and double checked everything in the settings, but the map is not displaying. I’ve set the timezone correctly as well (Los Angeles). Any thoughts as to why this might be happening??
Thanks! Can’t wait to see this work!!
Jef
Got the plugin to operate OK, but why are the locations NOT automatically updating in the blog? Am I missing something? I have the short code in the page set as [current-location]. And also am using the widget to display next to posts, but the locations are not current. PLEASE ADVISE! Thanks.
Hi there – pleasehelp…is their something I am doing wrong with this plugin? Some of the time it will update my location…all I have to do is make sure I am signed on to Google, and then on my blog site, I click on the goog.com/latitude link on the Current Location Widget in my sidebar… but then other times, like now, it will not register my new location. The current location says Italy, but we are now in France….can you please tell me what I may be doing wrong? thanks!
Can’t seem to get this to work, firs tit showed invalid uer ID, now it’s just blank. WP 3.2.1
Hey WEbbit, Are you still having issues?