Implemented Alternate Spoiler Format

Discussion in 'Feedback & Assistance' started by Makaze, Jul 30, 2012.

Thread Status:
Not open for further replies.
  1. Makaze Some kind of mercenary

    Joined:
    Jan 22, 2011
    Location:
    The Matinée
    1,207
    I have an idea for an alternate spoiler format that is less buggy and looks cleaner overall than the button we have now. I do not want it to replace the current spoiler for reasons I will express below.

    It works by making the text the same colour as the background so that it can be revealed when the text is selected. You might recognize this format from various sites such as TVTropes and other message boards.

    I feel this would be a good addition because it doesn't provoke as much curiosity as the clickable spoiler and requires a more deliberate action to reveal. It also allows someone to hide text within a line without disrupting the format while the normal spoilers move things down onto the next line and are inconvenient for use in a sentence or paragraph.

    The reason why it cannot replace the current spoiler tag is that it cannot spoil images and videos in the same way. It only hides text. But I think it is an efficient and elegant addition.

    Since the [noparse]
    [/noparse] tag is already being used, something like
    What do you think? Could we add something like that?[/FONT]
     
  2. Amaury Chaser

    Joined:
    Jan 15, 2007
    Gender:
    Male
    Location:
    Ellensburg, WA
    1,694
    I like this. It would be a nice addition, indeed.
     
  3. DigitalAtlas Don't wake me from the dream.

    Joined:
    Oct 1, 2006
    Location:
    Blossom City
    2,335
    I'm +1'ing this. The man's done his research and presented the code well. Plus, we used to have this and it was a good thing.
     
  4. Mixt The dude that does the thing

    Joined:
    Oct 18, 2006
    Gender:
    Male
    826
    [highlight]This would work as a makeshift equivalent if you like[/highlight]

    [noparse][highlight]spoilered text[/highlight][/noparse]

    EDIT: Nevermind, 5.0 styles only. Other styles highlight differently.
     
  5. Makaze Some kind of mercenary

    Joined:
    Jan 22, 2011
    Location:
    The Matinée
    1,207
    That is an awful lot of code. Since there is no button for highlighting even in the full reply window, it is a lot of effort to go through when you could just add the
     
  6. Mixt The dude that does the thing

    Joined:
    Oct 18, 2006
    Gender:
    Male
    826
     
  7. Hiro ✩ Guardian

    Joined:
    Dec 28, 2010
    Gender:
    Enby
    3,222
    I like this idea a lot.
     
  8. Llave Superless Moderator

    Joined:
    Jun 23, 2010
    Gender:
    Tired Dad
    4,112
    KH-TVidsTropes.net

    I like it.


    You did test it for all the skins, correct? What if someone uses a style color for their text? That will also be blocked?


    Regardless, I like this idea.
     
  9. Arch Mana Knight

    Joined:
    Oct 5, 2007
    Gender:
    Male
    Location:
    Anywhere
    2,430
     
  10. Makaze Some kind of mercenary

    Joined:
    Jan 22, 2011
    Location:
    The Matinée
    1,207
    Oh, so do I. It is just a lot to type out for the function I want, and it uses more code than needed.

    I would probably use it a lot. I find the default spoilers tacky by comparison, especially for use in a sentence or paragraph.

    It should work flawlessly because it is a child element within the post field. The only complication you might get is if someone did this:

    [noparse][/noparse]
     
  11. Mixt The dude that does the thing

    Joined:
    Oct 18, 2006
    Gender:
    Male
    826
    Just one thing if we do use this. I think it would be good to include a mirror of the code with an option included to allow color selection.

    Also it would be nice to have a the highlight code mirrored the same way (albeit that code is so seldom used it isn't that relevant)
     
  12. Makaze Some kind of mercenary

    Joined:
    Jan 22, 2011
    Location:
    The Matinée
    1,207
    That would be possible but not necessary. I personally am not familiar with how to set up custom BBCode with extra options in vB, or how difficult it is to do so.
     
  13. Mixt The dude that does the thing

    Joined:
    Oct 18, 2006
    Gender:
    Male
    826
    Pretty simple, if my sources are right and I'm understanding them correctly.



    becomes

    <span style="background-color:{COLOR};color:{COLOR}">{TEXT}</span>
     
  14. Makaze Some kind of mercenary

    Joined:
    Jan 22, 2011
    Location:
    The Matinée
    1,207
    Oh, that is simple. Fine by me and not too much work for the admins.
     
  15. Mixt The dude that does the thing

    Joined:
    Oct 18, 2006
    Gender:
    Male
    826
    Actually it seems syntax on vBulletin is a bit different, but it's very similar to what I put at any rate.

    Also seems we can disable BBCode parsing within the tags so that would work around people breaking it.
     
  16. Makaze Some kind of mercenary

    Joined:
    Jan 22, 2011
    Location:
    The Matinée
    1,207
    That would be annoying if they wanted to bold or italicize, though. They should just know not to color text inside it.
     
  17. Saxima [screams geometrically]

    Joined:
    Jan 1, 2010
    Location:
    GAY WONTAEK HELL
    2,666
    I'm in support of the idea on certain levels. As a roleplayer though, I'm not too sure of it. Many people, including myself, use the spoiler tags to hide amounts of information so that posts don't looked overflowing and tl;dr.

    If there were a way to keep both types of spoilers, then sure, but if not, then I'd rather not change it.
     
  18. Makaze Some kind of mercenary

    Joined:
    Jan 22, 2011
    Location:
    The Matinée
    1,207
    I suggested it as an alternative for that reason. You also cannot hide images and videos with it.

    There isn't really a reason not to have both given that they have different functions and will be used for different things.
     
  19. Mixt The dude that does the thing

    Joined:
    Oct 18, 2006
    Gender:
    Male
    826
    True. You could format the entire spoiler still (other than color which would be overwritten) but if you wanted to format a part for emphasis then it would block it. So that might not be the best idea.
     
  20. Misty gimme kiss

    Joined:
    Sep 25, 2006
    Gender:
    Cisgender Female
    Location:
    alderaan
    6,590
    Just a .

    Right-o, okay.

    Code:
    [noparse][hidden=COLOR]text text text[/hidden][/noparse]
    Code:
    [noparse][hidden=#000000]text text text[/hidden][/noparse]
    Becomes:


    PM me if you're having issues.
    _LOCKED



    Edit:
    If you're too lazy to specify color:
    Code:
    [noparse]This is [hidden]hidden[/hidden].[/noparse]
    Becomes:
    This is .
     
Thread Status:
Not open for further replies.