2010-06-04, 06:07 AM
my spoiler code and others spoilers codes dont work in my forum mybb 1.6
i tested that code in the "Test Value" and that code work, but in my posts dont work :'(
help plz
\[spoiler\](.*?)\[/spoiler\]
<div style="padding: 3px; background-color: #FFFFFF; border: 1px solid #d8d8d8; font-size: 1em;">
<div style="border-bottom: 1px solid #CCCCCC; margin-bottom: 3px; font-size: 0.8em; font-weight: bold; display: block;">
<span
onClick="
if (this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display != '')
{ this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = ''; this.innerHTML = '<b>Spoiler: </b><a href=\'#\' onClick=\'return false;\'>Ocultar</a>'; }
else
{ this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.innerHTML = '<b>Spoiler: </b><a href=\'#\' onClick=\'return false;\'>Mostrar</a>'; }
" />
<b>Spoiler:
</b>
<a href="#" onClick="return false;">
Mostrar
</a>
</span>
</div>
<div class="quotecontent">
<div style="display: none;">
$1
</div>
</div>
</div>
i tested that code in the "Test Value" and that code work, but in my posts dont work :'(
help plz
\[spoiler\](.*?)\[/spoiler\]
<div style="padding: 3px; background-color: #FFFFFF; border: 1px solid #d8d8d8; font-size: 1em;">
<div style="border-bottom: 1px solid #CCCCCC; margin-bottom: 3px; font-size: 0.8em; font-weight: bold; display: block;">
<span
onClick="
if (this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display != '')
{ this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = ''; this.innerHTML = '<b>Spoiler: </b><a href=\'#\' onClick=\'return false;\'>Ocultar</a>'; }
else
{ this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.innerHTML = '<b>Spoiler: </b><a href=\'#\' onClick=\'return false;\'>Mostrar</a>'; }
" />
<b>Spoiler:
</b>
<a href="#" onClick="return false;">
Mostrar
</a>
</span>
</div>
<div class="quotecontent">
<div style="display: none;">
$1
</div>
</div>
</div>