Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Beta Releases
FAQ Community Calendar Today's Posts Search

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
  #12  
Old 02-20-2002, 08:11 PM
DemiNeo0101's Avatar
DemiNeo0101 DemiNeo0101 is offline
 
Join Date: Feb 2002
Posts: 125
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #13  
Old 05-20-2002, 11:05 PM
Shadowblazer Shadowblazer is offline
 
Join Date: Dec 2001
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Heh, I see that you and I think alike T'Pau. I want my spoiler tag to use the colors of the style that the user is using, not a standard black on black (or whatever color). Thanks for the hack
Reply With Quote
  #14  
Old 05-26-2002, 03:15 AM
JeffH JeffH is offline
 
Join Date: Mar 2002
Location: IL, USA
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can someone help me here? The instructions for doing T'Pau hack is way to vague and confusing to me. I'm new to any VB code, etc. and can't find any of the templates, code or what he is referring to.

Does anyone have a better Spoiler hack like a "Spoiler" VB code button such as the "Quote" button? How do you do this, there are no good details for it?

Thanks for any help, please list steps if replying on how it's done.

Regards,

Jeff
Reply With Quote
  #15  
Old 08-19-2002, 03:11 PM
yzztik's Avatar
yzztik yzztik is offline
 
Join Date: Feb 2002
Posts: 87
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Shadowblazer
Heh, I see that you and I think alike T'Pau. I want my spoiler tag to use the colors of the style that the user is using, not a standard black on black (or whatever color). Thanks for the hack
Whats the pararmeter I would enter in the css to use the default background for that post?
Reply With Quote
  #16  
Old 08-19-2002, 08:27 PM
Dean C's Avatar
Dean C Dean C is offline
 
Join Date: Jan 2002
Location: England
Posts: 9,071
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

best spoiler tag i ever saw was in that massive thread with loads of bbcodes in over at vbulletin.com
Reply With Quote
  #17  
Old 08-19-2002, 10:03 PM
yzztik's Avatar
yzztik yzztik is offline
 
Join Date: Feb 2002
Posts: 87
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

YOu got the link by any chance? I searched there and I dont think I found it :S
Reply With Quote
  #18  
Old 08-29-2002, 06:32 AM
Alien's Avatar
Alien Alien is offline
 
Join Date: Oct 2001
Posts: 827
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Maybe these will help you out:

http://www.vbulletin.com/forum/showt...threadid=24595

http://www.vbulletin.com/forum/showt...threadid=16306
Reply With Quote
  #19  
Old 10-25-2002, 08:53 PM
Xetox Xetox is offline
 
Join Date: Jun 2002
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The one I like best is TWTCommish but he don't seem to want to explain how he did it?
Reply With Quote
  #20  
Old 02-04-2003, 01:43 PM
amykhar's Avatar
amykhar amykhar is offline
 
Join Date: Oct 2001
Location: PA
Posts: 4,438
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The best spoiler hack was written by tubedog. It doesn't just create the same color text, it hides the message unless the user clicks on it.
Reply With Quote
  #21  
Old 04-30-2003, 11:02 PM
Koutaru's Avatar
Koutaru Koutaru is offline
 
Join Date: Feb 2003
Location: IL
Posts: 589
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I can safely conclude this works in 2.3

VERY nice This was exactly what I was looking for
Reply With Quote
Reply


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 02:56 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.09753 seconds
  • Memory Usage 2,316KB
  • Queries Executed 25 (?)
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
  • (3)bbcode_php
  • (1)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
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)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