Display a randomly selected quote from a text file database.
| General Plugin info | |
|---|---|
| Author: | Aspirant |
| Current Version: | 1.1 |
| Code: | NP_RandomQuote_code |
I have a collection of quotes that I find inspirational that I have been collecting for many years. I wanted a way to display them on my blog. Since I already have the database, I wanted a plugin that would use the format I have been using in other software for years. NP_RandomQuote does this.
The quote files must be in the format demonstrated below. There may be any number of quote files, and the files may contain any number of entries. Put them in the content directory configured in the options.
<p>It's choice - not chance - that determines your destiny.</p> <p>- Jean Nidetch</p> $END <p>Character - the willingness to accept responsibility for one's own life - is the source from which self respect springs.</p> <p>- Joan Didion, <ul>Slouching Towards Bethlehem</ul></p> $END
<%RandomQuote( file, time to live )%> file: filename with quotes (example: quotes.txt) time to live: time after which the displayed quote is rotated in milliseconds (this was not documented, made up from looking at the code - Armon)
There are three configurable options:
These options may be configured from the plugin management screen.
NP_RandomQuote version 0.1 works with Nucleus CMS 3.31 - 2007-10-28 Armon