[WordPress] 外掛分享: SimpleTicker

首頁外掛目錄 › SimpleTicker
10+
安裝啟用
☆☆☆☆
1/5 分(1 則評價)
4502 天前
最後更新
問題解決
WordPress 2.6+ v0.9 上架:2011-09-13

內容簡介

一個簡單的 WordPress 外掛程式,可支援多條滾動條。您可以在此指定更新間隔時間,以便客戶端能從伺服器接收最新的信息,該請求將包含直至最後一次更新時所發佈的新信息。您還可以指定每條信息保留在屏幕中的時間長短以及客戶端淡入淡出的信息量。每條信息都以時間戳記的方式儲存,您可以指示滾動條只顯示指定時間內所發佈的信息。如果沒有信息要顯示,那麼滾動條會自動隱藏。

每個滾動條都有自己的 RSS 訂閱源,您可以通過 ID 或名稱來接收此資訊。

如果您要從 iPhone 或 Android 應用程式等其他應用程式中使用 SimpleTicker 的數據,則可以通過基於 JSON 的 API 獲取所有滾動條和信息資訊。您還可以使用 JSON API 添加和刪除消息。如果您要添加或刪除消息,則應用程式需要為每個滾動條都提供密碼。

版權

WordPress - Plugin “SimpleTicker”
(c) 2013 Michael Bartel,MIT/X11 許可證
電子郵件:[email protected]

更新歷史

版本 0.95
- 重構

版本 0.9
- Bug 修正

版本 0.8
- 改進 Android 應用程式

版本 0.7
- Android 應用程式改進

版本 0.6
- Android 應用程式和 Bug 修正

版本 0.5
- 添加 RSS 訂閱源

版本 0.4
- 添加模板引擎和 XML API

版本 0.3
- 添加 JSON API

版本 0.2
- 添加自動隱藏

版本 0.1
- 第一個版本 V3.1

使用滾動條

要在 WordPress 頁面或文章中使用滾動條,複製以下文字並在頁面中粘貼。然後使用您的滾動條 ID 替換#id#。

[simpleticker id=#id#]

例如,對於 ID 為 1 的滾動條,請使用以下示例:[simpleticker id=1]

RSS 訂閱源

當您從插件資料夾中調用 SimpleTicker.php(網址)並附加“? action = rssFeed&id = 1”時,您將接收到特定滾動條的 RSS 訂閱源內容。您可以使用 name = Tickername 替換 id = 1。

API

所有 API 都使用 GET 參數進行處理。 “action” 參數會指定您要調用的功能。

JSON API

您可以使用數據庫中以名稱為基礎的滾動條信息而非使用滾動條 ID,JSON API 提供以下功能:

jsonGetTickerList - 返回包含滾動條 ID 和名稱的所有可用滾動條清單。
jsonGetTickerMessages - 返回特定滾動條的最後 50 條信息列表。您必須通過提供“id”參數來指定滾動條ID。列表包含消息 ID、消息本身以及創建時間戳記。
jsonManageTicker - 您需要一個密碼來呼叫此操作。您可以在 Get 參數 (“data”) 中使用 BASE64 編碼的加密 JSON 字符串提供其他參數。您必須設置“id”參數以定義滾動條。JSON 字符串包含一個“action”屬性,可為“addMessage”或“removeMessage”,“addMessage” 採取一個附加的“message”屬性以包含新訊息,“removeMessage” 則需要一個“id”屬性。

外掛標籤

開發者團隊

⬇ 下載最新版 (v0.9) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「SimpleTicker」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

A simple ticker plugin for wordpress. It supports multiple tickers. You can define an update interval
in minutes in which the client updates it’s message list from the server. This update request includes
new messages, which have been posted until the last update. You can also specify the amount of messages that
the client fades through and the time each message stays on the screen. Each message is stored with an
creation timestamp. You can tell the ticker only to show messages not older than a defined number of minutes.
If there are no messages to display, then the ticker turns itself invisible.
Every ticker has it’s own RSS Feed, which can be received by either given it’s ID or name.
If you want to use the SimpleTicker data from an other application such as an iPhone or Android App, you can
get all ticker data and messages via an JSON based API. It is also possible to add and delete messages
with the JSON API. Your application will need a password for each ticker, if it want’s to add or delete messages.
Copyright
WordPress – Plugin “SimpleTicker”
(c) 2013 Michael Bartel, MIT/X11-license
eMail: [email protected]
History
Version 0.95
– Refactoring
Version 0.9
– Bugfixing
Version 0.8
– Improvements to the Android App
Version 0.7
– Android App improvments
Version 0.6
– Android App and Bug fixes
Version 0.5
– added RSS Feed
Version 0.4
– added Template-Engine and XML API
Version 0.3
– added JSON API
Version 0.2
– added auto-hide
Version 0.1
– first version V3.1
Use Ticker
To use the ticker on your wordpress pages or articles copy the following text into the page. After that replace #id# with the id of your ticker.
[simpleticker id=#id#]
Example for ticker 1 (with id 1): [simpleticker id=1]
RSS Feed
You will receive the content of the RSS Feed for a specific ticker when you call SimpleTicker.php from your plugin folder (URL) and append ‘?action=rssFeed&id=1’. Instead of id=1 you can use name=Tickername.
APIs
All APIs are handled with GET paramters. The ‘action’ parameter specifys which function you want to call.
JSON API
Instead of the using the id parameter with the tickers ID, you can use the name parameter with it’s name. The JSON API provides the following functionalities:

jsonGetTickerList – Returns a full list of all available tickers containing the tickers id and name.
jsonGetTickerMessages – Returns a list with the last 50 messages of a ticker. You have to specify the ticker by giving it’s ID in the parameter ‘id’. The list contains the message id, the message itself and the createdOn timestamp.
jsonManageTicker – You need a password to call the action. All further parameters are given in a BASE64 encoded encrypted JSON string provided as GET parameter named ‘data’. You have to set the ‘id’ parameter as above to define a ticker. The JSON string contains an action attribute which can either be ‘addMessage’ or ‘removeMessage’. The ‘addMessage’ actions takes an additional ‘message’ attribute containing the new message and the ‘removeMessage’ action takes an ‘id’ attribute.

延伸相關外掛

文章
Filter
Apply Filters
Mastodon