![]() |
BBCode - Custom Spoiler
1 Attachment(s)
*Update released! In the new code the button will automatically adjust it's width to tightly fit all the text in the title.. You don't have to worry about keeping your title small anymore! enjoy!
If you like this you may also like the image preview spoiler for large images I have seen spoiler code before but I am not sure if there is any spoiler code 4.0 for a custom spoiler where you can enter the text that appear on the button (ex. Click to view hidden message) and also show what is on the inside... Here is my code I made: ** There is a known glitch where in the button title if you put the following symbol in the name ' then it will not work... If anyone can fix this please let me know because I have tried.. Other than that, the code works fine! Enjoy! (Screenshots below) Title: Code:
Spoiler Code:
spoiler Code:
<div> Code:
[spoiler=enter your title here]enter your text here[/spoiler] Code:
Shows and hides text with the click of a button. Code:
Yes. |
I was looking for this thanks
|
Glad you like it!!
|
Thanks dude! Is it possible to display a custom button for this spoiler, for example, a button with width 150 height 15px ?
|
Yes! (: in the replacement code you will see something like 450px etc. Replace that with 150px. Sory I'm on my phone now. I can also make it auto re-size when I get home... Good luck until then (:
|
Y i get that, but i meant a custom blank button, so when you click on it, the spoiler text shows.. thanks for you'r reply.. :)
|
I do not understand.. Do you mean just a plain button with no text that is that size?
|
Y, and when you enter the spoiler title, it shows on that button.. Don't get me wrong, this is rly cute, but i want to add a custom blank button for the spoiler, cuz i have a custom design.. And thank you again :)
|
Where it says:
value="{option}" Change the text {option} to the custom title you want shown, instead of the one the user enters.. Then later on there is a value that says.. Use {option}? Check no... Save.. Does this work? |
Dude, sty, but you have miss understod me, i would just like to make a custom button for the spoiler, users can write their own title, but i would make the button, it would be an image, so when they click on that image, the spoiler shows.. Hope i explained it.. And thank you again for you'r help..
Best Regards, Anti |
All times are GMT. The time now is 03:15 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:
|