Title: AJAXed Twitter for WordPress
Author: alexh
Published: <strong>2010 年 1 月 29 日</strong>
Last modified: 2010 年 6 月 7 日

---

搜尋外掛

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

![](https://s.w.org/plugins/geopattern-icon/ajaxed-twitter-for-wordpress.svg)

# AJAXed Twitter for WordPress

 由 [alexh](https://profiles.wordpress.org/alexh/) 開發

[下載](https://downloads.wordpress.org/plugin/ajaxed-twitter-for-wordpress.0.5.1.zip)

 * [詳細資料](https://tw.wordpress.org/plugins/ajaxed-twitter-for-wordpress/#description)
 * [使用者評論](https://tw.wordpress.org/plugins/ajaxed-twitter-for-wordpress/#reviews)
 *  [安裝方式](https://tw.wordpress.org/plugins/ajaxed-twitter-for-wordpress/#installation)
 * [開發資訊](https://tw.wordpress.org/plugins/ajaxed-twitter-for-wordpress/#developers)

 [技術支援](https://wordpress.org/support/plugin/ajaxed-twitter-for-wordpress/)

## 外掛說明

This plugin is based on [“Twitter for WordPress”](https://wordpress.org/extend/plugins/twitter-for-wordpress/)
1.9.7 by [Ricardo González](http://rick.jinlabs.com/).

It supports [MooTools](http://mootools.net/) as well as jQuery which comes with 
WordPress and can be used as a widget.

## 安裝方式

You can use this plugin as a widget or add it manually to your theme. In widget-
mode it depends on jQuery (the one that comes with WordPress is sufficient).

#### Widget

Use the management functionality for widgets provided by WordPress (simply drag 
and drop, edit the preferences, save).

#### Manual Installation

First of all tell the plugin (in wp_config.php) which framework to use:

    ```
    define('AJAXED_TWITTER_FRAMEWORK', 'mootools');
    ```

You can also use ‘both’ which will allow you to add a widget and the MooTools version.

I did not include a release of MooTools, so you will have to add a script tag _before
wp\_head();_ like this (and of course provide that script there):

    ```
    <script type="text/javascript" src="<?php bloginfo('stylesheet_directory'); ?>/scripts/mootools-1.2.4-core-yc.js"></script>
    ```

Then you need a PHP-file that can be called by the JavaScript part, for example 
you could put a file named “twitter.php” with the following content in your theme
folder. This is only an example and you can do whatever you like to get the tweets.

    ```
    if (!defined('DB_NAME')) {
        require_once("../../../wp-config.php");
    }

    echo AJAXedTwitter::messages(array(
        'username' => 'username'
    ));
    ```

The Twitter-class is easy to configure (and already enqueued by the plugin).

    ```
    var twitter = new Twitter('tweets', {
        url: '/blog/wp-content/themes/yourtheme/twitter.php',
        retries: 2,
        animate: true
    });
    ```

In this example the element ‘tweets’ (that could be e.g. in your sidebar) is replaced
by a public timeline after the page is loaded.

Additionally to the CSS classes provided by “Twitter for WordPress” this plugins
provides first/last for list items.

For more details (options, configuration) visit [the plugin hompage](http://derhofbauer.at/blog/ajaxed-twitter-plugin-for-wordpress/).

## 使用者評論

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

## 參與者及開發者

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

參與者

 *   [ alexh ](https://profiles.wordpress.org/alexh/)

[將〈AJAXed Twitter for WordPress〉外掛本地化為台灣繁體中文版](https://translate.wordpress.org/projects/wp-plugins/ajaxed-twitter-for-wordpress)

### 對開發相關資訊感興趣？

任何人均可[瀏覽程式碼](https://plugins.trac.wordpress.org/browser/ajaxed-twitter-for-wordpress/)、
查看 [SVN 存放庫](https://plugins.svn.wordpress.org/ajaxed-twitter-for-wordpress/)，
或透過 [RSS](https://plugins.trac.wordpress.org/log/ajaxed-twitter-for-wordpress/?limit=100&mode=stop_on_copy&format=rss)
訂閱[開發記錄](https://plugins.trac.wordpress.org/log/ajaxed-twitter-for-wordpress/)。

## 變更記錄

#### 0.5.1

 * Escape single quotes in passed options.
 * Unset not needed options.

#### 0.5

 * Bugfixed custom title
 * Implemented WP 2.8 Widget API (allows mupltiple widgets now)
 * Rewrote to allow multiple instances, even MooTools and jQuery

#### 0.4

 * Widget does not depend on MooTools any more or require editing of the theme

#### 0.3.1

 * Fixed problem with forgotten timeout definition

#### 0.3

 * Implemented own copy of fetch_rss() for seperated cache handling
 * Added option “cache expiry” (cache-age), defaulting to half an hour

## 中繼資料

 *  版本 **0.5.1**
 *  最後更新 **16 年前**
 *  啟用安裝數 **10+**
 *  WordPress 版本需求 ** 2.8 或更新版本 **
 *  已測試相容的 WordPress 版本 **3.0.5**
 *  語言
 * [English (US)](https://wordpress.org/plugins/ajaxed-twitter-for-wordpress/)
 * 標籤:
 * [ajax](https://tw.wordpress.org/plugins/tags/ajax/)[twitter](https://tw.wordpress.org/plugins/tags/twitter/)
 *  [進階檢視](https://tw.wordpress.org/plugins/ajaxed-twitter-for-wordpress/advanced/)

## 評分

這個項目尚無任何評論記錄。

[撰寫評分](https://wordpress.org/support/plugin/ajaxed-twitter-for-wordpress/reviews/#new-post)

[查看全部使用者評論](https://wordpress.org/support/plugin/ajaxed-twitter-for-wordpress/reviews/)

## 參與者

 *   [ alexh ](https://profiles.wordpress.org/alexh/)

## 技術支援

使用者可在技術支援論壇提出意見反應或使用問題。

 [檢視技術支援論壇](https://wordpress.org/support/plugin/ajaxed-twitter-for-wordpress/)