plugin:fortune
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
plugin:fortune [2009-10-06 11:57] – tag cleanup laynee | plugin:fortune [2024-03-01 12:49] (current) – old revision restored (2024-03-01 12:38) Aleksandr | ||
---|---|---|---|
Line 4: | Line 4: | ||
description: | description: | ||
author | author | ||
- | email : oiv-plugins@valjakko.net | + | email : otto@valjakko.net |
type : Syntax | type : Syntax | ||
lastupdate : 2005-08-01 | lastupdate : 2005-08-01 | ||
Line 11: | Line 11: | ||
conflicts | conflicts | ||
similar | similar | ||
- | tags : fortune | + | tags : |
+ | |||
+ | downloadurl: | ||
---- | ---- | ||
===== Description ===== | ===== Description ===== | ||
- | This [[plugins|plugin]] Show a Quote of the Day on your page. It should change every time the page is rendered again. | + | This plugin Show a Quote of the Day on your page. It should change every time the page is rendered again. |
The plugin uses code written by Henrik Aasted Sorensen, henrik@aasted.org Read more at http:// | The plugin uses code written by Henrik Aasted Sorensen, henrik@aasted.org Read more at http:// | ||
- | Fortune files can be found e.g. from [[http:// | + | Fortune files can be found e.g. from [[http:// |
===== Usage ===== | ===== Usage ===== | ||
Line 27: | Line 29: | ||
===== Installation ===== | ===== Installation ===== | ||
+ | Search and install the plugin using the [[plugin: | ||
- | Using Plugin Manager from [[http:// | ||
- | > Fixed link to correct archive. | ||
- | or | + | Download: [[http://koti.mbnet.fi/ |
- | + | ||
- | Create a new folder '' | + | |
Create a new folder '' | Create a new folder '' | ||
Line 53: | Line 52: | ||
* @author | * @author | ||
*/ | */ | ||
- | |||
- | if(!defined(' | ||
- | if(!defined(' | ||
- | require_once(DOKU_PLUGIN.' | ||
/** | /** | ||
Line 110: | Line 105: | ||
* Handle the match | * Handle the match | ||
*/ | */ | ||
- | function handle($match, | + | function handle($match, |
return $match; | return $match; | ||
} | } | ||
Line 117: | Line 112: | ||
* Create output | * Create output | ||
*/ | */ | ||
- | function render($mode, | + | function render($mode, |
if($mode == ' | if($mode == ' | ||
Line 326: | Line 321: | ||
} | } | ||
}// End of class | }// End of class | ||
- | ?> | ||
</ | </ | ||
Line 364: | Line 358: | ||
How does it update? | How does it update? | ||
+ | |||
+ | Ditto. | ||
+ | |||
+ | => one can deactivate cache with the directive | ||
+ | < | ||
+ | ~~NOCACHE~~ | ||
+ | </ |
plugin/fortune.1254823042.txt.gz · Last modified: 2009-10-06 11:57 by laynee