Log in

View Full Version : Hidden content mod?


Wardragon
04-04-2008, 12:35 AM
Does anyone know if there is a simple, basic modification which would allow a user making a post to hide content within their post to all other users? I've seen this on another forum, and the content is hidden until you click a button in the post, which reveals the text placed within. I know there's a hidden content mod here that hides blocks in posts depending on how many posts the user has made, but that's not what I'm looking for. Thanks in advance!

--------------- Added 1207278592 at 1207278592 ---------------

Hi again, I found a suitable modification for a hidden block option in vB3.6.8, which is placed in the BB code, but is uses a form button, and I was wondering if it would be possible to alter the code so that I could use my own image? Can anyone help? The "mod" is unsupported.


<div id="spoiler"><div><input type="button" value="Show Spoiler!" style="width:150px;font-size:10px;margin:10px;padding:0px;" onclick="if (this.parentNode.parentNode.getElementsByTagName(' div')['show'].style.display != '') { this.parentNode.parentNode.getElementsByTagName('d iv')['show'].style.display = ''; this.parentNode.parentNode.getElementsByTagName('d iv')['hide'].style.display = 'none'; this.innerText = ''; this.value = 'Hide Spoiler!'; } else { this.parentNode.parentNode.getElementsByTagName('d iv')['show'].style.display = 'none'; this.parentNode.parentNode.getElementsByTagName('d iv')['hide'].style.display = ''; this.innerText = ''; this.value = 'Show Spoiler!'; }" />
<div id="show" style="background-image:none; display: none; background-color:transparent; background-repeat:repeat; margin: 0px;border-style:solid;border-width:1px; padding: 4px; width:98%">
{param}</div>
<div id="hide"></div></div></div>