MyBB.de Forum
Spoiler BBCode - Druckversion

+- MyBB.de Forum (https://www.mybb.de/forum)
+-- Forum: Anpassungen (https://www.mybb.de/forum/forum-47.html)
+--- Forum: Plugin-Veröffentlichungen und -Support (https://www.mybb.de/forum/forum-82.html)
+--- Thema: Spoiler BBCode (/thread-19621.html)



Spoiler BBCode - MyBB.de Bot - 28.06.2007

Eine neue Erweiterung wurde veröffentlicht: Spoiler BBCode

Zitat:I needed a simple way of having spoilers that supported hiding both text, and graphics.. However, I could never seem to find anything that fit that..

So I began digging through, and a site of mine, (Which currently runs IPB) has a pretty neat custom BBCode that I added, so I basically ported it to MyBB as a plugin. All you need to do is upload spoiler.php to your inc/plugins directory and activate it. Then the new BBCode will be available to you.

There are two versions for this. A simple

[spoiler]This is a spoiler[/spoiler]

will create something like in the attached images.

However,

[spoiler=CHEESE!]This is a spoiler[/spoiler]

Will make the word "Spoiler" in the header change to what you have written there. Smile

Very useful. Wink

Update, since MyBB 1.4 changed quotes to <blockquote>, We need to add a few new CSS selectors to your theme's global.css file.

Code:
.spoiler_header {
    background: #FFF;
    border: 1px solid #CCC;
    padding: 4px;
    margin: 4px 0 0 0;
    color: #000;
}

.spoiler_body {
    background: FFF;
    padding: 4px;
    border: 1px solid #CCC;
    border-top: 0;
    color: #000;
    margin: 0 0 4px 0;
}



RE: Spoiler BBCode 1.2 - niGhtY - 04.09.2008

Kann ich eigentlich diesen Spoiler-Code in der version 1.4.1 benutzen???


RE: Spoiler BBCode 1.2 - StefanT - 06.09.2008

Probiere es aus. Wink


RE: Spoiler BBCode 1.2 - niGhtY - 07.09.2008

geht so oder so nicht zum downloaden merk ich grad


RE: Spoiler BBCode 1.6 - Flatron - 24.03.2011

Wie kann Ich das in den editor einbauen als button?


RE: Spoiler BBCode 1.6 - Jockl - 24.03.2011

siehe: Wie füge ich einen Button für eigenen MyCode in den Editor ein?