Display a random quotation and update it every few seconds with a new one.
Compatible with DokuWiki
Greebo
This plugin reads JSON datafiles and displays a random quotation.
The quotation is refreshed every user configurable seconds with a new one using an AJAX request.
Click on quotation to copy it to the clipboard.
Download and install the plugin using the Extension Manager. Refer to Plugins on how to install plugins manually.
Just reference a JSON textfile in the correct format with the following syntax:
{{jquotes>namespace:cookiefile.json}}
You may specify the interval for changing the cookie in seconds:
{{jquotes>namespace:cookiefile.json?15}}
The default is 30 seconds - minimum is 5 seconds.
I chose this file format as it is fully compatible with Android Quotes Widget, which I like to use.
The quotations file needs to be a JSON textfile (ex. myquotes.json) uploaded through the mediamanager.
Here is an example:
{"quotes": [ { "quote":"Quote1" ,"author":"Author1" }, { "quote":"Quote2" ,"author":"Author2" } ]}
Some populated example files can be found at: Quotes-Widget-Data-Files