View Full Version : Need some help with coding
turdboy
09-30-2002, 10:43 PM
Well I kinda need help making a special tag. You see I'm trying to make a tag for spoilers so when you type is displays something lie this:
****Spoiler****
------------------------------------
The text or spoil goes here 7 lines down
****End Spoiler****
------------------------------------
That's what I'd like if it's possible Im sure it's difficult to set up so your help would be greatly appreciated.
Austin Dea
09-30-2002, 10:59 PM
<br>
<B>****Spoiler****</B><br>
------------------------------------<br>
<br><br><br><br><br><br><br>
{param}
<br><br><br><br>
<B>****End Spoiler****</B><br>
------------------------------------
If you want it that simple... I do it like this, where the user has to highlight the text to see it (idea from the old EthosHQ). I could give you the code if you want.
Camellia
09-30-2002, 11:01 PM
Heres my go at it
Code Tag:
spoil
Code Replacement:
<b>****Spoiler****<br>
-----------------------------------</b><br><br><br><br><br><br><br><br>
{param}<br><br><br><br><br><br><br>
<b>****End Spoiler****<br>
-----------------------------------</b>
Code Example:
Well this here is a spoiler
Code Explanation:
This tag creates your spoiler inbetween specified tags and lots of spaces.
Hope it works
heh, i posted just after him, oh well, ya i like the highlight idea for this type of thing more.
Austin Dea
09-30-2002, 11:03 PM
Hehe, same thing (I realize we posted at about the same time ;)).
turdboy
10-01-2002, 01:08 AM
If you want it that simple... I do it like this, where the user has to highlight the text to see it (idea from the old EthosHQ). I could give you the code if you want.
Yea give me that code to please.
Edit that doesn't work the one you gave me.
Austin Dea
10-01-2002, 08:26 PM
uh..It did when I tested on my forums...
Anyway, my code is:
<center><table border="0" align="center" width="500" cellpadding="3" cellspacing="1">
<tr><td><font size="1" color=#ff0000><b>Spoiler, highlight to read:</b></font></td></tr>
<tr><td style="BORDER: #000000 1px solid; FONT-SIZE: 11px; COLOR: 000000; FONT-FAMILY: Verdana,Arial; BACKGROUND-COLOR: #000000;">{param}</td></tr></table></center>
turdboy
10-01-2002, 11:29 PM
I got both to work. I had yes checked for the option thingy. Thanks again.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.