Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Beta Releases

Reply
 
Thread Tools
Details »»

Version: 1.00, by T?Pau T?Pau is offline
Developer Last Online: Jul 2006 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 02-04-2002 Last Update: Never Installs: 5
Is in Beta Stage  
No support by the author.

To make a really invisible Spoiler, just open admin/functions.php

find:

Code:
global $regexcreated,$searcharray,$replacearray,$phpversionnum

directly after that, insert the following:

Code:
,$counter
and be carefull, that you leave the ; at the end.
Then find:
Code:
 $bbcode = preg_replace("/(\[)(img)(])(\r\n)*([^\"]*)(\[\/img\])/siU", "<a href=\"\\5\" target=\"_blank\">\\5</a>", $bbcode);

    $bbcode=str_replace("\\'", "'", $bbcode);
directly after that, insert the following:
Code:
if($counter%2==0) {
      
      $bbcode = preg_replace("/(\[)(sp)(])(\r\n)*([^\"]*)(\[\/sp\])/siU", "<normalfont>Spoiler:<br></normalfont><br><font color=\"#13486D\">\\5</font>", $bbcode);
    }
    else {
    $bbcode = preg_replace("/(\[)(sp)(])(\r\n)*([^\"]*)(\[\/sp\])/siU", "<normalfont>Spoiler:<br></normalfont><br><font color=\"#1C5780\">\\5</font>", $bbcode);
}
    $bbcode=str_replace("\\'", "'", $bbcode);
You are done. Save and upload the file.
Add the Spoiler with [sp]Spoiler[/sp] in your posts.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #22  
Old 04-30-2003, 11:47 PM
GaleForce GaleForce is offline
 
Join Date: Sep 2002
Location: New York
Posts: 201
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #23  
Old 06-02-2003, 05:39 PM
ogden2k's Avatar
ogden2k ogden2k is offline
 
Join Date: Apr 2003
Posts: 192
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #24  
Old 06-03-2003, 12:24 AM
ogden2k's Avatar
ogden2k ogden2k is offline
 
Join Date: Apr 2003
Posts: 192
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

:ermm:
Reply With Quote
  #25  
Old 06-07-2003, 01:10 AM
S.Shady's Avatar
S.Shady S.Shady is offline
 
Join Date: Apr 2003
Location: Cleveland, Ohio
Posts: 179
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

*- Edit -*

Very nice hack. I just may use it. but atm i don't meed it.
Reply With Quote
  #26  
Old 10-16-2003, 10:24 AM
RandyP3's Avatar
RandyP3 RandyP3 is offline
 
Join Date: Sep 2003
Posts: 30
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #27  
Old 11-04-2003, 12:35 AM
bexie bexie is offline
 
Join Date: Jun 2003
Posts: 23
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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!
Reply With Quote
  #28  
Old 03-04-2005, 05:16 PM
Cle Cle is offline
 
Join Date: Jan 2005
Posts: 32
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #29  
Old 03-04-2005, 11:48 PM
pimpery pimpery is offline
 
Join Date: Nov 2004
Posts: 103
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 11:25 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.04106 seconds
  • Memory Usage 2,295KB
  • Queries Executed 23 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (7)bbcode_code
  • (4)bbcode_php
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (8)postbit
  • (9)postbit_onlinestatus
  • (9)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete