2011-08-02, 12:20 AM
Before updating my forums my spoiler tag was working great, but after I update it stop working. Here is the code:
MyCode Pattern: (board one using Easy MyCodes by Yumi)
Regular Expression: (board two)
Replacement:
Another user from the spanish support forum (mybb-es.com) has the same problem as well..
MyCode Pattern: (board one using Easy MyCodes by Yumi)
[spoiler]{SOMETHING}[/spoiler]
Regular Expression: (board two)
\[spoiler\](.*?)\[/spoiler\]
Replacement:
<div class="spoiler" vling="top" align="center"><div class="spoiler_header"><button class="button spoilerb" onclick="javascript: if(parentNode.parentNode.getElementsByTagName('div')[1].style.display == 'block'){ parentNode.parentNode.getElementsByTagName('div')[1].style.display = 'none'; this.innerHTML='Mostrar contenido'; } else { parentNode.parentNode.getElementsByTagName('div')[1].style.display = 'block'; this.innerHTML='Ocultar contenido'; }">Mostrar contenido</button>Spoiler:</div><div class="spoiler_content">$1</div></div>
Another user from the spanish support forum (mybb-es.com) has the same problem as well..