MyBB.de Forum

Normale Version: Spoiler MyCode (No Preload)
Du siehst gerade eine vereinfachte Darstellung unserer Inhalte. Normale Ansicht mit richtiger Formatierung.
Eine neue Erweiterung wurde veröffentlicht: Spoiler MyCode (No Preload)

Zitat:A simple but useful spoiler MyCode for MyBB.

Everything inside the spoiler tags arent shown before a button is clicked and is hidden after the button is clicked again.

Better yet is that everything inside the spoiler tags arent loaded before the button is clicked, and thus it will be perfect for showing off big images.

The spoiler tags style classes are "shead" and "sbody" so you can give them a style that matches your boards style by adding modifying your "global.css" file ("Admin CP>Templates & Style>Themes[theme you want to edit]>global.css").

Examples:
[spoiler]This isnt shown.[/spoiler]

It also allows users to customize the title of the spoiler:
[spoiler=Custom Title]This isnt shown.[/spoiler]
Some users prefer to write quotation marks around the title and that is fully supported as well:
[spoiler="Custom Title"]This isnt shown.[/spoiler]

Installation is simple due to the MyBB plugin system.
All you have to do is copy the file "spoiler.php" to the folder "inc\plugins" located in you MyBB directory.
Then go to your Administration Control Panel ("Admin CP>Configuration>Plugins>Spoiler MyCode") and activate it.
Hey,
ich hab das problem dass formatierungen (zeilenabstände) nicht ausgeführt werden, wie kann ich das ändern?
das problem ist hier zu sehen: http://www.gilde-kickass.de/Thread-Guild...393#pid393

edit: auch das image resize plugin wirkt im spoiler nicht..
Eigentlich sollte die Nachricht nach wie vor geparst werden...
ohne spoiler sieht es korrekt aus, mit spoiler leider nicht mehr....

edit: mit dem spoiler geht es: http://mods.mybb.com/view/myspoiler
der hat aber leider preload...
Nun, ist doch klar, wenn es kein Preload hat, wird der Inhalt nicht geparst und so auch keine Videos, Bilder etc. geladen (wurde mir klar c:). Wenn es Preload hat, wird der Inhalt geparst und somit auch BB-Codes angezeigt.

edit: smilies off.
und kann man das irgendwie ändern dass er die dann auch noch läd? oder geht das nur mit preload...wäre sehr ärgerlich wenn man da n paar große bilder drinne hat
(14.11.2011, 08:18)Simon schrieb: [ -> ]und kann man das irgendwie ändern dass er die dann auch noch läd? oder geht das nur mit preload...wäre sehr ärgerlich wenn man da n paar große bilder drinne hat
Höchstens mithilfe Javascript ein AJAX-Query durchführen, der den entsprechenden Inhalt an eine PHP-Datei versendet, die dann den geparsten Inhalt zurückschiebt und dann in den Div-Container schreibt. Wobei sich dann die Frage stellt, ob sich der Aufwand lohnt.
alles klar, also ist es eher sinnfrei den spoiler zu nehmen...schade