![]() |
[Release] Spoiler Code
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.* |
Thats a pretty nifty hack.. i like that!
|
Thanks, I'm glad you like it. Comes in handy for my site. DVD & Movies... not too many people like having a movie spoiled.
|
Definently, love the spoiler tags. :)
|
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 :D |
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> In BB custom codes, add a new custom code: Code:
<font color="#000000"><strong>Spoiler</strong>:</font> Code:
.spoiler { |
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. |
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. |
Sweet mod - I like it! :)
|
Ok but how can I choose different colors?
|
Quote:
You can also do the same with the original posters too. |
my code seems to be screwed up somehow.....
I did it exactly like you guys said. I tried adding double spoiler tags. |
Nevermind I got it now :D
|
Am I missing something here. The txt file attached only explains how you add a bbcode function. What else do I need to do to get this working? For instance, where is all the code I need to change the colors etc?..
|
Great mod! Thanks you! :)
|
Text file has been updated in the first post. I have now made it fully CSS compatible. Please note, that it doesn't work properly in the admincp. It does work fine in the forums. For an example head here
http://www.eyecravedvd.com/forums/showthread.php?t=423 |
Great hack goes well with my harry potter site im sure m1th will agree
|
Finally this was exactly what I was looking for! Thanks so much
|
This is a great add-on, thanks :)
|
All times are GMT. The time now is 04:47 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|