[WordPress] 外掛分享: SimpleTicker

前言介紹

  • 這款 WordPress 外掛「SimpleTicker」是 2011-09-13 上架。
  • 目前有 10 個安裝啟用數。
  • 上一次更新是 2013-11-20,距離現在已有 4183 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
  • 外掛最低要求 WordPress 2.6 以上版本才可以安裝。
  • 有 1 人給過評分。
  • 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。

外掛協作開發者

michaelbartel |

外掛標籤

news | text | ticker | newsticker | textticker |

內容簡介

一個簡單的 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”屬性。

原文外掛簡介

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.

各版本下載點

  • 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
  • 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「SimpleTicker」來進行安裝。

(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。


0.4 | 0.5 | 0.6 | 0.7 | 0.8 | 0.9 | 0.95 | trunk |

延伸相關外掛(你可能也想知道)

  • String locator 》當你在開發主題和外掛時,你經常會注意到某些文字被硬編碼在文件中,你需要對其進行修改,但你不知道該主題或外掛的名稱,更不知道要查找哪個文件。, 你可以...。
  • Enhanced Text Widget 》在您的免費假網站上試試吧:點擊此處 => https://tastewp.com/plugins/enhanced-text-widget (這個技巧可用於 WP 庫中的所有外掛,只需將 URL 中的「word...。
  • Texty – SMS Notification for WordPress, WooCommerce, Dokan and more 》Texty是一個輕量級的WordPress簡訊通知外掛程式。, , 隨著您收件匣收到眾多電子郵件,往往會讓最重要的事情掉到後頭。在手機、WhatsApp或Telegram收到簡訊通...。
  • Randomize 》Randomize 外掛可以顯示隨機的文字,您可以在管理後台按類別輸入文字、引文和 HTML 代碼。您可以使用小工具、shortcode 或模板標籤顯示網站上的隨機內容。, ...。
  • Custom Shortcodes 》使用插入短碼 [custom name=”field-name” value=”field-value“] 或 HTML 條件注釋
  • Advanced Text Widget 》Advanced Text Widget 是一個文字小工具,允許您執行原始 PHP 代碼,並指定它在哪些頁面上顯示。它有 10 種預設的可見條件。您也可以編輯和/或添加自己的可見...。
  • Text Replace 》這個外掛讓你輕鬆地定義出應用於文章中的文字或 HTML,以替代實際出現在文章中的字詞或片語。這是一個方便的技巧,可用於創建常見、冗長或經常更改的文本/HTM...。
  • WP Typograph Lite 》這個外掛WP Typograph Lite適用於大多數俄語博客,旨在根據俄語印刷標準自動格式化文本。它處理所有主要內容塊-標題、文章和頁面文本、評論。格式化是在頁面...。
  • Random Text 》RandomText 是一個方便的 WordPress 外掛,可以讓你保存、編輯和刪除分類文本,並通過小工具將隨機/旋轉的文本按類別注入側邊欄或通過模板標籤注入頁面正文。...。
  • Random Content 》此外掛允許您使用縮略語或小工具在您的網站任何位置顯示隨機內容。您可以將您的隨機內容分組,讓您在網站中的多個位置顯示不同的內容。, 透過自訂的文章類型...。
  • Classic Text Widget 》此外掛可讓您使用經典 WordPress 文字小工具,而不需要使用 TinyMCE 編輯器。其程式碼基於 WordPress Ver. 4.7.5。, 功能與版本 4.8 之前的預設文本小工具完...。
  • Special Text Boxes 》此外掛會新增一個小的樣式表檔案和短代碼到部落格中,以顏色方塊來突顯文章中的某些部分。提供了7種樣式,如警告、警示、資訊和下載等。 , 如果您需要探索此...。
  • Gettext override translations 》此外掛可讓您在管理面板中覆蓋預設文字。, 原本是為覆蓋 Woocommerce 的文字而建立,但也可作用於 WordPress Core 及其他外掛所添加的文字。, , 它將會翻譯所...。
  • Generate Dummy Posts 》使用 Generate Dummy Posts 外掛程式,您可以輕鬆地在一個按鈕點擊中創建虛擬文章。開發人員和設計師通常使用虛擬文本來創建或開發部落格式 WordPress 網站,...。
  • CopyRightPro 》CopyRightPro是一個外掛,可以防止從您的部落格複製文字和圖像,如果您安裝這個外掛,您的WordPress內容將會受到保護。, CopyRightPro是由Wp-CopyRightPro.Co...。

文章
Filter
Apply Filters
Mastodon