Back to vBulletin 3.5 Template Modifications

SpoilerBox
Mod Version: 1.00, by TPOCJames

This modification is in the archives.
vB Version: 3.5.4 Rating: (0 vote - 0 average) Installs: 10
Released: 27 May 2006 Last Update: Never Downloads: 1
Not Supported  

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:
  1. Go to Admin CP --> Styles and Templates --> Style --> All Style Options
  2. 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:

    Code:
    /* ***** 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;
    }
  3. Save the template. Repeat above step for all templates that you use.
  4. Go to Add a New bbCode.
  5. Enter the following fields:

    Title -
    Code:
    SpoilerBox
    Tag -
    Code:
    spoiler
    Replacement -
    Code:
    <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 [spoiler]Any text here...[/spoiler]
    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 if you used this mod. :banana:

Download

No files for download.

Supporters / CoAuthors

  • TPOCJames

vblts.ru supports vBulletin®, 2022-2025