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.
WordPress – Plugin “SimpleTicker”
(c) 2013 Michael Bartel, MIT/X11-license
– Improvements to the Android App
– Android App improvments
– Android App and Bug fixes
– added RSS Feed
– added Template-Engine and XML API
– added JSON API
– added auto-hide
– first version V3.1
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.
Example for ticker 1 (with id 1): [simpleticker id=1]
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.
All APIs are handled with GET paramters. The ‘action’ parameter specifys which function you want to call.
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.