Announcement

Collapse
No announcement yet.

Spoiler BBCode

Collapse
X
Collapse
First Prev Next Last
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Official - Free Spoiler BBCode

    Do you want your forum users to easily post spoiler alerts?

    Go to AdminCP > Custom BB Codes > Add New BB Code and enter the following information:

    Title: Spoiler
    BB Code Tag Name: spoiler
    Replacement:
    Code:
    <span style="cursor:pointer; border:1px solid red;padding:2px; color:red" onclick="this.nextSibling.style.display='';this.style.display='none'" title="Click to show content">SPOILER</span><span style="display:none; cursor:pointer; border:1px dotted #000; padding:2px" onclick="this.previousSibling.style.display='';this.style.display='none'" title="Click to hide content">{param}</span>
    Example: [spoiler]This is a test[/spoiler]
    Other Options: <use default> (for Button Image option, you could specify image path. If specified, a new button for this BB Code will appear in the editor)

    Demo: The quick SPOILERbrown fox jumps over the SPOILERlazy dog.

    #2
    Hi there!

    I just tried installing this on our forums (5.2.3) and followed these exact steps. The Spoiler box shows up just fine, but nothing happens when clicked. Any ideas?

    Comment


      #3
      Got link?

      Comment


        #4
        Hi Glenn,

        Same issue here. Doesn't work on my website either.

        Edit: Example thread here https://okamina.com/forum/discussion...tify-playlists

        Comment


          #5
          I'll take a look.

          Comment


          • Calamity
            Calamity commented
            Editing a comment
            Thank you, sir.

          • glennrocksvb
            glennrocksvb commented
            Editing a comment
            Not right now though.

          #6
          same here as well http://avidarms.com/forum/shoot-the-...t-wins/page506 post 7581

          Comment


            #7
            FYI Toploader Calamity Usmcveteran8152. I have updated the code for the Spoiler BBCode in the first post. I don't know why it was not updated with the latest code that I am using.

            Comment


              #8
              I can confirm this works, thanks again Glenn you Rock!

              Comment


                #9
                That works great! Thank you so much!

                Comment


                  #10
                  This bbcode is beautifull i have installed on my forum vb 5.2.6 and work perfect.
                  Thanks.

                  Comment


                    #11
                    Works great on v5.2.6
                    Dotti

                    Comment


                      #12
                      Thanks Glenn!

                      Comment


                        #13
                        Works fine
                        Thanks Glenn

                        Comment


                          #14
                          Works fine, but i deleted the
                          Code:
                          padding:2px
                          in the second "span" because on my design, the dotted border was in the row above when you use the spoiler for multi-line quotes. now it looks better.

                          I was trying it first wit replace the second span with a div but then also single word spoilers will be visible in a new row because of the behavior of a div container ... so this solution is a good and niceone thanks for the code!

                          Comment


                            #15
                            Working fine here, thanks

                            Comment

                            Working...
                            X