New BBCode Support

And now, a word from our moderators

Moderator: Moderators

Message
Author
User avatar
avwolf
Templar Inner Circle
Posts: 7006
Joined: Wed Jan 17, 2007 5:33 pm
Location: Nebraska, USA
Contact:

New BBCode Support

#1 Post by avwolf »

You may notice on the posting page that there are a few new options. We've finally gotten around to adding some of the handier custom BBCode options, notably Center for centering text alignment, Strike for producing a "strike-through" effect on text, Sub to make subscripts, and Super to provide support for superscripts.

Code: Select all

[center]As an example:[/center]You can see [strike]their[/strike] there are plenty of uses for these.  Like if you want to state that a[sub]frictionless[/sub] = v[super]2[/super].
As an example:
You can see their there are plenty of uses for these. Like if you want to state that africtionless = v2.

Please note that should these be abused, they will be removed, so please use them responsibly. :)
Image

User avatar
emmy
Violent. Hateful. Fluffy.
Posts: 4068
Joined: Fri Apr 10, 2009 2:34 pm
Location: Comfortably on two special pillows~

Re: New BBCode Support

#2 Post by emmy »

Does this 'abuse' include violent rape of the mathematical principles? ;)

If so, I'll be sure to stay away from them.

User avatar
avwolf
Templar Inner Circle
Posts: 7006
Joined: Wed Jan 17, 2007 5:33 pm
Location: Nebraska, USA
Contact:

Re: New BBCode Support

#3 Post by avwolf »

You pay notice that we've just added a new, soon-to-be-beloved BBCode tag, "paragraph!" For all of you on the Story and Role-Playing boards who've been frustrated at not being able to produce normal, indented paragraphs, this tag will unlock that precious commodity.

Code: Select all

[paragraph]This is an indented paragraph, and so it will be spaced inward from the "normal" text just a bit on the first line.  Subsequent lines should not be indented, so it works great for "book-style" paragraphs and dialogue.  Hopefully large masses of text, like those in stories written for the writing context, will become easier for people to read with this new tag added. :)  Of course, [b]all[/b] the usual tags continue to work inside the indented paragraph.[/paragraph]
[paragraph][/paragraph]Similarly, indenting blank space still gets you an indent.
      This is an indented paragraph, and so it will be spaced inward from the "normal" text just a bit on the first line. Subsequent lines should not be indented, so it works great for "book-style" paragraphs and dialogue. Hopefully large masses of text, like those in stories written for the writing context, will become easier for people to read with this new tag added. :) Of course, all the usual tags continue to work inside the indented paragraph.
      Similarly, indenting blank space still gets you an indent.

Note that it simply       indents text, and does not actually create a new paragraph block at this time.
Image

User avatar
judah4
The Cookie Dragon
Posts: 1979
Joined: Sat Jun 04, 2011 7:09 am
Location: Sunny California
Fav. Twokinds Character: Nora
Contact:

Re: New BBCode Support

#4 Post by judah4 »

Thank you for the code. I was trying to write something in the Code tags but this board has BBCode disabled. oh well

User avatar
Myperson54
The Imagineer
Posts: 1508
Joined: Thu Jan 31, 2013 10:26 pm
Location: An infinite sea of salt

Re: New BBCode Support

#5 Post by Myperson54 »

Thank yooouuu! I'm not generally such a sticker for indentation, but the board removes tabs automatically, so this is useful in so many different ways! (Are the indentations set to go to the next tab line, or are they set to space out a set distance every time?)

User avatar
avwolf
Templar Inner Circle
Posts: 7006
Joined: Wed Jan 17, 2007 5:33 pm
Location: Nebraska, USA
Contact:

Re: New BBCode Support

#6 Post by avwolf »

