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

Twitter API Shortcodes

外掛說明

Twitter API Shortcodes (TAS for short) is currently in Alpha, and should not be considered at all stable! With that said
please provide any feedback so we can make things better!

TAS allows you to put single tweets or entire twitter searches into your posts and pages using shortcodes. The tweets and searches
are displayed in HTML markup, so the become “part” of your site, which is good for SEO.

The generated markup can be customized by putting a tweet.tpl (smarty template) file into your theme directory. This also means that
theme authors can support this plugin directly.

Tweet templates assume that each tweet is in some block with the class ‘status’ (preferably a div like so

<

div class=”status”>), and that in that block, there is a block for images with the class ‘images’ (preferably a div like so

<

div class=”images”>)

All single tweets are cached in your local wordpress database, making performance ultra fast and reducing the number of requests
necessary to the Twitter API.

Twitter searches can also be cached, allowing you to keep a history of that particular search. This is useful if you want to
tweet about a particular event with a hash tag, then display all of your tweets for that event on a page, or in a post even
after those tweets fall out of the twitter search index.

TODO

This is a list of things which currently are not yet working (hey it’s an alpha version)
* Avatar updates

螢幕擷圖

  • TinyMCE editor integration makes it easy to add the shortcodes
  • A post with some shortcodes in it
  • The shortcodes rendered in a post

安裝方式

Twitter API Shortcodes depends upon the Smarty PHP templating engine. Since we’re good little boys and girls, we won’t
include the library with the plugin, so you’ll have to go get it yourself! But don’t worry, it’s not hard simply go to;

http://www.smarty.net/download.php

And grab the latest stable version. Twitter API Shortcodes was built using version 2.6.26, but it’s probably safe to
assume that any 2.6.x version of Smarty will do.

Once you’ve got the latest version, extract the zip, or tar.gz file, and copy the contents of the “libs” directory to
/wp-content/twitter-api-shortcodes/libs/smarty/

Update 0.0.3Alpha
From version 0.0.3Alpha of TAS onward Smarty 3.0.x is supported too, but be sure you’re running PHP5 before you try Smarty 3!

常見問題集

TODO

使用者評論

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

參與者及開發者

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

參與者

將〈Twitter API Shortcodes〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

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

變更記錄

0.0.3Alpha

  • The “Why Authenticate” dialog can be reopened after being dismissed
  • Updated to support Smarty 3.0.x

0.0.2Alpha

  • Changes to metadata files (like this readme) and getting a feel for the WordPress submission process

0.0.1Alpha

  • Initial Alpha release, seeking input from brave users