vBulletin Mods

The Official vBulletin Modifications Site
https://www.vbulletin.org/forum/showthread.php?t=84809

Need some help with coding
by turdboy
01 Oct 2002 00:43

Well I kinda need help making a special tag. You see I'm trying to make a tag for spoilers so when you type [spoil][/spoil] 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 01 Oct 2002 00:59

2 Attachment(s)

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

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 01 Oct 2002 01:01

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:

[spoil]Well this here is a spoiler[/spoil]

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 01 Oct 2002 01:03

Hehe, same thing (I realize we posted at about the same time ;)).

turdboy 01 Oct 2002 03:08

Quote:

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 01 Oct 2002 22:26

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 02 Oct 2002 01:29

I got both to work. I had yes checked for the option thingy. Thanks again.


All times are GMT. The time now is 06:59.

Powered by vBulletin® Version 3.8.14
Copyright © 2020, MH Sub I, LLC dba vBulletin. All Rights Reserved. vBulletin® is a registered trademark of MH Sub I, LLC
Copyright ©2001 - , vbulletin.org. All rights reserved.