该插件尚未通过WordPress的最新3个主要版本进行测试。 当与较新版本的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

评价

此插件暂无评价。

贡献者及开发者

「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!