vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Beta Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=5)
-   -   My first hack - Invisible Spoilers (https://vborg.vbsupport.ru/showthread.php?t=34819)

GaleForce 04-30-2003 11:47 PM

You might like the [spoiler] tag better, but up to you. Not trying to sway you from this guys hard work, but I personally find the tag more usefull :)

ogden2k 06-02-2003 05:39 PM

Quote:

02-20-02 at 06:11 PM DemiNeo0101 said this in Post #11
You can also do this:

Add a new vb code-
In first box put:
Code:

spoiler
In the second box put:
Code:

<font color="#FFFF66"><b>Warning</font> <font color="FFFFFF"> Spoiler Ahead!</b> :</font><font class=spoiler>{param}</font>
in description put:
Code:

The [spoiler] tag allows you to place text in your message that is unreadable, unless someone highlites it. This makes viewing the text a deliberate effort. This is for posting messages about movies or other things where you might not wish to give away plot points to those that haven't seen it yet.
Turn {Options} off, press ok.

Now open style, go to modify, fonts/colors/properties

and in the header instert, there should be a code like this:
PHP Code:

<meta http-equiv="MSThemeCompatible" content="Yes">
<
style type="text/css"

add this
PHP Code:

.spoiler    {colorblackbackgroundblack

directly after it, to make it look like this:
PHP Code:

<meta http-equiv="MSThemeCompatible" content="Yes">
<
style type="text/css">
.
spoiler    {colorblackbackgroundblack}
BODY 

I find that to be alot easyer :)

How do I add a button for that?

ogden2k 06-03-2003 12:24 AM

:ermm: :eek:

S.Shady 06-07-2003 01:10 AM

*- Edit -*

Very nice hack. I just may use it. but atm i don't meed it.

RandyP3 10-16-2003 10:24 AM

What I used is this:



Add:

PHP Code:

.spoiler    {color: {firstaltcolor}; background: {firstaltcolor}}; 

to Head Insert, just right before </style>

for instructions on how to add the vbcode, click on the attachment.

however, one down side of this is that your alternating tables must be of the same colour, if not, the tags on one table will look imbedded onto the forum, but on the other colour it'll show up oddly.

[for easy copying and pasting]

vB code tag: spoiler
vB code replacement: <b>Spoiler:</b> <font class=spoiler>{param}</font>
vB code example: [spoiler]Spoiler text[/spoiler]
vB code explanation: [anything you want]
Use {options}?: No

bexie 11-04-2003 12:35 AM

Question!

If I have alternating table background colors, how can I use the simple hack that DemiNeo posted? Or will I need to use the original way that was posted?

Great hack! Extremely useful!
My board is a Harry Potter board, and with not everyone being uptodate on their reading, it's frustrating to hear, "YOU SPOILED IT FOR ME!" which is why this hack makes me happy. :) Thanks!

Cle 03-04-2005 05:16 PM

Somehow this spoiler code doesn't work for me. I use 2.3.5 and I can't find this code:

Quote:

$bbcode = preg_replace("/(\[)(img)(])(\r\n)*([^\"]*)(\[\/img\])/siU", "<a href=\"\\5\" target=\"_blank\">\\5</a>", $bbcode);
And I cannot blend it with the blackground color. I already tried {firstaltcolor} and {secondaltcolor}, but they appear as different colors

pimpery 03-04-2005 11:48 PM

Quote:

Originally Posted by Cle
Somehow this spoiler code doesn't work for me. I use 2.3.5 and I can't find this code:



And I cannot blend it with the blackground color. I already tried {firstaltcolor} and {secondaltcolor}, but they appear as different colors

https://vborg.vbsupport.ru/showthrea...ewpost&t=76405
---better spoiler tags, backward compatability patch for non-js users just added.


All times are GMT. The time now is 01:46 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.01003 seconds
  • Memory Usage 1,747KB
  • 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
  • (3)bbcode_code_printable
  • (4)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete