Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse

The New Coffee Room

  1. TNCR
  2. General Discussion
  3. Spoiler works again

Spoiler works again

Scheduled Pinned Locked Moved General Discussion
11 Posts 8 Posters 110 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • KlausK Offline
    KlausK Offline
    Klaus
    wrote on last edited by
    #1

    I asked around a little in the NodeBB community and found a replacement for our spoiler plugin.

    It's not as fancy as the old one (asynchronous loading of the content), so spoiler content may show up in previews, but at least it seems to work.

    click to show

    This is hidden

    1 Reply Last reply
    • KlausK Offline
      KlausK Offline
      Klaus
      wrote on last edited by Klaus
      #2

      click to show

      This is a test whether the spoiler content shows up in the preview.

      Yes it does. If you want to prevent that, a workaround would be to add another post after the one you want to hide. Or add at least two lines of non-hidden text before the spoiler.

      1 Reply Last reply
      • markM Offline
        markM Offline
        mark
        wrote on last edited by
        #3

        Nothing happens when I click the Show content button.

        1 Reply Last reply
        • CopperC Online
          CopperC Online
          Copper
          wrote on last edited by
          #4

          It works for me, iPad Safari

          1 Reply Last reply
          • 89th8 Offline
            89th8 Offline
            89th
            wrote on last edited by
            #5

            click to show

            Looks good, thanks!

            1 Reply Last reply
            • jon-nycJ Offline
              jon-nycJ Offline
              jon-nyc
              wrote on last edited by
              #6

              Works for me IOS safari

              Only non-witches get due process.

              • Cotton Mather, Salem Massachusetts, 1692
              1 Reply Last reply
              • Doctor PhibesD Offline
                Doctor PhibesD Offline
                Doctor Phibes
                wrote on last edited by Doctor Phibes
                #7

                click to show

                click to show

                click to show

                click to show

                click to show

                I found Jesus
                click to show

                HERE HE IS!





                I was only joking

                George KG 1 Reply Last reply
                • Doctor PhibesD Doctor Phibes

                  click to show

                  click to show

                  click to show

                  click to show

                  click to show

                  I found Jesus
                  click to show

                  HERE HE IS!





                  George KG Offline
                  George KG Offline
                  George K
                  wrote on last edited by George K
                  #8

                  @doctor-phibes said in Spoiler works again:

                  click to show

                  click to show

                  click to show

                  click to show

                  click to show

                  I found Jesus
                  click to show

                  HERE HE IS!





                  MacOS Safari - works fine.

                  click to show

                  image.jpeg

                  "Now look here, you Baltic gas passer... " - Mik, 6/14/08

                  The saying, "Lite is just one damn thing after another," is a gross understatement. The damn things overlap.

                  1 Reply Last reply
                  • KlausK Offline
                    KlausK Offline
                    Klaus
                    wrote on last edited by
                    #9

                    Any JavaScript programmers here? I think it wouldn't be too hard to change the spoiler plugin in such a way that the spoiler content is ROT13-encoded (say) and shows only up in mangled form in the preview but is then decoded when pressing on the button. The plugin is only around 50 lines of JavaScript code, see here.

                    1 Reply Last reply
                    • AxtremusA Away
                      AxtremusA Away
                      Axtremus
                      wrote on last edited by
                      #10

                      @Klaus Did we ever have a spoiler module that handles the topic list preview correctly? If we can look at the code for that old spoiler module, maybe we can find the snippet that deals with topic list preview and adapt that just snippet to the new spoiler module.

                      KlausK 1 Reply Last reply
                      • AxtremusA Axtremus

                        @Klaus Did we ever have a spoiler module that handles the topic list preview correctly? If we can look at the code for that old spoiler module, maybe we can find the snippet that deals with topic list preview and adapt that just snippet to the new spoiler module.

                        KlausK Offline
                        KlausK Offline
                        Klaus
                        wrote on last edited by
                        #11

                        @axtremus The code for the old plugin is here but it is way more complicated and works in a different way. Rather than merely hiding the text, the old plugin doesn't even transmit the hidden text from the server to the browser until the "show" button is clicked (async i/o).

                        1 Reply Last reply
                        Reply
                        • Reply as topic
                        Log in to reply
                        • Oldest to Newest
                        • Newest to Oldest
                        • Most Votes


                        • Login

                        • Don't have an account? Register

                        • Login or register to search.
                        • First post
                          Last post
                        0
                        • Categories
                        • Recent
                        • Tags
                        • Popular
                        • Users
                        • Groups