Toms Welt

/wp-plugins/tiny-spoiler

Tiny Spoiler

67 Kommentare | Kommentar schreiben

Kleines Plugin für Inhalte die nicht sofort sichtbar sein sollen. Zum Beispiel Spoiler oder Frage-Antwort-Spielchen.

top secret
shows/hides this text


spoiler 2
shows/hides another text


Download bei WordPress

Tiny Spoiler 0.2

Contributors: Tom Braider
Donate link: www.unicef.org
Tags: spoiler, secret, post
Requires at least: 2.5
Tested up to: 2.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

  1. unzip plugin directory into the /wp-content/plugins/ directory
  2. activate the plugin through the Plugins menu in WordPress
  3. 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


  1. 1. closed and open spoiler

Arbitrary section


Filelist
  • spoiler.php
Changelog
Version 0.2
new: several spoiler can have same name
Version 0.1
  • first release
created by Readme Parser

RSS-Feed 67 Kommentare

  1. Johan Johan sagt:

    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!

  2. Andreas Andreas sagt:

    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?

  3. [...] 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ş: [...]

  4. mad mad sagt:

    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!

  5. Ajay Ajay sagt:

    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!

Seiten: « 1 2 3 4

Kommentar schreiben




:mrgreen:  :lol:  :)  ;)  8-)  :-|  :O  :cry:  :sad:  :liebhab:  :-x  :-?  :P  :roll:  :arrow:  :idea:  :schwitz:  :thumbup:  :thumbsup:  :thumbdown:  :facepalm:  :eis:  :gruebel:  :!: