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

Reply
 
Thread Tools
[Release] Spoiler Code Details »»
[Release] Spoiler Code
Version: 1.00, by Matrixgl Matrixgl is offline
Developer Last Online: May 2006 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 03-16-2003 Last Update: Never Installs: 1
 
No support by the author.

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.

Show Your Support

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

Comments
  #2  
Old 03-17-2003, 03:25 AM
Vladdy Vladdy is offline
 
Join Date: Feb 2003
Posts: 149
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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 )

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

Good job!
Reply With Quote
  #3  
Old 03-17-2003, 03:29 AM
Vladdy Vladdy is offline
 
Join Date: Feb 2003
Posts: 149
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I did it a different way though, but still as a vb code...
Reply With Quote
  #4  
Old 03-21-2003, 01:44 AM
Buddha Buddha is offline
 
Join Date: Jan 2002
Posts: 314
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #5  
Old 03-21-2003, 05:16 AM
Tony G's Avatar
Tony G Tony G is offline
 
Join Date: Nov 2001
Location: Melbourne, Australia
Posts: 8,357
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

There are many ways of doing it, but this one should work nice.
Reply With Quote
  #6  
Old 03-24-2003, 12:53 AM
Matrixgl Matrixgl is offline
 
Join Date: Sep 2002
Location: Canada
Posts: 79
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #7  
Old 03-28-2003, 10:59 PM
Vladdy Vladdy is offline
 
Join Date: Feb 2003
Posts: 149
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Matrixgl
vladdy: Least it was done by somebody
hehe this is true
Reply With Quote
  #8  
Old 03-29-2003, 12:29 PM
Buddha Buddha is offline
 
Join Date: Jan 2002
Posts: 314
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
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.
Reply With Quote
  #9  
Old 04-18-2003, 04:33 AM
Matrixgl Matrixgl is offline
 
Join Date: Sep 2002
Location: Canada
Posts: 79
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #10  
Old 04-29-2003, 04:50 PM
Incendium`
Guest
 
Posts: n/a
Default

*claps for MatrixGL*

I just installed this!
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 01:41 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.04991 seconds
  • Memory Usage 2,290KB
  • 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
  • (2)bbcode_code
  • (4)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
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (9)postbit_onlinestatus
  • (10)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