![]() |
How to add this spoiler ? bbcode
I am currently using a different one on my forum but I like this version more used on Discourse forum. It blurs txt or images until you click on it to see it.
Ex https://meta.discourse.org/t/folding-spoilers/16123/2 How can I add this spoiler to my custom bbcode ? What would be the HMLT code for it ? |
This is in the source code for that:
HTML Code:
<span class="spoiled" style="background-color: transparent; color: transparent; text-shadow: 0px 0px 10px black; cursor: pointer;">This is a spoiler</span> (I don't know why they have given it a class when they haven't even defined the class in the CSS and instead using it inline.) |
Hi Lynne, thanks.
The version i use on my forum is this HTML Code:
<div style="margin: 0px;"> It is not working. I tried the code you send me but it doesn't open i.e., txt or image would show once i click on the blurry stuff. Quote:
|
Their spoiler js is in here - https://meta-discourse.r.worldssl.ne...7955c85949a.js So, you'd have to un-minify it in order to grab it.
|
This looks rather complicated, i don't think it is that complicated... but i will ask around more.
--------------- Added [DATE]1401846448[/DATE] at [TIME]1401846448[/TIME] --------------- the code would be something similar to this but not exactly working the same way HTML Code:
<div style="margin: 0px;"> |
Hi Lynne, would this file help built this spoiler bbcode ?
https://github.com/discourse/discour...pts/spoiler.js |
All times are GMT. The time now is 04:45 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:
|