Science Fiction Fantasy  
Go Back   Science Fiction Fantasy Chronicles: forums > General > Feedback

Feedback Raise questions, queries, bug reports, comments, general member feedback here, please. :)

Reply
 
LinkBack Thread Tools Rate Thread
Old 3rd February 2008, 03:25 AM   #1 (permalink)
Registered User
 
Lucien21's Avatar
 
Join Date: Oct 2006
Location: Midlothian
Posts: 607
Spoiler Tags

Do we have or is it possible to add a spoiler function into the tags.

Changing the text colour doesn't work that well.

With a real spoiler tag we could discuss things without fear of spoiling it for others.

I got the code from another site that uses the same board so it shouldn't be that hard. BB Code - Spoiler Tag - vBulletin FAQ Forums

Quote:
<div style="margin: 5px;">
<div class="smallfont" style="margin-bottom: 2px;">
<b>Spoiler!</b> <input value="Show" style="margin: 0px; padding: 0px; width: 45px; font-size: 10px;" onclick="if(this.parentNode.parentNode.getElements ByTagName('div')[1].getElementsByTagName('div')[0].style.display != 'inline')
{ this.parentNode.parentNode.getElementsByTagName('d iv')[1].getElementsByTagName('div')[0].style.display = 'inline'; this.innerText = ''; this.value = 'Hide'; }
else
{ this.parentNode.parentNode.getElementsByTagName('d iv')[1].getElementsByTagName('div')[0].style.display = 'none'; this.innerText = ''; this.value='Show'; }" type="button">
</div>
<div class="alt2" style="border: 1px inset; padding: 6px;">
<div class="spoiler" style="display: none;">{param}</div>
</div>
</div>
Lucien21 is offline   Reply With Quote
Old 3rd February 2008, 04:08 AM   #2 (permalink)
Red Rane
 
Rane Longfox's Avatar
 
Join Date: Jul 2004
Location: Greater Manchester
Posts: 3,342
Re: Spoiler Tags

If you put it in a quote box and then change the colour, it works very well

But spoiler tags should be very easy to implement, I've seen them on many other boards...
Rane Longfox is offline   Reply With Quote
Old 3rd February 2008, 04:20 AM   #3 (permalink)
Direwolf of the chrons
 
Overread's Avatar
 
Join Date: Aug 2007
Location: Suffolk
Posts: 2,314
Blog Entries: 1
Re: Spoiler Tags

we sort of do
[ spoiler ] [/spoiler]

but its only a colour change - which can still be read (LCD screen)
and you have to know its there to highlight it - a change would be nice
Overread is offline   Reply With Quote
Old 9th February 2008, 08:52 PM   #4 (permalink)
Registered User
 
Omega's Avatar
 
Join Date: Feb 2003
Location: Staffordshire
Posts: 214
Re: Spoiler Tags

Quote:
Originally Posted by Lucien21 View Post
Do we have or is it possible to add a spoiler function into the tags.

Changing the text colour doesn't work that well.

With a real spoiler tag we could discuss things without fear of spoiling it for others.

I got the code from another site that uses the same board so it shouldn't be that hard. BB Code - Spoiler Tag - vBulletin FAQ Forums
You will probably find it can be done without using javascript.
Omega is offline   Reply With Quote
Old 9th February 2008, 09:10 PM   #5 (permalink)
Wherever I Am, I'm There
 
Dave's Avatar
 
Join Date: Jan 2001
Location: Greater London
Posts: 14,030
Blog Entries: 1
Re: Spoiler Tags

Quote:
Originally Posted by Overread View Post
we sort of do
[ spoiler ] [/spoiler]

but its only a colour change - which can still be read (LCD screen)
and you have to know its there to highlight it - a change would be nice
It can only be read if you really try hard, which presumably you don't want to.

I agree about the fact of having to know it's there. I usually add "Spoiler follows" to make it clear. This script was imported from ASciFi, but it did actually say "Spoiler:" there.

If we had the option of changing the background colour as well as the font colour, maybe something more could be achieved.

Edit:

Why not:-

spoilers follow: {quote}{spoiler}blah blah blah{/spoiler}{/quote}

If you try that you get:

spoilers follow:
Quote:
blah blah blah
You can't read that and it is obvious.

Last edited by Dave; 9th February 2008 at 09:21 PM.
Dave is offline   Reply With Quote
Old 9th February 2008, 10:29 PM   #6 (permalink)
Press "X" to Admire Hat.
 
Lenny's Avatar
 
Join Date: Jan 2007
Location: [I am a spambot, selecting the default option - ban me!]
Posts: 3,581
Blog Entries: 3
Re: Spoiler Tags

There's also a very simple way to do it by changing the text colour, and then highlighting it in the same colour:

Code:
 
<table bgcolor="red">
<tr>
<td><font color="red" size="2">spoiler</font></td>
</tr>
</table>
Basically makes a table with a single cell, the background colour of which is the same as the font colour.
Lenny is offline   Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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
Trackbacks are On
Pingbacks are On
Refbacks are Off



All times are GMT +1. The time now is 01:38 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 PL2 ©2011, Crawlability, Inc.