waikay.net

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

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

Trackbacks

Trackback URL: http://waikay.net/2005/03/plugin-spoiler/trackback

24 Jan 2006, 11:49 pm

[...] the spoiler tag is by: waikay.net [...]

3 Apr 2006, 11:03 am

[...] ajax-spoiler를 포기하고 Simple Spoiler와 Lightbox JS version 2.0로 업데이트하니 둘 모두 완벽하게 돌아가는군 그런데 문제가 뭐였는지 아직도 모르겠다 [...]

26 Apr 2006, 10:05 pm

[...] Spoiler plugins  [...]

4 May 2006, 11:31 am

[...] I’m using the Simple Spoiler plugin by Leong Wai Kai for the ’show/hide text version’ function. It was just the 1st plugin at wp-plugins.net that suited my needs, so I tried it. [...]

18 Apr 2007, 5:03 am

[...] A regular reader of this blog is so fanatical about avoiding “spoilers” that he will not only avoid reviews but won’t read the blurb on DVDs or books (he’ll be squinting at this post through his fingers - don’t worry, I’m using Leong Wai Kai’s excellent Simple Spoiler). [...]

24 Jun 2007, 1:54 am

[...] plugin is based on Simple Spoiler. Show or hide contents wrapped by spoiler [...]

7 Jul 2007, 6:35 pm

[...] Visit [...]

23 Sep 2007, 11:08 am

[...] Readers In preparation for WP 2.3, and future iterations of Wordpress, I’ve been trying to cut out as many modifications to the core files as possible. The last major hack in the core files right now (most current hacks are to the WP Content folder) is the kses.php change to enable the Simple Spoiler plugin. [...]

Comments

Samsynn says,
24 Jan 2006, 11:56 pm

I like the spoiler plugin - but it keeps disappearing every time I save. Are there any other steps I need to take?

Every post previews OK, but once I publish, it disappears. If I try to edit the HTML for the post, it will not save with the spoiler link either.

Ideas?

me says,
25 Jan 2006, 12:08 am

There’s nothing else you need to do. It works for Wordpress 1.5.2 and has not been tested for Wordpress 2.

Try turning off other plugins and see as they might be conflicting.

082net says,
11 Mar 2006, 7:10 am

Hi Waikay, thanks for this nice plugin

sometimes ago I made a modified version of your plugin and named it ‘ajax spoiler’

it’s based on your code and work with effects.js script
you can check it here

have a nice day,
young-min

chizo says,
15 Aug 2006, 10:09 pm

Just get this error :

Warning: Cannot modify header information - headers already sent by (output started at /www/htdocs/~console/wp-content/plugins/s-spoiler.php:78) in /www/htdocs/~console/wp-includes/pluggable-functions.php on line 272

What could be wrong ?

mir says,
30 Nov 2006, 3:08 pm

Chizo, try deleting any spaces after the ?> at the end of the plugin php file.

1 Aug 2007, 10:50 am

HELP! I can’t get the plug in to read, I saved it as a php, and uploaded it, but it won’t show up on my plug in panel in the admin!

Eric

1 Aug 2007, 10:53 am

Ok, now it reads, but I get this error.

Warning: Cannot modify header information - headers already sent by (output started at /home/content/e/r/i/ericnovak/html/wp-content/plugins/s-spoiler.php:89) in /home/content/e/r/i/ericnovak/html/wp-includes/pluggable.php on line 275

chris says,
13 Aug 2007, 8:16 pm

i also geht this error msg. Sombody has an idea?

regards

chris

xeno1887 says,
23 Aug 2007, 3:45 pm

Hello,

can i have Spoiler plugin Version 1.5 please ?

Thanks

xeno1887 says,
23 Aug 2007, 4:13 pm

sorry, i ve forget to done my mail

it’s my pseudo@hotmail.com

thanks

Mazen says,
11 Dec 2007, 6:24 am

hey Mate,

I been trying to download the Enhanced Simple Spoiler V1.6 from the link provided, but I keep getting a hidden.php page.

Can you please help / provide?

Thanks.

Cheers.

RSS feed for comments on this post.

(required)
(required. will not be published)

« Plugin: Shoutbox Back to Main Dumping Ground »
Creative Commons License
Except stated otherwise, content of this site is
licensed under a Creative Commons License.