TPOCJames
05-26-2006, 10:00 PM
S P O I L E R B O X
This hack will give you a box where you can enter a spoiler and highlight to view it. In my own opinion, it's much cleaner than the other ones, where you have to click a button to view it, as some people may quote the post and see the spoiler by accident. It's similar to my other hack, bbBox, however it is useful for spoilers.
Requirements:
1 Template Edit
1 New bbCode
Installation:
Go to Admin CP --> Styles and Templates --> Style --> All Style Options
Scroll down to the bottom, and under Additional Style Definitions, place the following somewhere. Use the page background color code for both the background and font color:
/* ***** spoiler colors and definitions ***** */
.spoiler
{
background: #000000;
color: #000000;
border-style: 1 px solid;
border-color: $stylevar[tborder];
}
.spoiler a:link
{
color: #000000;
}
.spoiler a:visited
{
color: #000000;
}
.spoiler a:hover, .spoiler a:active
{
color: #000000;
}
Save the template. Repeat above step for all templates that you use.
Go to Add a New bbCode.
Enter the following fields:
Title - SpoilerBox
Tag - spoiler
Replacement - <table class="tborder" align="center" border="0" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]"> <tbody><tr><td class="thead"><div class="smallfont" align="center"><strong>Highlight to View Spoiler</strong></div></td></tr> <tr><td class="spoiler"><div align="center" valign="middle"><font class=$stylevar[spoiler]>{param}</font></div></blockquote></td></tr> </tbody></table></div>
Example - Enter Any text here...
Description - Anything you would like to use to describe the SpoilerBox... if you'd like something:
This handy SpoilerBox will hide all nasty spoilers for some, however it gives you the option to highlight and read the spoilers if you choose. Use this whenever discussing spoilers in an open forum, as some may not wish to know.
Use {option} - No.
Button Image - I currently haven't made one. Feel free to make your own. ;)
You're done! Please click Install (https://vborg.vbsupport.ru/vborg_miscactions.php?do=installhack&threadid=116793) if you used this mod. :banana:
This hack will give you a box where you can enter a spoiler and highlight to view it. In my own opinion, it's much cleaner than the other ones, where you have to click a button to view it, as some people may quote the post and see the spoiler by accident. It's similar to my other hack, bbBox, however it is useful for spoilers.
Requirements:
1 Template Edit
1 New bbCode
Installation:
Go to Admin CP --> Styles and Templates --> Style --> All Style Options
Scroll down to the bottom, and under Additional Style Definitions, place the following somewhere. Use the page background color code for both the background and font color:
/* ***** spoiler colors and definitions ***** */
.spoiler
{
background: #000000;
color: #000000;
border-style: 1 px solid;
border-color: $stylevar[tborder];
}
.spoiler a:link
{
color: #000000;
}
.spoiler a:visited
{
color: #000000;
}
.spoiler a:hover, .spoiler a:active
{
color: #000000;
}
Save the template. Repeat above step for all templates that you use.
Go to Add a New bbCode.
Enter the following fields:
Title - SpoilerBox
Tag - spoiler
Replacement - <table class="tborder" align="center" border="0" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]"> <tbody><tr><td class="thead"><div class="smallfont" align="center"><strong>Highlight to View Spoiler</strong></div></td></tr> <tr><td class="spoiler"><div align="center" valign="middle"><font class=$stylevar[spoiler]>{param}</font></div></blockquote></td></tr> </tbody></table></div>
Example - Enter Any text here...
Description - Anything you would like to use to describe the SpoilerBox... if you'd like something:
This handy SpoilerBox will hide all nasty spoilers for some, however it gives you the option to highlight and read the spoilers if you choose. Use this whenever discussing spoilers in an open forum, as some may not wish to know.
Use {option} - No.
Button Image - I currently haven't made one. Feel free to make your own. ;)
You're done! Please click Install (https://vborg.vbsupport.ru/vborg_miscactions.php?do=installhack&threadid=116793) if you used this mod. :banana: