這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

Foursquare Map

描述

Foursquare is rising in popularity, and will continue to grow. This plugin makes it easy to share your last check-in location without needing to worry about giving away personal info, and you don’t need to be an expert in mapping APIs!

The plugin places a Google map in a widget area and lets users enter their preferences over what they show, be it just the map, or the name of the place too, or the comment they left while there. Simple, effective, and sociable.

Features:

  • Offers an easy way to share your last check-in location with your blog’s readers.
  • Built on the Foursquare and Google Maps APIs, so expect blistering fast speeds.
  • Intuitive interface for editing options, with plenty more power under the hood.
  • Independent handling across multiple widget instances, using WordPress 2.8’s widget_class coolness.

螢幕截圖

  • This is how the plugin could look on your blog.
  • This is the widget options panel.

安裝

  1. Download the plugin by hitting that big red button to the right.
  2. Extract the files and place the entire ‘foursquare-map’ folder into your wp_content/plugins directory.
  3. Go to your ‘Installed Plugins’ panel and activate ‘Foursquare Map’.
  4. You are now ready to use the widget.

Setup:

  • Go to your ‘Appearance > Widgets’ panel and select the widget area you wish for the plugin to appear in.
  • Enter the following details:
  1. Widget Title
  2. Foursquare Email Address *
  3. Foursquare Password *
  4. Map Size (squares only for now)
  5. Map Zoom Level (zero is furthest, 21 is closest)
  6. Indicate whether to show the venue name
  7. Indicate whether to show your last comment

* no trace of this info is discoverable – you’re in totally safe hands here.

  • To make changes to what you see within the map, you might need to play around with the Google API code in bundled with the widget. I’m sure code snippets will start to appear in the comments right here to help you along.

常見問題

Where do I put the widget?

You can place the widget wherever you like as long as it is within a pre-defined widget area. I haven’t worked out how to let people place the widget wherever they like. Let me know if you can help on my contact page though.

Can I style the widget in my own way?

Kind of. You can change the parts that are created by WordPress by using your stylesheet.css to override your theme’s default widget settings. I’ve added the below style classes for you to do so:

  • .four2map – the widget class
  • .widgettitle – the widget’s title (same as all widgets)
  • .venue – the div above the map containing the venue name
  • .label – the text within the .venue div
  • .map – the map itself
  • .comment – the text below the map

To make changes to what you see within the map, you might need to play around with the Google API code in bundled with the widget. I’m sure code snippets will start to appear in the comments right here to help you along.

Where can I find more help and support?

Just leave a comment right here or email me from the contact page on my blog. I’ll be happy to help where possible.

I’m a fan of this plugin. What are my options?

Digital Cortex (rss) is actively seeking new fans & followers on Facebook and Twitter if you fancy it?

How can I support the development of this plugin?

Thank you so much for asking. Here is a link to where you can contribute to the development fund: Donate

評價

There are no reviews for this plugin.

貢獻者及開發者

“Foursquare Map” 是一個開源的軟體。以下的人對這個外掛作出了貢獻。

貢獻者

將 Foursquare Map 外掛本地化為台灣繁體中文版。

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

修改日誌

  • 0.1 – the first iteration of what I hope will be a learning experience for everyone

Future Versions:

  • V 0.2 – allow map width and height to be adjusted independently
  • V 0.3 – allow easy switching between Foursquare and Google Maps markers
  • V 0.4 – allow users’ to place their Foursquare avatar on the map as a marker
  • V 0.5 – pending user feedback!