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

Yahoo Weather

外掛說明

A simple Yahoo Weather widget

螢幕擷圖

  • The widget itself
  • The admin panel

安裝方式

  1. Upload yahoo-weather directory to the /wp-content/plugins/ directory or use WordPress’s built-in plugin search
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Find the ‘cache’ directory in /wp-content/plugins/yahoo-weather, chmod it to 777

常見問題集

After you have installed the plugin, open the widgets page from your WordPress admin. Drag the Yahoo Weather widget to the sidebar.

A working example of this plugin: http://comenius-bs.slipknotee.com

Usage

There are 3 attributes: places, unit and cachetime.

  • Places. Must be formatted WOEID|text
    For example
    845743|Tallinn, Estonia
    807392|Győr, Hungary
    487978|Brzesko, Poland
    746203|Porto, Portugal
    753692|Barcelona, Spain
    23388162|Soverato, Italy

  • To get the WOEID for a city, use this website: http://woeid.rosselliot.co.nz

  • Unit is the temperature unit. ‘c’ for Celsius, ‘f’ for Fahrenheit. (If no unit is set, it displays the default Celsius)

  • Cachetime is optional. If not set, it will be the default 300 seconds. It means that the script will update the weather data every 300 seconds (5 minutes). You problably don’t ever have to change it.

You can also style the weather. The weather is in a span with a class yahooweather.

使用者評論

這個外掛目前沒有任何使用者評論。

參與者及開發者

以下人員參與了開源軟體〈Yahoo Weather〉的開發相關工作。

參與者

將〈Yahoo Weather〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

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

變更記錄

1.3.4

  • Fixed a small admin panel bug

1.3.3

  • Important update: now using WOEIDs for locations. You must update your settings
  • Updated the admin panel screenshot with WOEID

1.3.2

  • Updated readme.txt (added a working example link)
  • Fixed a screenshot

1.3.1

  • Updated description
  • Added screenshots

1.3.0

  • MAJOR UPDATE
  • Changed the weather code format. See the Usage section in FAQ
  • Removed the support for adding weather to a page. Only widget for now
  • Updated the widget admin panel look
  • Fixed some HTML misalignment bugs

1.2.7

  • Weather in a page was always displayed before all other content. Now displaying where you’ve written the shortcode.
  • Weather in a page shortcode city names escaping, now they can include spaces, slashes or any signs

1.2.6

  • A change in plugin’s php file description

1.2.5

  • Fixed a mistake in HTML
  • Fixed the ‘no image’ 3200.png

1.2.4

  • Little HTML typo fix

1.2.3

  • Fixed a layout bug, now using tables

1.2.2

  • Fixed a layout bug

1.2.1

  • A few fixes

1.2.0

  • Changed plugin’s name to ‘Yahoo Weather’
  • Complete rewrite of plugin (now 2x faster)
  • Now can display weather in a page/post