MyBB.de Forum

Normale Version: Haz Spoiler code
Du siehst gerade eine vereinfachte Darstellung unserer Inhalte. Normale Ansicht mit richtiger Formatierung.
Eine neue Erweiterung wurde veröffentlicht: Haz Spoiler code

Zitat:install: upload the single file to /inc/plugins and activate it in your AdminCP.

Code:
Code:
[spoiler=(title)]content[/spoiler]
After activate this plugin, using above code will help you hiding the content.
this tag is nestable, and is using JQuery to toggle its display style. 
(29.08.2015, 05:25)MyBB.de Bot schrieb: [ -> ]Eine neue Erweiterung wurde veröffentlicht: Haz Spoiler code

Zitat:install: upload the single file to /inc/plugins and activate it in your AdminCP.

Code:
Code:
[spoiler=(title)]content[/spoiler]

After activate this plugin, using above code will help you hiding the content.
this tag is nestable, and is using JQuery to toggle its display style. 


By using äüöÄÜÖ in title this pluging isnt working!!!
Suche in der Plugin Datei nach

PHP-Code:
$pattern = array("#\[spoiler=(?:"|\"|')?([a-zA-Z0-9!:\#\.\? \',\-\(\)]*?)[\"']?(?:"|\"|')?\](.*?)\[\/spoiler\](\r\n?|\n?)#si""#\[spoiler\](.*?)\[\/spoiler\](\r\n?|\n?)#si",); 

ändern zu

PHP-Code:
$pattern = array("#\[spoiler=(?:"|\"|')?([a-zA-Z0-9_äÄöÖüÜß!:\#\.\? \',\-\(\)]*?)[\"']?(?:"|\"|')?\](.*?)\[\/spoiler\](\r\n?|\n?)#si""#\[spoiler\](.*?)\[\/spoiler\](\r\n?|\n?)#si",); 

Hoffe das hilft dir weiter.