The Spoiler Tag
- docvego
- Posts: 3165
- Joined: Fri Oct 15, 2004 11:09 am
- Location: Baltimore, MD
The Spoiler Tag
I think this got mentioned in passing in a few spots, but I think it's worthy of a topic since I think there are quite a few other people interested in this as well.
A lot of phpBB forums have a Spoiler BBCode that users can wrap around post text. After the post is made, text in a spoiler bracket can only be seen when it is highlighted.
A lot of phpBB forums have a Spoiler BBCode that users can wrap around post text. After the post is made, text in a spoiler bracket can only be seen when it is highlighted.
- Ralph-Wiggum
- Posts: 17449
- Joined: Wed Oct 13, 2004 8:51 am
- Asharak
- Posts: 7907
- Joined: Wed Oct 13, 2004 9:11 pm
- Location: Ontario, Canada
- Contact:
- LawBeefaroni
- Forum Moderator
- Posts: 55452
- Joined: Fri Oct 15, 2004 3:08 pm
- Location: Urbs in Horto, outrageous taxes on everything
You could use a well planned combination.
Or the simple *spoiler warning*
Spoiler here.
Or the simple *spoiler warning*
Spoiler here.
" Hey OP, listen to my advice alright." -Tha General
"No scientific discovery is named after its original discoverer." -Stigler's Law of Eponymy, discovered by Robert K. Merton
MYT
"No scientific discovery is named after its original discoverer." -Stigler's Law of Eponymy, discovered by Robert K. Merton
MYT
- Suitably Ironic Moniker
- Posts: 3604
- Joined: Wed Oct 13, 2004 9:09 pm
- Location: Asheville, NC
That is definitely an option. The automated spoiler function is a lot more elegant though and protects against accidental exposure to spoilers.LawBeefaroni wrote:You could use a well planned combination.
Or the simple *spoiler warning*
<snip>
Spoiler here.
When I was a boy, I laid in my twin-sized bed and wondered where my brother was. - Mitch Hedberg
- Huw the Poo
- Posts: 1447
- Joined: Wed Oct 13, 2004 1:31 am
- Location: UK
- ImLawBoy
- Forum Admin
- Posts: 15062
- Joined: Tue Oct 12, 2004 9:49 pm
- Location: Chicago, IL
- Contact:
I do think the issue was the different backgrounds that were used. The spoiler tags essentially change the color of the text to match the background (like some have done manually in this thread), but since we have both light and dark backgrounds that people can use, it doesn't work for everyone.
Of course, if the spoiler tags could somehow be automated to correct for the different backgrounds, that would be great. I'll leave the feasibility of something like that to Gedd, though.
Of course, if the spoiler tags could somehow be automated to correct for the different backgrounds, that would be great. I'll leave the feasibility of something like that to Gedd, though.
That's my purse! I don't know you!
- Tscott
- Posts: 5894
- Joined: Sun Oct 17, 2004 2:25 am
The Drod forum has [secret] tags that hide the text behind a 'click here to view' message. I don't know much about modding forums, so I don't know if something like this is available with what the OO forum uses, but it is possible with some forum software to have tags that'll work no matter what background is used.
Here's a good example of it in use from a thread asking for hints in a room:
http://www.drod.net/forum/viewtopic.php ... ge=0#63878
Oh, and I'm all for spoiler tags. The Drod forums and DVDTalk both use them and they work really great. It could've saved a few headaches in our recent 'best episode of TV' thread which was full of spoilers.
Here's a good example of it in use from a thread asking for hints in a room:
http://www.drod.net/forum/viewtopic.php ... ge=0#63878
Oh, and I'm all for spoiler tags. The Drod forums and DVDTalk both use them and they work really great. It could've saved a few headaches in our recent 'best episode of TV' thread which was full of spoilers.
She's the puzzle piece behind the couch that makes the sky complete.
- Blackhawk
- Posts: 44528
- Joined: Tue Oct 12, 2004 9:48 pm
- Location: Southwest Indiana
Of course, if the spoiler includes a fairly long description, it would take an hour to write the post.LawBeefaroni wrote:You could use a well planned combination.
Or the simple *spoiler warning*
I'm all in favor of spoiler tags - they work really well, and let you read the meat of a post without trying to guess where the spoilers stop.
(˙pǝsɹǝʌǝɹ uǝǝq sɐɥ ʎʇıʌɐɹƃ ʃɐuosɹǝd ʎW)
- Huw the Poo
- Posts: 1447
- Joined: Wed Oct 13, 2004 1:31 am
- Location: UK
- The Preacher
- Forum Moderator
- Posts: 13037
- Joined: Mon Nov 01, 2004 11:57 am
- Fretmute
- Posts: 8513
- Joined: Wed Oct 20, 2004 7:05 pm
- Location: On a hillside, desolate
I forsee a dark future in which hordes of black bars are strewn liberally across my previously beautiful subsilver landscape.
[edit] - It seems that the code is only parsed once when you hit post . . . after that it's just text in the html. Which makes sense, now that I think about it. It'd be cumbersome if phpBB had to compile the thread continuously.
[edit] - It seems that the code is only parsed once when you hit post . . . after that it's just text in the html. Which makes sense, now that I think about it. It'd be cumbersome if phpBB had to compile the thread continuously.
- Gedd
- Technical Admin
- Posts: 2812
- Joined: Wed Oct 13, 2004 12:00 am
It is. What your seeing with Tareeq's post is the difference in the way information is stored in the database, and how it's rendered. When phpBB stores a tag, it's actually stored in the format [sometag:sid] where sometag is the tag and sid is some sort of session id number. If there's no session id number, phpBB treats it as normal text when it renders. Because is now recognized as a phpBB tag, it stores it in the database in the aforementioned format.Fretmute wrote:It's interesting to me that the tags weren't retroactively applied to Tareeq's post.
- The Preacher
- Forum Moderator
- Posts: 13037
- Joined: Mon Nov 01, 2004 11:57 am
- Fretmute
- Posts: 8513
- Joined: Wed Oct 20, 2004 7:05 pm
- Location: On a hillside, desolate
- Gedd
- Technical Admin
- Posts: 2812
- Joined: Wed Oct 13, 2004 12:00 am
That was just my initial take on it. I may make more changes in the future, but this will do for now.Fretmute wrote:I forsee a dark future in which hordes of black bars are strewn liberally across my previously beautiful subsilver landscape.
Nope, it's actually re-rendered every time, which actually makes sense so you can change the HTML represented by each code on the fly. So if tomorrow I wanted to switch the bold and italic tags, I could make a change in two files (for each theme) and it would automatically handle all the old posts.[edit] - It seems that the code is only parsed once when you hit post . . . after that it's just text in the html. Which makes sense, now that I think about it. It'd be cumbersome if phpBB had to compile the thread continuously.
While rendering the page each time may be more burdensome on the server, writing the posts to the database as HTML would make the database that much bigger.
- Ralph-Wiggum
- Posts: 17449
- Joined: Wed Oct 13, 2004 8:51 am
- Gedd
- Technical Admin
- Posts: 2812
- Joined: Wed Oct 13, 2004 12:00 am
I'll note that like anything this tag, like avatars, sigs, etc. is a courtesy to our board members. If it gets abused, or folks use it for the wrong reasons, like masking large amounts of profanity or insults in order to make it tough for mods to see, the staff will take appropriate action. If it becomes abused on a larger scale we'll take it back out.Fretmute wrote:I believe Fed once had a good line about unleashing the Uruk-Hai in the Smurf's village. Only evil can come from this.
- The Preacher
- Forum Moderator
- Posts: 13037
- Joined: Mon Nov 01, 2004 11:57 am
- The Preacher
- Forum Moderator
- Posts: 13037
- Joined: Mon Nov 01, 2004 11:57 am
Yes, this power will be used for great, great evil.Fretmute wrote:It's like unwrapping a present, except it's really the opposite of that. "Gee, I hope he wrote something nice . . . . oh, it's a burn! Nooooooooooooo!"The Preacher wrote:Spoiler:
You do not take from this universe. It grants you what it will.
- Gedd
- Technical Admin
- Posts: 2812
- Joined: Wed Oct 13, 2004 12:00 am
Then how come Tareeq's post at the top of this thread *isn't* being re-parsed?
Gedd, earlier in the thread wrote:It is. What your seeing with Tareeq's post is the difference in the way information is stored in the database, and how it's rendered. When phpBB stores a tag, it's actually stored in the format [sometag:sid] where sometag is the tag and sid is some sort of session id number. If there's no session id number, phpBB treats it as normal text when it renders. Because is now recognized as a phpBB tag, it stores it in the database in the aforementioned format.
To further expand, Tareeq's post was made when it wasn't a tag, so it doesn't have that sid information attached to it in the database, so phpBB ignores it. If Tareeq were to edit his post, it would now be stored with the sid and would render as a spoiler.
- The Preacher
- Forum Moderator
- Posts: 13037
- Joined: Mon Nov 01, 2004 11:57 am
- LawBeefaroni
- Forum Moderator
- Posts: 55452
- Joined: Fri Oct 15, 2004 3:08 pm
- Location: Urbs in Horto, outrageous taxes on everything
Hey, I tried it in Word and it does it there too. It does it everywhere!WTF did you do to my computr!???!!??!?/Gedd wrote:Oh, one thing I forgot. I have also programmed in a super-advanced function for seeing all spoiler text on the page. Simply press CTRL-A and all secrets shall be revealed.
" Hey OP, listen to my advice alright." -Tha General
"No scientific discovery is named after its original discoverer." -Stigler's Law of Eponymy, discovered by Robert K. Merton
MYT
"No scientific discovery is named after its original discoverer." -Stigler's Law of Eponymy, discovered by Robert K. Merton
MYT