The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Spoiler tag?
Would it be possible to have a spoiler tag added? The reason being that sometimes there's information that isn't relevant to everyone, so having a spoiler type bbcode so that only those that are interested in the content would actually look at it. This has the benefit of having less vertical in pages. I'd find this especially useful for the description post of a mod as certain things, like details of patches, could be spoilered so that the description is kept a reasonable length except for those who want to see the additional details.
|
#2
|
||||
|
||||
Well I dont think "Spoiler" would be a very good term for it.
|
#3
|
||||
|
||||
Perhaps not, its just what we call one version of the tag that we use on our forum. We also call the other version a content tag.
|
#4
|
||||
|
||||
If you put it in code tags, then it is limited to only xxx lines, I believe.
|
#5
|
||||
|
||||
Nested spoiler tags make or interesting "chose your own adventure" type threads.
|
#6
|
||||
|
||||
Here's the code my site uses for the spoiler tag:
Code:
<div style="margin: 5px 20px 20px;"> <div class="smallfont" style="margin-bottom: 2px;"><b>Spoiler Alert, click show to read:</b> <input value="Show" style="margin: 0px; padding: 0px; width: 45px; font-size: 10px;" 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 = 'Hide'; } else { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.innerText = ''; this.value = 'Show'; }" type="button" /> </div> <div class="alt2" style="border: 1px inset ; margin: 0px; padding: 6px;"> <div style="display: none;"> {param} </div> </div> </div> |
#7
|
||||
|
||||
Aren't you required to turn off post caching in order to have the tag work?
|
#8
|
||||
|
||||
Unless there's a second setting somewhere my site has 14 post caching and the bbcode provided works without any problem.
|
#9
|
||||
|
||||
Most spoiler tags I see are just simple javascript- post caching isn't am issue because the same code is always shown.
|
#10
|
||||
|
||||
This one is a javascript based tag. You'll see the javascript attached to the onlick event of the input button.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|