Nel mio forum sto cercando di aggiungere gli spoiler, ma non si vogliono decidere ad aprirsi o mi escono cose fuori dal comune, sapete darmi qualche codice?
Edit: Risolto
Posto anche per voi, così se avete bisogno non dovete cercare in lungo e in largo, serve il php aggiornato alla versione 3.1.4
Codice BBCode
[spoiler]{TEXT}[/spoiler]
Codice HTML
<div style="margin:25px; margin-top:5px"> <div class="quotetitle"> <b>Spoiler:</b> <input type="button" value="Mostra" style="width:60px;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 = 'Nascondi'; } else { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.innerText = ''; this.value = 'Mostra'; }" /> </div> <div class="quotecontent"> <div style="display: none;">{TEXT}</div> </div> </div>
Fonte altervista.org
Modificato da KenzoMe92, 15 February 2016 - 15:58 PM.