PDA

View Full Version : [Release] Spoiler


roxics
09-22-2003, 10:00 PM
The following will add a spolier table to a post. It is a CSS addition. But you must have HTMl turned on the forum you want to use it in.

For some reason I could not attached the text file so here are it's contents:
----------------------------
|By M.S.TESH (roxics)
|http://www.VisionEngine.com (http://www.visionengine.com/)
|mstesh@hotmail.com
|For vBulletin 2.x
---------------------------

This is a CSS addition. But for it to work you must create a custom vBcode to use for teh spoiler tags.
Insert the following CSS into your "Head Insert" of your style(s)

.spoiler {
font-family: verdana, arial, helvetica, sans-serif;
color: #F1F1F1;
background-color: #F1F1F1;
font-size: {normalfont};
border: 1px dashed #111111;
}

Now tell your members to put whatever spoiler they want between the following tags:
Your spoiler goes here
Highlight with your mouse to read.

As administrator you must now create a custom vb code for these spoiler tags. Do so by using this code:
<div class="spoiler">spoiler here</div>

An example of the final product can be found here:
http://www.visionengine.com/board/showthread.php?s=&threadid=2976

This is great for forums where you talk about movies, games, television shows
or anything where someone may not want to accidentally read something.

MrNase
09-23-2003, 04:42 PM
But for it to work you must have HTML turned on in your forum.
sorry, i think i didn't get you?! Shall i post my password too? :D

Why don't you add another bbcode like [spoiler] and replace that with:


<div class="spoiler">{param}</div>



??? Much saver ;)

roxics
09-23-2003, 04:48 PM
Well that's an option to.

I don't understand why having HTML turned on is bad? Can you please explain?

MrNase
09-23-2003, 04:55 PM
you have no controll about what code the user is using and he might use some code that gets all the cookie data from the users.
But wait for a better explanation, i really think that some experts are in here which can explain it more detailed ;)

roxics
09-23-2003, 04:57 PM
Either way I understand what you are saying and I thank you for your observation. I will change my original post to mention use of vBcode instead. I have already done so on my forum.

MrNase
09-23-2003, 05:04 PM
no problem, let's make the web a safer place for our children ;)

already changed you post? Don't think so ;) Please give a detailed explanation what has to be added to which field in the bbcode manager :)

Zachery
09-23-2003, 10:01 PM
i think some one already has done spolier code a few times over