Announcement

Collapse
No announcement yet.

Spoiler BBCode

Collapse
This is a sticky topic.
X
X
Collapse
First Prev Next Last
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Free Mod 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.
    Helpful? Donate. Thanks!
    Buy me a coffeePayPal QR Code
    Fast VPS Host for vBulletin:
    A2 Hosting & IONOS

    #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?
      Helpful? Donate. Thanks!
      Buy me a coffeePayPal QR Code
      Fast VPS Host for vBulletin:
      A2 Hosting & IONOS

      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.
          Helpful? Donate. Thanks!
          Buy me a coffeePayPal QR Code
          Fast VPS Host for vBulletin:
          A2 Hosting & IONOS

          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.
            Helpful? Donate. Thanks!
            Buy me a coffeePayPal QR Code
            Fast VPS Host for vBulletin:
            A2 Hosting & IONOS

            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

                            Users Viewing This Page

                            Collapse

                            There is 1 user viewing this forum topic.

                            • Guest Guest

                            Latest Posts

                            Collapse

                            Working...
                            X
                            Searching...Please wait.
                            An unexpected error was returned: 'Your submission could not be processed because you have logged in since the previous page was loaded.

                            Please push the back button and reload the previous window.'
                            An unexpected error was returned: 'Your submission could not be processed because the token has expired.

                            Please push the back button and reload the previous window.'
                            An internal error has occurred and the module cannot be displayed.
                            There are no results that meet this criteria.
                            Search Result for "|||"