Tiny Spoiler
Kleines Plugin für Inhalte die nicht sofort sichtbar sein sollen. Zum Beispiel Spoiler oder Frage-Antwort-Spielchen.
Tiny Spoiler 0.2
Contributors: Tom BraiderDonate link: www.unicef.org
Tags: spoiler, secret, post
Requires at least: 2.5
Tested up to: 4.7
Stable tag: 0.2
[spoiler name="top secret"]shows/hides this text[/spoiler]
Description
- shows/hides text in spoiler shortcode
- name of spoiler area can be given
- only one little button [+] or [-]
Installation
- unzip plugin directory into the
/wp-content/plugins/
directory - activate the plugin through the
Plugins
menu in WordPress - insert
[spoiler name="top secret"]...[/spoiler]
in your post or page
Frequently Asked Questions
Need Help? Find Bug?
read and write comments on plugin page
Who can i change the style?
You can change the Stylesheet in you own theme style.css.
.spoiler
is the outer border/area..spoiler legend
is the title..spoiler legend input
is the button..spoiler div
is the content area.Screenshots
Arbitrary section
Filelist
- spoiler.php
Version 0.2
new: several spoiler can have same name
Version 0.1
- first release
created by Readme Parser
Nice little plugin, thanks!
I use it on our members page, and I have the "BlueSky" theme with a coloured background.
The button & "name"-text have a white background.
I have no .spoiler CSS, and as CSS default is transparent it should be transparent, right? Or am I missing something?
A tip: A good use (my use
) of the plugin is to hide what has been done already.
We (a choir) have a list of activities, and as they get done I put them away with the spoiler, so you always have the next first.
Before I used to gray them out instead, but this is better!
Too quick there, sorry
I found you had some CSS in the php, so i just edited away the white background of the ".spoiler legend".
Perhaps that also would be a better default, as CSS background defaults to transparent?
I use white background for the legend and the content of the spoiler. But transparent background is ok too.
Hey, ich find das plugin auch sehr gut. Genau nach sowas habe ich gesucht. Allerdings würde ich es gerne so ändern, dass sich der inhalt öffnet, indem man auf die überschrift klickt. Ist dies möglich?
Mit der aktuellen Version geht das nicht, aber man kann ja mal was basteln.
[...] Eklenti Ana Sayfası Geri Dön Yorumlar: 0 Okunma: 1 defa Benzer Yazılar:WordPress için Simple Spoiler Enhanced eklentisiWordPress için Advanced Spoiler eklentisiWordPress için Wp-Note eklentisiWordPress için Dewplayer eklentisiWordPress için MP3 Player Plugin eklentisi Yazıyı Paylaş: [...]
Hallo Tom.
Danke für Dein Plugin. Eine Anmerkung habe ich allerdings: Wenn im [spoiler]...[/spoiler] andere Shortcodes verwendet werden, so werden diese nicht geparsed. Das ist natürlich recht ärgerlich, wenn man sie verwenden will.
Abhilfe schafft da, wenn man in Deiner function replace_spoiler_tag() statt
"<div..." . $content . "...</div>"
besser
"<div..." . do_shortcode($content) . "...</div>"
verwendet. Eventuell wäre es hilfreich, diese Änderung in die nächste Version (so es denn eine gibt) einfließen zu lassen.
Dankeschön!
Hallo mad,
Wird mal Zeit, dass es das Plugin auch offiziell update.
du hast recht. Ich habe es in meiner Version sogar schon drin.
Just letting you know of this: https://github.com/master5o1/wordpress-tiny-spoiler
Hello!
Thank you for this plugin!
Today I had some problems, displaying comments in my child theme. After hours of investigation, I found strange behaivor in wp-includes/comment-template.php on line 913:
$include = apply_filters('comments_template', STYLESHEETPATH . $file );
No matter what is in $file or STYLESHEETPATH variables, $include will be empty after applying this hook filter.
I started to look who is using this hook and tiny spoiler was the only one. If I deactivate tiny spoiler, everything works fine.
Any ideas about how to fix it? Thank you!
Tiny Spoiler works with a shortcode and don't use any hook. Works for me as you can see above.
Very nice plugin, thanks!
My only open wish is to make direct links to the content of one spoiler and then have it opened already. Something like the id="xyz" and refering link "a href="xy.org#xyz" - is this possible with some code? This would be great, do you have any idea how to manage this? Thanks!