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

Darkscribes Community

  1. Home
  2. Uncategorized
  3. How to put hidden 'spoiler' text in a post

How to put hidden 'spoiler' text in a post

Scheduled Pinned Locked Moved Uncategorized
12 Posts 3 Posters 1 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.
  • eeeee@community.nodebb.orgE [email protected]

    Im doing some education material on a nodebb forum, where want the answer hidden until its clicked. I think its possible in HTML, as saw spolier somewhere before?

    So to have something like
    Why did the chicken cross the road
    Answer
    When Answer is clicked it changes to
    To get to the other side

    How to enter this?

    baris@community.nodebb.orgB This user is from outside of this forum
    baris@community.nodebb.orgB This user is from outside of this forum
    [email protected]
    wrote last edited by
    #3

    Published 1.0.1 which is compatible with 4.x and 3.x

    1 Reply Last reply
    0
    • eeeee@community.nodebb.orgE [email protected]

      Im doing some education material on a nodebb forum, where want the answer hidden until its clicked. I think its possible in HTML, as saw spolier somewhere before?

      So to have something like
      Why did the chicken cross the road
      Answer
      When Answer is clicked it changes to
      To get to the other side

      How to enter this?

      eeeee@community.nodebb.orgE This user is from outside of this forum
      eeeee@community.nodebb.orgE This user is from outside of this forum
      [email protected]
      wrote last edited by
      #4

      Thanks @baris , could this be added to ACP extend so I can install without needing server access?

      1 Reply Last reply
      0
      • eeeee@community.nodebb.orgE [email protected]

        Im doing some education material on a nodebb forum, where want the answer hidden until its clicked. I think its possible in HTML, as saw spolier somewhere before?

        So to have something like
        Why did the chicken cross the road
        Answer
        When Answer is clicked it changes to
        To get to the other side

        How to enter this?

        baris@community.nodebb.orgB This user is from outside of this forum
        baris@community.nodebb.orgB This user is from outside of this forum
        [email protected]
        wrote last edited by
        #5

        Now that it's upgraded it should show up in the admin page.

        1 Reply Last reply
        0
        • eeeee@community.nodebb.orgE [email protected]

          Im doing some education material on a nodebb forum, where want the answer hidden until its clicked. I think its possible in HTML, as saw spolier somewhere before?

          So to have something like
          Why did the chicken cross the road
          Answer
          When Answer is clicked it changes to
          To get to the other side

          How to enter this?

          eeeee@community.nodebb.orgE This user is from outside of this forum
          eeeee@community.nodebb.orgE This user is from outside of this forum
          [email protected]
          wrote last edited by
          #6

          Is the word Spoiler hardcoded?
          How to change if I want it to say Answer, for example?

          Also if my spoiler has 2 lines how to put page break in
          E.g.
          >! Line1 Line2

          To come out
          Line1
          Line2

          1 Reply Last reply
          0
          • eeeee@community.nodebb.orgE [email protected]

            Im doing some education material on a nodebb forum, where want the answer hidden until its clicked. I think its possible in HTML, as saw spolier somewhere before?

            So to have something like
            Why did the chicken cross the road
            Answer
            When Answer is clicked it changes to
            To get to the other side

            How to enter this?

            baris@community.nodebb.orgB This user is from outside of this forum
            baris@community.nodebb.orgB This user is from outside of this forum
            [email protected]
            wrote last edited by
            #7

            You can change the Spoiler text to something else.

            image.png

            1 Reply Last reply
            0
            • eeeee@community.nodebb.orgE [email protected]

              Im doing some education material on a nodebb forum, where want the answer hidden until its clicked. I think its possible in HTML, as saw spolier somewhere before?

              So to have something like
              Why did the chicken cross the road
              Answer
              When Answer is clicked it changes to
              To get to the other side

              How to enter this?

              eeeee@community.nodebb.orgE This user is from outside of this forum
              eeeee@community.nodebb.orgE This user is from outside of this forum
              [email protected]
              wrote last edited by
              #8

              In Federated messages, the !> doesnt work even between nodebb instances that have the plugin.
              Not a big issue but its actually interesting that it doesnt work.
              For example here a mastodon site sends that code in a post to a nobebb site that has spoilers installed,
              when it displays the post why isnt the Functionality triggered?
              1000050044.jpg

              1 Reply Last reply
              0
              • eeeee@community.nodebb.orgE [email protected]

                Im doing some education material on a nodebb forum, where want the answer hidden until its clicked. I think its possible in HTML, as saw spolier somewhere before?

                So to have something like
                Why did the chicken cross the road
                Answer
                When Answer is clicked it changes to
                To get to the other side

                How to enter this?

                baris@community.nodebb.orgB This user is from outside of this forum
                baris@community.nodebb.orgB This user is from outside of this forum
                [email protected]
                wrote last edited by
                #9

                Not sure why it doesn't trigger for fediverse posts. At the very least it should have turned into a blockquote. @julian will have to take a look at the fedi issue.

                julian@community.nodebb.orgJ 1 Reply Last reply
                0
                • baris@community.nodebb.orgB [email protected]

                  Not sure why it doesn't trigger for fediverse posts. At the very least it should have turned into a blockquote. @julian will have to take a look at the fedi issue.

                  julian@community.nodebb.orgJ This user is from outside of this forum
                  julian@community.nodebb.orgJ This user is from outside of this forum
                  [email protected]
                  wrote last edited by [email protected]
                  #10

                  @eeeee Mastodon posts are interpreted as-is, so that symbol combination is meaningless for Mastodon, and that is reflected in NodeBB

                  Will have to test between NodeBB

                  1 Reply Last reply
                  0
                  • eeeee@community.nodebb.orgE This user is from outside of this forum
                    eeeee@community.nodebb.orgE This user is from outside of this forum
                    [email protected]
                    wrote last edited by
                    #11

                    @julian yes I never expected it so function on Mastodon, of course not.
                    but when putting that symbol combination into Mastodon post, and sending it to nodebb you would think it would trigger nodebb side.
                    Actally its hard to understand how it doesnt activate spoiler on nodebb side, given its the same 2 characters.
                    Im more perplexed, than bothered, that it doesnt!

                    julian@community.nodebb.orgJ 1 Reply Last reply
                    0
                    • eeeee@community.nodebb.orgE [email protected]

                      @julian yes I never expected it so function on Mastodon, of course not.
                      but when putting that symbol combination into Mastodon post, and sending it to nodebb you would think it would trigger nodebb side.
                      Actally its hard to understand how it doesnt activate spoiler on nodebb side, given its the same 2 characters.
                      Im more perplexed, than bothered, that it doesnt!

                      julian@community.nodebb.orgJ This user is from outside of this forum
                      julian@community.nodebb.orgJ This user is from outside of this forum
                      [email protected]
                      wrote last edited by
                      #12

                      @eeeee when Mastodon posts enter NodeBB we save the html in the database as-is (and sanitize it on output).

                      This is different from NodeBB internally which saves markdown into the database.

                      The spoiler plugin might not be matching the symbols because from remote communities the line begins with <p>&gt;! spoiler instead of just with &gt;! itself.</p>

                      1 Reply Last reply
                      0
                      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.
                      Powered by NodeBB Contributors
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • Users
                      • Groups