waikay.net

rambles of an avid procrastinator
"Why do today what you can do tomorrow?"

Archive for March 2nd, 2005

Plugin: Spoiler

Wednesday, 2 March 2005, 3:06 am, me

Spoiler plugin to hide spoilers or just to make your post look neat.

Update: 1.6.x and beyond
]V[orlock Zernebock has updated my plugin to work with the new visual editor, and has brought it to version 1.6.2. Get the updated plugin from his site

Update: Version 1.6
- Changed tag to work with WP 2.0 WYSIWYG editor.
- Backward compatible with old tags.

Features:
- Easy customisation of text for each different spoiler.
- Displays a simple link instead of a button.
- Less code per tag use.
- Supports multiple spoiler tags on the same page.

Installation: Place this file in your plugins directory and activate it in your admin panel.

Usuage: Enclose spoiler text between <spoiler 'show text' 'hide text'> </spoiler> in either blog entries or comments. Show and Hide text are optional.

Example:
<spoiler 'Show me the text' 'Hide it from me'>
Example of a spoiler text which readers might not want to read.
</spoiler>

For WP 2.0 users using the visual editor, use the [ ] brackets instead of < >

[spoiler 'Show me the text' 'Hide it from me']
Example of a spoiler text which readers might not want to read.
[/spoiler]

Download version 1.6 plugin here.

Download enhanced version from here

Filed under: plugins

Creative Commons License
Except stated otherwise, content of this site is
licensed under a Creative Commons License.