vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=139)
-   -   [Release] Spoiler Code (https://vborg.vbsupport.ru/showthread.php?t=86609)

Matrixgl 03-16-2003 10:00 PM

[Release] Spoiler Code
 
Author: Habib Ahsan Tamim aka Matrix

Introduction: This is my very first submission, although its technically a custom vB code. I was told by filburt1 to post it here.

There are a few spoiler hack out there, which all involves editing files, and whatnot, but none of them is as simple as this one.

I am pretty sure that this one is not on vbulletin.org or here, in vbulletintemplates.com, but if you have seen this before somewhere (which is very possible since this is not a complex code), please let me or any other moderator/administrator know to take it off.

Description: This vB code will allow you to post spoiler messages in posts ( [spoiler]The spoiler goes here[/spoiler] ). This is really useful in many situations like when you are talking about the ending of a movie, and don?t want to spoil the fun for those who haven?t watched the movie yet.

Demo: Here

Screenshot: Attached. First one is what you see when you open the thread. And the second one is when you highlight the part to see the spoiler message.

The Code: Attached.

Vladdy 03-17-2003 03:25 AM

OMG! I've been working on this, lol, **** you!! <--(That blocked word begins with a D and ends with an N just so you don't think it is another 4 letter word :D)

I visit a board that uses this, but I didn't want a hack, oh well you beat me to it :(

Good job! :D

Vladdy 03-17-2003 03:29 AM

I did it a different way though, but still as a vb code...

Buddha 03-21-2003 01:44 AM

if someone wants to accomplish the same using css, you can try this.

Code:

<table width='95%' align='center'><tr>    <td><smallfont color=red><b>Spoiler Alert</b> (highlight text):</font></td>
</tr><tr><td class='spoiler'>{param}</td></tr></table>

and then add this to your css file

.spoiler {  background-color: #ffffff; font-family:
Verdana, Arial, Helvetica, sans-serif; font-size: 12px; color: #ffffff;
 text-decoration: none; border:1px solid #c4c4c4;
}

or, if you don't have a css file that you link to (you should, man), just use this instead.

Code:

<table width='95%' align='center'><tr>    <td><smallfont color=red><b>Spoiler Alert</b> (highlight text):</font></td>
</tr><tr><td style="background-color: #ffffff; font-family:
Verdana, Arial, Helvetica, sans-serif; font-size: 12px; color: #ffffff;
 text-decoration: none; border:1px solid #c4c4c4">{param}</td></tr></table>

hope you don't mind, matrixgl. you kinda inspired me to do this using css. you can also add the button in your template, and edit your vb language file (won't discuss that here however, as that would qualify this as a hack).

here are some screenshots of what it comes out as.

Tony G 03-21-2003 05:16 AM

There are many ways of doing it, but this one should work nice. :)

Matrixgl 03-24-2003 12:53 AM

Quote:

Originally Posted by Buddha
hope you don't mind, matrixgl. you kinda inspired me to do this using css. you can also add the button in your template, and edit your vb language file (won't discuss that here however, as that would qualify this as a hack).

here are some screenshots of what it comes out as.

Nope, not at all :)....now that I look at it, yours look a lot nicer and cleaner *insert thumbs up here*

I thought about including a css part, but scrapped it because I wanted to go for the easiest method :)

Nice job!

vladdy: Least it was done by somebody :p

Vladdy 03-28-2003 10:59 PM

Quote:

Originally Posted by Matrixgl
vladdy: Least it was done by somebody :p

hehe this is true :D

Buddha 03-29-2003 12:29 PM

Quote:

Originally Posted by Matrixgl
Nope, not at all :)....now that I look at it, yours look a lot nicer and cleaner *insert thumbs up here*

I thought about including a css part, but scrapped it because I wanted to go for the easiest method :)

Nice job!

vladdy: Least it was done by somebody :p

thanks.
actually, got me thinking of a few other things i could do, so i made a poker table complete with chips... it's like the quotes table, but looks like a poker table.
(we have virtual poker games on my site, for fun, not real cash.)

i'm thinking of making a cool sarcasm tag now that will also include an image.

Matrixgl 04-18-2003 04:33 AM

Quote:

Originally Posted by Buddha
thanks.
actually, got me thinking of a few other things i could do, so i made a poker table complete with chips... it's like the quotes table, but looks like a poker table.
(we have virtual poker games on my site, for fun, not real cash.)

i'm thinking of making a cool sarcasm tag now that will also include an image.

Good luck ;)

Incendium` 04-29-2003 04:50 PM

*claps for MatrixGL*

I just installed this!


All times are GMT. The time now is 07:14 PM.

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.01105 seconds
  • Memory Usage 1,739KB
  • 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
  • (2)bbcode_code_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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