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

Hottaimoijiruna

描述

Hottaimoijiruna is a continuously updating AJAX powered clock for your site, with a customisable timezone so that you can display the time of day in your part of the world.

安裝

  1. Upload hottaimoijiruna.php to your plugins folder, usually wp-content/plugins/
  2. Activate the plugin on the plugin screen.
  3. Use the WordPress plugins editor and set “HOURS_FROM_GMT” appropriately for your timezone.
  4. In every template that you wish for the clock to appear, call the function hottaimoijiruna().

常見問題

Can you alter the format of the returned date string?

Not yet, but you will be able to soon.

How does it work?

Every minute hottaimoijiruna makes a call to the server and gets the current time. It uses SACK, an AJAX Kit by Gregory Wild-Smith, that comes built in with WordPress 2.0

It doesn’t work!

Yes it does! See here. Have you activated the plugin? Are you using WordPress 2.0 or else have SACK installed? Have you called Have you got Javascript enabled?

Will it work with WordPress 1.x?

For 1.2.x – no – it needs the templating system in 1.5+ to put javascript into a post or page. For 1.5+, probably, but it needs the SACK kit that is in 2.0. If you <a href=http://twilightuniverse.com/resources/code/sack/”>download SACK and put it in the wp-includes/js/ directory, it should work.

Will it break if the user doesn’t have Javascript?

Nope. It should degrade nicely, and just leave the default text (or nothing).

Will it break if the XML call fails?

Nope. It should degrade nicely, and say “clock disabled”.

Will this run on every WordPress page and post?

Nope, only on pages where you call hottaimoijiruna(), and it will quit before the first call if there is a problem.

Do you have an example?

Have a look at my About Page.

What’s with the stupid name?

Hottaimoijiruna is Japanese and it roughly means, “Don’t touch the potato that was dug up”. It is what some Japanese people think you are saying when you say “What time is is now?” Try saying it fast and you’ll understand.

So it’s kind of a joke?

Kind of. Did you laugh?

評價

There are no reviews for this plugin.

貢獻者及開發者

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

貢獻者

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

對開發相關資訊感興趣?

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