PDA

View Full Version : [Release] Spoiler Code


Matrixgl
03-16-2003, 10:00 PM
Author: Habib Ahsan Tamim aka Matrix

Introduction: This is my very first submission, although its technically a custom vB code. I was told by filburt1 to post it here.

There are a few spoiler hack out there, which all involves editing files, and whatnot, but none of them is as simple as this one.

I am pretty sure that this one is not on vbulletin.org or here, in vbulletintemplates.com, but if you have seen this before somewhere (which is very possible since this is not a complex code), please let me or any other moderator/administrator know to take it off.

Description: This vB code will allow you to post spoiler messages in posts ( The spoiler goes here ). This is really useful in many situations like when you are talking about the ending of a movie, and don?t want to spoil the fun for those who haven?t watched the movie yet.

Demo: Here (http://boards.bluegoop.net/showthread.php?s=&postid=145543#post145543)

Screenshot: Attached. First one is what you see when you open the thread. And the second one is when you highlight the part to see the spoiler message.

The Code: Attached.

Vladdy
03-17-2003, 03:25 AM
OMG! I've been working on this, lol, **** you!! <--(That blocked word begins with a D and ends with an N just so you don't think it is another 4 letter word :D)

I visit a board that uses this, but I didn't want a hack, oh well you beat me to it :(

Good job! :D

Vladdy
03-17-2003, 03:29 AM
I did it a different way though, but still as a vb code...

Buddha
03-21-2003, 01:44 AM
if someone wants to accomplish the same using css, you can try this.


<table width='95%' align='center'><tr> <td><smallfont color=red><b>Spoiler Alert</b> (highlight text):</font></td>
</tr><tr><td class='spoiler'>{param}</td></tr></table>

and then add this to your css file

.spoiler { background-color: #ffffff; font-family:
Verdana, Arial, Helvetica, sans-serif; font-size: 12px; color: #ffffff;
text-decoration: none; border:1px solid #c4c4c4;
}

or, if you don't have a css file that you link to (you should, man), just use this instead.

<table width='95%' align='center'><tr> <td><smallfont color=red><b>Spoiler Alert</b> (highlight text):</font></td>
</tr><tr><td style="background-color: #ffffff; font-family:
Verdana, Arial, Helvetica, sans-serif; font-size: 12px; color: #ffffff;
text-decoration: none; border:1px solid #c4c4c4">{param}</td></tr></table>

hope you don't mind, matrixgl. you kinda inspired me to do this using css. you can also add the button in your template, and edit your vb language file (won't discuss that here however, as that would qualify this as a hack).

here are some screenshots of what it comes out as.

Tony G
03-21-2003, 05:16 AM
There are many ways of doing it, but this one should work nice. :)

Matrixgl
03-24-2003, 12:53 AM
hope you don't mind, matrixgl. you kinda inspired me to do this using css. you can also add the button in your template, and edit your vb language file (won't discuss that here however, as that would qualify this as a hack).

here are some screenshots of what it comes out as.

Nope, not at all :)....now that I look at it, yours look a lot nicer and cleaner *insert thumbs up here*

I thought about including a css part, but scrapped it because I wanted to go for the easiest method :)

Nice job!

vladdy: Least it was done by somebody :p

Vladdy
03-28-2003, 10:59 PM
vladdy: Least it was done by somebody :p

hehe this is true :D

Buddha
03-29-2003, 12:29 PM
Nope, not at all :)....now that I look at it, yours look a lot nicer and cleaner *insert thumbs up here*

I thought about including a css part, but scrapped it because I wanted to go for the easiest method :)

Nice job!

vladdy: Least it was done by somebody :p
thanks.
actually, got me thinking of a few other things i could do, so i made a poker table complete with chips... it's like the quotes table, but looks like a poker table.
(we have virtual poker games on my site, for fun, not real cash.)

i'm thinking of making a cool sarcasm tag now that will also include an image.

Matrixgl
04-18-2003, 04:33 AM
thanks.
actually, got me thinking of a few other things i could do, so i made a poker table complete with chips... it's like the quotes table, but looks like a poker table.
(we have virtual poker games on my site, for fun, not real cash.)

i'm thinking of making a cool sarcasm tag now that will also include an image.
Good luck ;)

Incendium`
04-29-2003, 04:50 PM
*claps for MatrixGL*

I just installed this!

Buddha
04-30-2003, 07:13 PM
Good luck ;)
thanks matrixgl... yeah, i got a sweet sarcasm tag some time ago... here's what it looks like if you want to see it.

the image is there using css, so it's always in the bottom right corner. and i set a table height minimum size, so you always see at least this much of the image.

cYbercOsmOnauT
06-22-2003, 06:20 PM
I'll give it a try.. *installed* :)

imported_Nova462
01-14-2004, 06:22 AM
I have seen this hack where the spoiler box was a button. Click it and it shows the spoiler. How would I go about doing it that way?

akiy
01-14-2004, 03:13 PM
I have seen this hack where the spoiler box was a button. Click it and it shows the spoiler. How would I go about doing it that way? See:

https://vborg.vbsupport.ru/showthread.php?t=59662

imported_Aero
01-21-2004, 11:15 PM
thanks for posting this i needed something like this

Richy T.
02-23-2004, 02:25 PM
INSTALLED

Pretty neat

Blue Moose Aaron
03-18-2004, 01:09 PM
See:

https://vborg.vbsupport.ru/showthread.php?t=59662
I got an error when I tried to go to that page. I'm looking for that version

MasterObi1
05-14-2004, 11:33 AM
I too am looking for the click a button to view spoiler... I have seen it on many sites, but can not seem to find the code.

Can anyone help please??

ryancooper
05-14-2004, 07:52 PM
I too am looking for the click a button to view spoiler... I have seen it on many sites, but can not seem to find the code.

Can anyone help please??

http://www.vbulletintemplates.com/mods/showthread.php?t=5832