Spoiler tag

Nao

  • Dadman with a boy
  • Posts: 15,974
Spoiler tag
« on May 7th, 2011, 01:00 PM »
Feature: Spoiler tag
Developer: Nao
Target: users, geeks
Status: 100% (complete.)
Comment:

Just as the name implies, use the spoiler tag to hide sensitive information by default. Perfect to discuss recently released fiction. Or whatever.

Roz

Re: Spoiler tag
« Reply #1, on June 22nd, 2011, 08:21 PM »
Will there be a way to describe the spoiler? As in:

(click to show/hide)
Luke I am your father

So that people know what the spoil is about, for whatever reason?

Re: Spoiler tag
« Reply #2, on June 23rd, 2011, 12:12 AM »
Can't say I've ever needed it, if I did, I could just as easily preface it.
(click to show/hide)
Just like this.

Re: Spoiler tag
« Reply #3, on June 23rd, 2011, 12:12 AM »
Quote from Arantor on June 23rd, 2011, 12:12 AM
Can't say I've ever needed it, if I did, I could just as easily preface it.
(click to show/hide)
Just like this.
Will you make it so it won't break on descriptions? A lot of forums today run with descriptions on.

Re: Spoiler tag
« Reply #4, on June 23rd, 2011, 12:25 AM »
Considering that there are multiple spoiler mods for SMF that are all different...

I guess it's something we can kill in the converter.

Re: Spoiler tag
« Reply #5, on June 23rd, 2011, 12:36 AM »
Quote from Arantor on June 23rd, 2011, 12:25 AM
Considering that there are multiple spoiler mods for SMF that are all different...
If you're not planning any properties for spoiler you could just rip out anything behind the =.

Then again, I can see this might cause stupid bugs later on, so I agree with you, if the converter will do it, then that would be the best time to do it.

Maybe, if I brush up on my skills, I'll be able to create a plug-in that lets you use descriptions, no?

Roz

Re: Spoiler tag
« Reply #6, on June 23rd, 2011, 02:02 AM »
Hmm, one of the spoiler mods I had did the thing I asked. I wasn't quite clear on it.

With the following markup
(click to show/hide)
the button we have saying SPOILER (the one we click) had the text we typed field, right beside it. So if I wanted to spoil something about Game of Thrones the spoiler button would be:

SPOILER: Game of Thrones Deaths!

So in essence, the person would know what the spoiler was about without having to read the context of it. Of course this isn't essential, but it's a small and nice detail.

Re: Spoiler tag
« Reply #7, on June 23rd, 2011, 02:43 AM »
Yeah we understood that.

Re: Spoiler tag
« Reply #8, on July 6th, 2011, 06:54 PM »
I think it's something we could (should?) add indeed...
Added to my to-do-list, with lower priority though. (But it should be quick to implement.)

Re: Spoiler tag
« Reply #9, on August 27th, 2012, 09:35 AM »
(click to show/hide)
(click to show/hide)
:eheh:
(click to show/hide)
(click to show/hide)
:cool:

sorry my English...
question: if there are pictures in the spoiler - they will be loaded if it is closed?

Re: Spoiler tag
« Reply #10, on August 27th, 2012, 09:48 AM »
I guess so, yes... For them not to load, you'd have to use JavaScript (it's called a 'lazy load' technique, you can google it.)
Perhaps it depends on the browser, though (it's not hard to calculate the visibility of an image and determine whether to suspend loading. Well, if it can be done in JavaScript, it can be done in the browser itself too ;)). But I would expect the pictures to load.
Posted: August 27th, 2012, 09:46 AM

Oh, BTW quite obviously the description feature was added in the meantime! (cf. previous posts :P)