The Arcive of vBulletin Modifications Site. |
|
Classic button 'Spoiler' BB Code (NO INSTALL REQUIRED) Details »»
|
|||||||||||||||||||||||||||
|
Classic button 'Spoiler' BB Code (NO INSTALL REQUIRED)
Developer Last Online: Nov 2023
This is a classic button spoiler BB Code.
Title: Spoiler BB Code Tag Name: Spoiler Replacement: Code:
<div style="margin: 5px 20px 20px;"> <div class="smallfont" style="margin-bottom: 2px;"><b>Spoiler:</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>
Description: Allows you to hide text or images. Image Path: Choose an image and upload it to your server. Use {option}: No Remove Tag If Empty: Yes Disable BB Code Within This BB Code: No Disable Smilies Within This BB Code: No Disable Word Wrapping Within This BB Code: No Disable Automatic Link Parsing Within This BB Code: No Preview: ![]() Show Your Support
|
|||||||||||||||||||||||||||
| 5 благодарности(ей) от: | ||
| EliasAlucard, ka81, Mangahaven, zercosz | ||
| Comments |
|
#2
|
||||
|
||||
|
Installed, working, thanks.
But I could not get idea where we can use it? Hiding text with a show button, I think, it may be used to show the answer of a question after guess? |
|
#3
|
||||
|
||||
|
Or just a cool bb code that your members can have fun with.
|
|
#4
|
||||
|
||||
|
What is this button.?
![]() Isn't there supposed to be a image/button like the preview that says "Show" ? *edit* Nvm that is the button for when you're making a post. I used this one..
|
|
#5
|
|||
|
|||
|
Error in mobile version vb 4.2 can't show the spoiler content / can't unhide...
|
|
#6
|
||||
|
||||
|
yeah, You can just use your own pic. I just uploaded that one as I was in a rush
|
|
#7
|
||||
|
||||
|
Hmm, I haven't tried it in the mobile version yet as I can't call my phone a phone but I will look into this. Thank you for pointing this out.
|
|
#8
|
|||
|
|||
|
works like a charm, thanks mate
|
|
#9
|
||||
|
||||
|
No problem
|
|
#10
|
|||
|
|||
|
I tried this code, but it seems there is something not correct. Everything is ok except that the button "show" when clicked nothing shows up. I mean spoiler is used to hide/show some text, right! so why this code doesn't do this job then!! or maybe I'm missing something here. please correct me if I'm wrong.
By the way, I did all exact steps many times, but still the hide/show function doesn't work... any idea? |
![]() |
|
|