Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Template Modifications
FAQ Community Calendar Today's Posts Search

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

Version: Unknown Rating:
Released: 07-08-2003 Last Update: Never Installs: 7
 
No support by the author.

Author: Unknown or eyecravedvd
Description: Hides text that some readers may not want to read.

I'm not sure who did the first code, because I've seen it on a few sites, but if someone wants to step forward I'll give them the credit for sure.

I've redone this code to be completely CSS complient. There are no more tables.

It has only been tested with VB 3.0.3, but I'm sure it will work on older versions as well.

*Update - Error in CSS with width has been fixed. New text file.*

Show Your Support

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

Comments
  #2  
Old 07-14-2003, 03:14 PM
mymilkexpired mymilkexpired is offline
 
Join Date: Mar 2003
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thats a pretty nifty hack.. i like that!
Reply With Quote
  #3  
Old 07-15-2003, 03:48 AM
EyeCrave EyeCrave is offline
 
Join Date: Sep 2002
Location: Layer 2 of the DVD
Posts: 41
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks, I'm glad you like it. Comes in handy for my site. DVD & Movies... not too many people like having a movie spoiled.
Reply With Quote
  #4  
Old 07-15-2003, 04:53 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

Definently, love the spoiler tags.
Reply With Quote
  #5  
Old 07-15-2003, 11:48 AM
SpeedStreet SpeedStreet is offline
 
Join Date: Aug 2002
Posts: 291
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nifty idea, but with VB3 this can be executed alot more efficiently.

Remember, the transparent color! This will alleviate the need to hard code something in, so that it can apply to multiple themes. Also, by using conditionals, you open yourself up to allowing Admins the right to view it without having to highlight the information.

Conditionals are your friend
Reply With Quote
  #6  
Old 07-16-2003, 09:09 PM
imported_ogden2k's Avatar
imported_ogden2k imported_ogden2k is offline
 
Join Date: Apr 2003
Location: Maine, USA
Posts: 60
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

There needs to be some specific rules here, everything HAS TO BE XHTML compliant! That code is not!
This is how it should be:
Code:
<blockquote>
<table bgcolor="#000000" cellspacing="0">
<tr>
<td><font color="#FFFFFF" size="1">Spoiler:</font>
<br /><font color="black">{param}</font>
</td>
</tr>
</table>
</blockquote>
There's a better way to do it with CSS if you want(XHTML compliant too):
In BB custom codes, add a new custom code:
Code:
<font color="#000000"><strong>Spoiler</strong>:</font>
<br /><font class="spoiler">{param}</font>
Under style manger, Additional CSS Definitions, add:
Code:
.spoiler {
    color: #B7B7B7;
    background: #B7B7B7;
}
Reply With Quote
  #7  
Old 07-16-2003, 10:50 PM
EyeCrave EyeCrave is offline
 
Join Date: Sep 2002
Location: Layer 2 of the DVD
Posts: 41
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

There is no point in adding it to the CSS. That just means there's more to add. This is quick and gets the job done.

I added the "'s around the words, just to make it XHTML compliant.

Either way, it'll work fine.
Reply With Quote
  #8  
Old 07-17-2003, 09:50 PM
imported_ogden2k's Avatar
imported_ogden2k imported_ogden2k is offline
 
Join Date: Apr 2003
Location: Maine, USA
Posts: 60
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Either it will work, but that's not the best way to it. Why not be compliant with the standards?

And CSS works much better, it's easier and less over hall.
Reply With Quote
  #9  
Old 07-19-2003, 08:58 AM
Sephiroth 9999's Avatar
Sephiroth 9999 Sephiroth 9999 is offline
 
Join Date: Jul 2002
Posts: 37
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sweet mod - I like it!
Reply With Quote
  #10  
Old 07-21-2003, 08:11 PM
imported_MaDCaT75 imported_MaDCaT75 is offline
 
Join Date: Jul 2003
Posts: 39
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok but how can I choose different colors?
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 01:37 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.04912 seconds
  • Memory Usage 2,287KB
  • 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
  • (3)bbcode_code
  • (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
  • (10)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