Table of Contents

xfortune Plugin

Compatible with DokuWiki

Lemming, Anteater

plugin Display a random quote and update it every few seconds with a new one

Last updated on
2017-04-20
Provides
Syntax
Repository
Source

This extension has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues.

Similar to fortune, jquotes, snmplive, tuxquote

Tagged with ajax, quotes, random

This plugin is able to read datafiles used by the popular Unix tool fortune and to display a random one. It then replaces the displayed one every few seconds with a new one using an AJAX request.

Download

Download and install the plugin using the Extension Manager. Refer to Plugins on how to install plugins manually.

Changes

Usage

Just reference a textfile with the correct format with the following syntax:

{{xfortune>namespace:cookiefile.txt}}

You may specify the interval for changing the cookie in seconds:

{{xfortune>namespace:cookiefile.txt?15}}

The default is 30 seconds.

Input files

The cookie file needs to be a text file 1) where each cookie is separated by a % char on it's own line. You need to upload those files through the mediamanager.

Here is an example:

%
My first cookie
%
Another cookie
with multiple lines
%
Third cookie
%

Known Shortcomings

1)
the uncompiled source files for fortune, not the binary ones created by strfile