Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Spoiler tag  (Read 7796 times)

0 Members and 1 Guest are viewing this topic.

Geheim

  • Full Member
  • ***
  • Posts: 201
    • View Profile
    • Email
Spoiler tag
« on: May 15, 2014, 11:56:58 am »
As requested a lot here in the forums, but always mentioned indirectly in posts (like 1, 2, 3, 4, ...) and because I think it is an important feature for the website, it is time to make a thread for it  :D

I think the idea should be clear to most of you, but here is why it is important imo:
  • A large amount of code could easily be hidden under the spoiler, so a reader doesn't have to scroll down the hole code and can have a look at the files individially (if the writer made them seperate, ofc :D)
  • In a project post, you could hide pictures and/or videos (and for mobile users I think they only load if you open the spoiler, but I am not sure)

The syntax may look like this:


Which may create this spoiler:




I hope it is possible to add this tag, if the creator(s) of this website find the time to do it, because it could really help improving the readability of many posts.
Thanks and greetings, Geheim!


*The pictures are from this website.
Failing to succeed does not mean failing to progress!

The Illusionist Mirage

  • Full Member
  • ***
  • Posts: 115
  • My Life = Linux, C++ & Computers
    • View Profile
    • fleptic
    • Email
Re: Spoiler tag
« Reply #1 on: May 15, 2014, 12:00:09 pm »
Yea this would be useful and save space in our monitors too ;D I entirely support this idea.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: Spoiler tag
« Reply #2 on: May 15, 2014, 12:17:24 pm »
(click to show/hide)
Laurent Gomila - SFML developer

Geheim

  • Full Member
  • ***
  • Posts: 201
    • View Profile
    • Email
Re: Spoiler tag
« Reply #3 on: May 15, 2014, 12:22:05 pm »
Wow, I didn't expect that  :o
(click to show/hide)
Failing to succeed does not mean failing to progress!

Foaly

  • Sr. Member
  • ****
  • Posts: 453
    • View Profile
Re: Spoiler tag
« Reply #4 on: May 15, 2014, 11:42:55 pm »
Awesome indeed!
But there seems to be something wrong with the button image. It looks like the wrong background image is used and Firebug tells me that http://www.sfml-dev.org/forums/Themes/ds-natural_20/images/bbc/spoiler.gif could not be found.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: Spoiler tag
« Reply #5 on: May 16, 2014, 07:51:41 am »
Are you sure? I can't find where the image is used, from what I've seen (andaccording to the various screenshots of the mod) it's just a regular button element with the default style.
Laurent Gomila - SFML developer

Foaly

  • Sr. Member
  • ****
  • Posts: 453
    • View Profile
Re: Spoiler tag
« Reply #6 on: May 16, 2014, 09:21:18 am »
Hmm weird... For me (Win8 + Firefox 29) it looks like the attached image.

Geheim

  • Full Member
  • ***
  • Posts: 201
    • View Profile
    • Email
Re: Spoiler tag
« Reply #7 on: May 16, 2014, 09:33:58 am »
On the phone (using Chrome), it looks like followed:
Failing to succeed does not mean failing to progress!

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11030
    • View Profile
    • development blog
    • Email
Re: Spoiler tag
« Reply #8 on: May 16, 2014, 09:34:17 am »
Ah yeah seems to be "broken". I guess the main confusion was, that you didn't specify what button. ;)
So yes, the button that you use to insert a spoiler tag, misses an icon.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: Spoiler tag
« Reply #9 on: May 16, 2014, 09:35:53 am »
Oh, that button... I'll fix it as soon as possible.
Laurent Gomila - SFML developer

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: Spoiler tag
« Reply #10 on: May 20, 2014, 11:23:19 pm »
Fixed. Sorry for the delay.
Laurent Gomila - SFML developer

G.

  • Hero Member
  • *****
  • Posts: 1593
    • View Profile
Re: Spoiler tag
« Reply #11 on: May 20, 2014, 11:34:23 pm »
This icon is extreme. :D

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11030
    • View Profile
    • development blog
    • Email
Re: Spoiler tag
« Reply #12 on: May 20, 2014, 11:48:48 pm »
Haha, I like it. ;D
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/