Quote:
Originally Posted by ozzy47
That's virtually impossible, I tested this out and it is only showing for guests.
Did you add that code to the bbcode template directly?
|
I edit the bbcode and added below:
Title: Spoiler
Replacement:
Code:
<div style="margin:20px; margin-top:5px">
<div class="smallfont" style="margin-bottom:2px"><u>Spoiler</u>: <input type="button" value="Mostrar" style="width:45px;font-size:10px;margin:0px;padding:0px;" 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.innerText = ''; this.value = 'Ocultar'; } else { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.innerText = ''; this.value = 'Mostrar'; }">
</div>
<div style="margin: 0px; padding: 6px; border: 0px inset;">
<div style="display: none;">{param}
</div>
</div>
</div>
<div>
<vb:if condition="$show['guest']">
Advertisement
</vb:if>
</div>
I do not work. I doing something wrong?