Myperson54 wrote:Thank yooouuu! I'm not generally such a sticker for indentation, but the board removes tabs automatically, so this is useful in so many different ways! (Are the indentations set to go to the next tab line, or are they set to space out a set distance every time?)
They space out roughly five spaces. HTML eats whitespace, and I don't think there's a reasonable tab character which can be forced to show. There is, however, the non-breaking space. Tell you what, I'll do some experimentation. Looks like there's a code for horizontal tab, and if it works, I'll modify the BBCode tag and let y'all know.

-- Sadly --
No luck, horizontal tab isn't rendered.
Image

RobbieThe1st
Templar GrandMaster
Posts: 706
Joined: Fri Dec 08, 2006 7:06 am
Location: Behind my computer.
Contact:

Re: New BBCode Support

#7 Post by RobbieThe1st »

Couldn't you just change the <span> to a <div>?
That'll give you your new paragraph linebreak.
Also, check out http://www.w3.org/Style/Examples/007/indent.en.html for proper CSS indendation -- if you have the bbcode replace with, say, <div class="bbcode-paragraph"></div>, then you could use that code there, but using the class name so it only applies to BBcode paragraphs:

Code: Select all

.bbcode-paragraph {
  margin-bottom: 0 }
.bbcode-paragraph + .bbcode-paragraph {
  text-indent: 1.5em;
  margin-top: 0 }

User avatar
avwolf
Templar Inner Circle
Posts: 7006
Joined: Wed Jan 17, 2007 5:33 pm
Location: Nebraska, USA
Contact:

Re: New BBCode Support

#8 Post by avwolf »

By popular request (and at long last, sorry for taking so much time, guys), a new BBCode tag has been added: the "video" tag.

Code: Select all

[video]https://www.youtube.com/watch?v=CPkDIWA0mSY[/video]
[video]https://www.youtube.com/watch?v=CPkDIWA0mSY[/video]

Or, if you'd prefer, you can specify the height and width the video should be embedded with:

Code: Select all

[video=300,200]https://www.youtube.com/watch?v=CPkDIWA0mSY[/video]
phpBB [video]


Please don't abuse the new privilege, and enjoy the new capability!

(I'm only giving Youtube examples here, but it supports most video sites, including Vimeo, Twitch, and UStream.)
Image

User avatar
DariusL
Panthera tigris altaica
Posts: 3481
Joined: Sun Jul 01, 2012 3:37 pm
Location: Québec city, Canada
Fav. Twokinds Character: Kat
Contact:

Re: New BBCode Support

#9 Post by DariusL »

avwolf wrote:By popular request (and at long last, sorry for taking so much time, guys), a new BBCode tag has been added: the "video" tag.

Code: Select all

[video]https://www.youtube.com/watch?v=CPkDIWA0mSY[/video]
[video]https://www.youtube.com/watch?v=CPkDIWA0mSY[/vdeo]

Or, if you'd prefer, you can specify the height and width the video should be embedded with:

Code: Select all

[video=300,200]https://www.youtube.com/watch?v=CPkDIWA0mSY[/video]
[video=300,200]https://www.youtube.com/watch?v=CPkDIWA0mSY[/vieo]

Please don't abuse the new privilege, and enjoy the new capability!

(I'm only giving Youtube examples here, but it supports most video sites, including Vimeo, Twitch, and UStream.)
So basically that means I could potentially stick a Picarto stream straight in my art thread... Interesting. :)

User avatar
Myperson54
The Imagineer
Posts: 1508
Joined: Thu Jan 31, 2013 10:26 pm
Location: An infinite sea of salt

Re: New BBCode Support

#10 Post by Myperson54 »

ticoun wrote:
avwolf wrote:By popular request (and at long last, sorry for taking so much time, guys), a new BBCode tag has been added: the "video" tag.

Code: Select all

[video]https://www.youtube.com/watch?v=CPkDIWA0mSY[/video]
[video]https://www.youtube.com/watch?v=CPkDIWA0mSY[/vdeo]

Or, if you'd prefer, you can specify the height and width the video should be embedded with:

Code: Select all

[video=300,200]https://www.youtube.com/watch?v=CPkDIWA0mSY[/video]
[video=300,200]https://www.youtube.com/watch?v=CPkDIWA0mSY[/vieo]

Please don't abuse the new privilege, and enjoy the new capability!

(I'm only giving Youtube examples here, but it supports most video sites, including Vimeo, Twitch, and UStream.)
So basically that means I could potentially stick a Picarto stream straight in my art thread... Interesting. :)
If avwolf is using the one I originally sent him, then I don't believe you can embed streams.

Thanks for this, Av!
Image

I am become salt, destroyer of memes

Join the Unofficial 2k Discord Channel!

User avatar
InceptionBwaaa
Grand Templar
Posts: 1089
Joined: Wed Feb 26, 2014 5:51 am
Location: Writing my [censored] off.
Contact:

Re: New BBCode Support

#11 Post by InceptionBwaaa »

Heck yeah! This new tag is gonna be a heckin fun time!
Certified Jojo fan
"She's a keeper!" ~Firekeeper
Stardust Crusaders banner coming soon.
Zelda x Palutena is the one true ship.

User avatar
avwolf
Templar Inner Circle
Posts: 7006
Joined: Wed Jan 17, 2007 5:33 pm
Location: Nebraska, USA
Contact:

Re: New BBCode Support

#12 Post by avwolf »

Myperson54 wrote:
ticoun wrote:So basically that means I could potentially stick a Picarto stream straight in my art thread... Interesting. :)
If avwolf is using the one I originally sent him, then I don't believe you can embed streams.
According to the docu, twitch and ustream streams are supported as well as recorded video. Anything else... we'd have to see if I can mangle it into their Javascript. It'd be unpleasant, though; minified Javascript is not the most delightful code to muck about in.
Image

User avatar
Myperson54
The Imagineer
Posts: 1508
Joined: Thu Jan 31, 2013 10:26 pm
Location: An infinite sea of salt

Re: New BBCode Support

#13 Post by Myperson54 »

avwolf wrote:
Myperson54 wrote:
ticoun wrote:So basically that means I could potentially stick a Picarto stream straight in my art thread... Interesting. :)
If avwolf is using the one I originally sent him, then I don't believe you can embed streams.
According to the docu, twitch and ustream streams are supported as well as recorded video. Anything else... we'd have to see if I can mangle it into their Javascript. It'd be unpleasant, though; minified Javascript is not the most delightful code to muck about in.
Another thing to note: Imgur has a file extension called .gifv. This is really a .webm video with a different extension that isn't supported by the BBCode. If you link a video from Imgur, make sure to change the extension to .webm, and it'll play fine. See below:
phpBB [video]
Image

I am become salt, destroyer of memes

Join the Unofficial 2k Discord Channel!

User avatar
puredeathly
Master
Posts: 249
Joined: Sun Mar 08, 2015 7:03 pm
Location: ::1
Fav. Twokinds Character: Flora

Re: New BBCode Support

#14 Post by puredeathly »

The media tag doesn't work if you connect using https because Firefox and Chrome block loading of JS which is not provided from the same (secured) website. (;_;)
Any chance getting that fixed? (I don't want to click on temporary allow this unsecured script everytime I want to watch a video :( )

-Jakob

User avatar
avwolf
Templar Inner Circle
Posts: 7006
Joined: Wed Jan 17, 2007 5:33 pm
Location: Nebraska, USA
Contact:

Re: New BBCode Support

#15 Post by avwolf »

puredeathly wrote:The media tag doesn't work if you connect using https because Firefox and Chrome block loading of JS which is not provided from the same (secured) website. (;_;)
Any chance getting that fixed? (I don't want to click on temporary allow this unsecured script everytime I want to watch a video :( )

-Jakob
Take another look at it now.
Image

Post Reply