![]() |
Spoiler BB Code with Show/Hide Button
Due to this I have decided to leave the vBulletin community and no longer wish to have my work associated with it.
Apologies to those who use this work. |
not bad, another bbcode tag??, thank you for the mod
|
Um.... Did you "decided to make [your] own" or did you lift this bb code off my forum (which happens to be well established and the same subject as yours) and pass it off as your own work? The code you posted is identical to the BB Code on my site.
|
Sorry to hear it is identical code but is there a screen shot of it hidden and unhidden? I have been looking for something like this.
|
Ok, i've got a code similar to this for my youtube wraps but I've got a button to add the code around the text I highlight.....is there a button for this to use other than typing [spoiler] etc around the text?
|
For some reason the only thing that shows up when I click on the show button is Hide text (the phrase in the div part).
What am I doing wrong? |
Quote:
Suggestions to fix and suggestions to my question earlier please? |
<a href="https://vborg.vbsupport.ru/showthread.php?t=110598" target="_blank">https://vborg.vbsupport.ru/showthread.php?t=110598</a>
Works perfectly on 7.2 and I've been using this one since 3.5 |
Quote:
Me also |
This kind of code had already been posted a long time ago on vbulletin.com ^^
|
Quote:
|
find:
Code:
<div class="alt2" style="margin: 0px; padding: 6px; border: 1px inset;"> <div style="display: none;"> Hide Text </div> </div> </div> replace with: Code:
<div class="alt2" style="margin: 0px; padding: 6px; border: 1px inset;"> <div style="display: none;">{param}</div> </div> </div> HTH |
Works like a charm with agitated's edit. :D
|
Quote:
Certainly is one reason why {param} is missing as it would not show on the page source. |
this won't work for firefox 3, am I the only to realise?
|
Easy to follow, successfully installed.
My members will enjoy having this feature. Thanks so much for creating easy to follow steps! |
tx for the fix,, the param at the end needs to be closed to work missing a } at the end of param. else works fine,
marked installed |
This is the fixed replacement code:
HTML Code:
<div style="margin:20px; margin-top:5px"> <div class="smallfont" style="margin-bottom:2px"> <u>Spoiler</u>: <input type="button" value="Show" 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 = 'Hide'; } else { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.innerText = ''; this.value = 'Show'; }"> </div> <div class="alt2" style="margin: 0px; padding: 6px; border: 1px inset;"> <div style="display: none;">{param}</div> </div> </div> |
Can I hide spoiler content from being viewed by visitors?
|
Nice modification...
Anyway, how about if I want to add a custom header? The code: Quote:
Quote:
|
Quote:
HTML Code:
<div style="margin:20px; margin-top:5px"> |
Just installed this. It works just the way I was hoping.
Your code is missing the closing } after "{Param". Just a heads up. |
anyone knows how to make spoiler work with rss?
|
All times are GMT. The time now is 12:41 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|