FAQ  •  Register  •  Login

Suggestion: Spoiler BBCode

Moderator: Executive Officers

<<

Ismael92

Specialist
Specialist

Posts: 82

Joined: Thu Jun 17, 2010 1:18 pm

Location: Uruguay

Post Sun Jun 20, 2010 9:54 am

Suggestion: Spoiler BBCode

I don't know if it's possible for you to do this (I assume it is) but I think we should be able to use the Spoiler BBCode to hide things.

For example, look at this. It would be much better if Cobra's post was in a spoiler so we wouldn't have to scroll down so much.

Also, it would be really useful in comments thread for all stories. We could talk about important things that happened in the last chapter, but by using spoiler, people who haven't read it yet wouldn't have to worry about things being revealed in the comments :D
<<

EagleRock

User avatar

Chief Barracks Officer
Chief Barracks Officer

Posts: 487

Joined: Fri Jun 04, 2010 1:21 am

Location: 127.0.0.1

Post Wed Jun 30, 2010 11:16 pm

Re: Suggestion: Spoiler BBCode

I have found a simple phpBB code for spoiler text. Take a look at this and tell me what you think.

This is the text before the spoiler test.
This is the spoiler test.

This is the text after the spoiler test.

Here's the code for this:

  Code:
This is the text before the spoiler test.
[Spoiler]This is the spoiler test.[/Spoiler]
This is the text after the spoiler test.
Image
<<

Ismael92

Specialist
Specialist

Posts: 82

Joined: Thu Jun 17, 2010 1:18 pm

Location: Uruguay

Post Thu Jul 01, 2010 12:38 pm

Re: Suggestion: Spoiler BBCode

Yes that's perfect ^^

I think that now we're more free to talk about important things about all of the stories in their respective comments thread, as long as we use spoilers :)
<<

ByteSlinger

User avatar

Master of the Portal
Master of the Portal

Posts: 687

Joined: Thu Jun 17, 2010 9:40 am

Location: East Coast of the USA

Post Sun Aug 01, 2010 1:05 am

Re: Suggestion: Spoiler BBCode

Is it possible to add a parameter to the spoiler BBCode that would limit the vertical height of the spoiler box to a maximum number of pixels? It could generate an i-frame in the html code stream that would set a scrolling window with that height. This would allow large spoilers to be seen without creating very long pages.

For example, the BBCode might look like [ Spoil2 ]200,Hello there [ /Spoil2 ]

But inline, when the spoiler text is shown, it has an outer wrapper of < iframe height='200' scrolling='auto'> Hello There < / iframe >

What do you think?
Image
<<

EagleRock

User avatar

Chief Barracks Officer
Chief Barracks Officer

Posts: 487

Joined: Fri Jun 04, 2010 1:21 am

Location: 127.0.0.1

Post Sun Aug 01, 2010 1:46 pm

Re: Suggestion: Spoiler BBCode

Not a bad idea at all. Shouldn't be hard to implement, either. I would think that the BBCode should look more like this:

  Code:
[Spoiler max=200]text.[/Spoiler]


The only thing I don't know how to do is specify optional parameters in BBCode, but that should take about 5 minutes on "The Googles" to find.

Great idea, Byte! Add that to my to-do list!
Image
<<

EagleRock

User avatar

Chief Barracks Officer
Chief Barracks Officer

Posts: 487

Joined: Fri Jun 04, 2010 1:21 am

Location: 127.0.0.1

Post Sun Aug 01, 2010 2:38 pm

Re: Suggestion: Spoiler BBCode

Testing Spoiler 2 (not done yet):

asdf
asdf
asdf
asdf
asdf
asdf
asdf
asdf
asdf
asdf
asdf
asdf
asdf
asdfasdf
asdf
asdf
asdf
asdf
asdf
asdf
asdfasdfasdf
asdf
asdf
asdf
asdf
asdf
asdf
asdf
asdf
Image

Return to Barracks Questions/Suggestions

Who is online

Users browsing this forum: No registered users and 1 guest

cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by Vjacheslav Trushkin for Free Forums/DivisionCore.
Americanized by Maël Soucaze.