vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=155)
-   -   SpoilerBox (https://vborg.vbsupport.ru/showthread.php?t=116793)

TPOCJames 05-26-2006 09:00 PM

SpoilerBox
 
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:
    Quote:

    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 if you used this mod. :banana:

TPOCJames 05-27-2006 01:47 AM

Screenshots Below:

Bandit8007 05-27-2006 02:49 AM

cool. gonna check it out.

mashour.net 05-27-2006 05:45 AM

cooool template

projectego 05-27-2006 08:32 AM

This SpoilerBox looks pretty cool, cheers! ;)

TPOCJames 05-27-2006 01:28 PM

If you two like it, please click install. :)

FLMom 05-27-2006 01:49 PM

Very good job! I'm not going to install it now, but will possibly do it in the future :D

TPOCJames 05-28-2006 01:09 AM

Sounds good to me Cori. :)


All times are GMT. The time now is 09:30 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02496 seconds
  • Memory Usage 1,724KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete