![]() |
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 Then find: Code:
$bbcode = preg_replace("/(\[)(img)(])(\r\n)*([^\"]*)(\[\/img\])/siU", "<a href=\"\\5\" target=\"_blank\">\\5</a>", $bbcode); Code:
if($counter%2==0) { Add the Spoiler with [sp]Spoiler[/sp] in your posts. |
I dont' understand what this does...
Demo perhaps? Thanks Steve |
|
First Bugfix just after one day ;)
Found out, that if you try to place other vbcode within the spoiler, it doesn`t work anymore. :( This is how to fix it: Code:
if($counter%2==0) { Instead of the colors Code:
<font color=\"#13486D\"> Code:
{ firstaltcolor } |
you can add theses in BB code neway i think
|
I've got a [spoiler] tag on my board. No hack required, really.
|
:confused:
How did you give the spoiler text the same color, as the background color in all styles? I have styles with black, gray and orange background colors and if I make the spoiler text black it is easy to read in the other styles with the gray and orange background color. Mine works for all styles and gets the colors right, so that it is really invisible in all the styles. |
It's simple: you stick it in a box with it's own BG color. Watch (first post):
http://www.movieforums.net/showthread.php?threadid=1731 I've tried to implement a JS to highlight it automatically, but keep on running into problems. |
Saw it :)
But what about different styles? Does it always look the same, or is the color changed in different styles? |
Nope, looks the same. I don't use different styles anyway...but even if I did, the gray-on-gray would still work alright.
|
You can also do this:
Add a new vb code- In first box put: Code:
spoiler Code:
<font color="#FFFF66"><b>Warning</font> <font color="FFFFFF"> Spoiler Ahead!</b> :</font><font class=spoiler>{param}</font> 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. Now open style, go to modify, fonts/colors/properties and in the header instert, there should be a code like this: PHP Code:
PHP Code:
PHP Code:
|
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 :)
|
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 |
Quote:
|
best spoiler tag i ever saw was in that massive thread with loads of bbcodes in over at vbulletin.com :D
|
YOu got the link by any chance? I searched there and I dont think I found it :S
|
Maybe these will help you out:
http://www.vbulletin.com/forum/showt...threadid=24595 http://www.vbulletin.com/forum/showt...threadid=16306 |
The one I like best is TWTCommish but he don't seem to want to explain how he did it?
|
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.
|
I can safely conclude this works in 2.3
VERY nice :) This was exactly what I was looking for |
You might like the [spoiler] tag better, but up to you. Not trying to sway you from this guys hard work, but I personally find the tag more usefull :)
|
Quote:
|
:ermm: :eek:
|
*- Edit -*
Very nice hack. I just may use it. but atm i don't meed it. |
What I used is this:
Add: PHP Code:
for instructions on how to add the vbcode, click on the attachment. however, one down side of this is that your alternating tables must be of the same colour, if not, the tags on one table will look imbedded onto the forum, but on the other colour it'll show up oddly. [for easy copying and pasting] vB code tag: spoiler vB code replacement: <b>Spoiler:</b> <font class=spoiler>{param}</font> vB code example: [spoiler]Spoiler text[/spoiler] vB code explanation: [anything you want] Use {options}?: No |
Question!
If I have alternating table background colors, how can I use the simple hack that DemiNeo posted? Or will I need to use the original way that was posted? Great hack! Extremely useful! My board is a Harry Potter board, and with not everyone being uptodate on their reading, it's frustrating to hear, "YOU SPOILED IT FOR ME!" which is why this hack makes me happy. :) Thanks! |
Somehow this spoiler code doesn't work for me. I use 2.3.5 and I can't find this code:
Quote:
|
Quote:
---better spoiler tags, backward compatability patch for non-js users just added. |
All times are GMT. The time now is 02:46 AM. |
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:
|