Help Hide Spoilers from Thread Preview

Discussion in 'Feedback & Assistance' started by Daydreamer, Jan 14, 2012.

  1. Daydreamer

    Joined:
    Jan 29, 2007
    Gender:
    Male
    Location:
    Los Angeles
    137
    Currently the "thread preview," the tooltip that appears when you hover over a thread's title link, does not hide text within spoiler tags ([NOPARSE][/NOPARSE]). I believe text within spoiler tags should not be able to be read this way. If an opening post states a major spoiler of a movie in spoiler tags, such as, "Leonardo DiCaprio dies!" the opening poster would have failed in shielding this statement from others if they placed it near the beginning of their post.

    So my suggestion is to hide the text within spoiler tags from the "thread previews." The mechanic is already possible because text within brackets ([]) are kept invisible.
     
  2. Mixt The dude that does the thing

    Joined:
    Oct 18, 2006
    Gender:
    Male
    826
    Well the bracket trick works because it assumes anything in brackets to be code when making the preview, but then when it tries to parse it to make the thread itself it finds out that it doesn't match anything and just displays it as is.

    It may still be easy (I'm not that good at coding) but the bracket glitch doesn't prove much here.
     
  3. Daydreamer

    Joined:
    Jan 29, 2007
    Gender:
    Male
    Location:
    Los Angeles
    137
    Ah, I thought of the possibility of that just a moment ago. So using the brackets to hide text is merely a "hack," but I think it should be possible to incorporate the code-hiding functions to spoiler tags.
     
  4. What? 『 music is freedom 』

    Joined:
    Jul 4, 2008
    Location:
    Surfing de Broglie waves
    2,756
    Anyhow, I am not rather grand at coding myself but from taking mixt's general explanation, I am not sure if the hiding spoiler function would even be possible when using brackets in themselves. There most probably may be a possibility to hide such spoilers by default through coding shenanigans or other methods but my personal familiarity with such is minimal at best. If one can find such a code or other method to institute for this reason then I suppose it would be rather alright.