Announcement

Collapse
No announcement yet.

Spoiler Tags

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Spoiler Tags

    I don't know what N-Sider uses for a board (I think it's VBulletin but I believe I am wrong) but I was wondering if it was possible to use this.

    Example(Warning: Zelda spoilers)

    I think it would be better than what we use now for spoilers (with the loads of spaces and junk).

    #2
    Re: Spoiler Tags

    Looks like V-Bulletin to me.
    "Mindless killing doesn't do a lot for me anymore." - Sampson

    Comment


      #3
      Re: Spoiler Tags

      I'm always wrong about everything, so meh.

      Comment


        #4
        Re: Spoiler Tags

        I clicked on the link and my mouse happened to be sitting right over the spoiler.
        "What if like...there was an exact copy of you somewhere, except they're the opposite gender, like you guys could literally have a freaky friday moment and nothing would change. Imagine the best friendship that could be found there."

        Comment


          #5
          Re: Spoiler Tags

          It's vBulletin.

          While I've seen that type of spoiler tag on many vBulletin forums, I've never found the code for it, and no one I ask will tell me it. It's a custom addition to the forum, so that means I have to hunt for it.



          Comment


            #6
            Re: Spoiler Tags

            I might have found the code here:

            http://www.vbulletin.org/forum/archi.../t-105176.html

            I can't view the code, however, because I don't have a vB license.
            Lil' Bean is here!

            Comment


              #7
              Re: Spoiler Tags

              I tried that before, and could never get it to work.



              Comment


                #8
                Re: Spoiler Tags

                You could always try simply putting white text inside of [CODE] tags. It's not the same, but at least it's better than massive spaces. Or, you could use Rot13.
                Last edited by DYRE; 12-11-2006, 05:27 PM.
                .

                Comment


                  #9
                  Re: Spoiler Tags

                  Bu lrn yvxr V'q ernyyl hfr gung...yby

                  Here I come Pav, like the Kool-Aid man barging into a funeral! Oh yeah!

                  Comment


                    #10
                    Re: Spoiler Tags

                    Originally posted by JPS Innovations View Post
                    Oh yea like I'd really use that...lol
                    Well, you could.
                    .

                    Comment


                      #11
                      Re: Spoiler Tags

                      Well it isn't be too difficult assuming Valk knows how vBulletin parses it's BB code (which can be pretty difficult, as it was hard to find and understand in phpBB).

                      What you could do is find where the board code tags are parsed and add in one for Spoilers, then find where it is replaced and do this

                      [php]$post_text = preg_replace('/\[Spoilers\]([.]*?)\[/Spoilers\]/i', '<span class="spoilers">$1</span>', $post_text);[/php]

                      Hurray for regular expressions.

                      Then in the style sheet for the Pav add

                      Code:
                      .spoilers {
                        color: #49566D; //background for pav posts
                        background: #49566D;
                      }
                      
                      .spoilers:hover {
                        color: white;
                      }
                      Or like nintendo did, use the non CSS file way of

                      [php]
                      $post_text = preg_replace('/\[Spoilers\]([.]*?)\[/Spoilers\]/i', '<span style="color: #49566D; background: #49566D;"
                      "class="spoilers" onmouseover="this.style.color=\'#FFFFFF\'" onmouseout="this.style.color=this.style.backgroundColor">$1</span>', $post_text);
                      [/php]
                      Last edited by thetruecoolness; 12-12-2006, 02:05 AM.
                      はじめまして。真(しん)の冷静(れいせい)です。どうぞよろしく。
                      http://www.thetruecoolness.com/

                      5198-2124-7210 Smash

                      Comment


                        #12
                        Re: Spoiler Tags

                        yea that rot13's pretty cool, I wonder if perversion would use it in one of his puzzle games thatd be cool

                        And wow TTC never ceases to amaze me

                        Here I come Pav, like the Kool-Aid man barging into a funeral! Oh yeah!

                        Comment


                          #13
                          Re: Spoiler Tags

                          You could always try simply putting white text inside of [code] tags.
                          The main problem with that is that the different backgrounds would need different colors associated with them. Text already shows up as white on a dark blue-ish background for me. So simply making text white wouldn't make any difference. If there was a way to use the background color variable instead of a color constant, that would work. But I don't know anything about vB, so I can't help with that.
                          [Edit: But it looks like TTC already posted that. So nevermind.]
                          Last edited by BlueSenshi; 12-12-2006, 02:30 PM.
                          What little I have you can borrow, 'cause I'm old...
                          and I'm blue...

                          Comment


                            #14
                            Re: Spoiler Tags

                            why not just make the background and text black, then you can highlight it with your mouse to see it without any .hover css tag
                            XBox Live: Alzar2k
                            Playstation Network: Alzar2k

                            Comment


                              #15
                              Re: Spoiler Tags

                              Can't we do it like we had the old pavilion forums and the mag forums?

                              It's appear as a link that said spoiler and when you clicked it the text appears.

                              Comment

                              Working...
                              X