r4 - 2006-03-02 - 14:49:28 - SteveKosteckeYou are here: NTP >  TWiki Web > RandomQuotePlugin
NTP users are strongly urged to take immediate action to ensure that their NTP daemons are not susceptible to being used in distributed denial-of-service (DDoS) attacks. Please also take this opportunity to defeat denial-of-service attacks by implementing Ingress and Egress filtering through BCP38.

ntp-4.2.8p13 was released on 07 March 2019. It addresses 1 medium-severity security issue in ntpd, and provides 17 non-security bugfixes and 1 other improvements over 4.2.8p12.

Please see the NTP Security Notice for vulnerability and mitigation details.

Are you using Autokey in production? If so, please contact Harlan - he's got some questions for you.

RandomQuotePlugin

Retrieve a random quote from a specially formatted TWiki topic and display on a TWiki page

Syntax Rules

The %RANDOMQUOTE{...}% variable gets expanded to a random quote selected from a RandomQuotes page.

%RANDOMQUOTE%
Parameter
Sorted ascending
Explanation Default
format Format of one item. Can include variables in the table below. "\"$saying\"--$author"
quotes_file Alternate name for the random quotes topic RandomQuotes
web Name of the web where the random quotes topic is stored. Users

Format $variablesSorted ascending Description
$author Who said it?
$category What type of quote is this?
(could be used to match with Topic Classification)
$saying Text of the random quote

Examples

%RANDOMQUOTE{ web="Main" quotes_file="JunkQuotes" }%

%RANDOMQUOTE{ web="Main" quotes_file="JunkQuotes" }%

%RANDOMQUOTE{ web="Main" }%

%RANDOMQUOTE{ web="Main" }%

%RANDOMQUOTE{ format="<p><cite>$saying</cite></p><p align='right'>$author</p>" }%

%RANDOMQUOTE{ format="

$saying

$author

" }%

RandomQuotePlugin Global Settings

Plugin settings are stored as preferences variables. To reference a plugin setting write %<plugin>_<setting>%, i.e. %INTERWIKIPLUGIN_SHORTDESCRIPTION%

  • One line description, is shown in the TextFormattingRules topic:
    • Set SHORTDESCRIPTION = display a random quote

  • Debug plugin: (See output in data/debug.txt)
    • Set DEBUG = 0

Plugin Installation Instructions

Note: You do not need to install anything on the browser to use this plugin. The following instructions are for the administrator who installs the plugin on the server where TWiki is running.

  • Download the ZIP file from the Plugin web (see below)
  • Unzip RandomQuotePlugin.zip in your twiki installation directory. Content:
    File: Description:
    data/Users/RandomQuotes RandomQuotesPlugin data topic
    data/TWiki/RandomQuotePlugin.txt Plugin topic
    data/TWiki/RandomQuotePlugin.txt,v Plugin topic repository
    lib/TWiki/Plugins/RandomQuotePlugin.pm Plugin Perl module
  • Test if the installation was successful:
%RANDOMQUOTE{}%

Plugin Info

Plugin Author: JasonTromm
Plugin Version: 03 Jul 2003 (V0.001)
Change History:  
03 Jun 2003: Initial version
CPAN Dependencies: none
Other Dependencies: none
Perl Version: 5.005
Plugin Home: http://wiki.trommetter.com/TWiki/RandomQuotePlugin
Feedback: http://wiki.trommetter.com/TWiki/RandomQuotePluginDev

Related Topics: TWikiPreferences, TWikiPlugins

-- JasonTromm - 03 Jul 2003

Edit | WYSIWYG | Attach | Printable | Raw View | Backlinks: Web, All Webs | History: r4 < r3 < r2 < r1 | More topic actions
 
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding NTP? Send feedback
Note: Please contribute updates to this topic on TWiki.org at TWiki:TWiki.RandomQuotePlugin