Amerikia1126
Occasionally Active
So you want to make pretty code?
You came to the right place.
- I'd like help with something else.
-
I want to request a bbcode!*
*Filter by prefix, choose "Accepting Requests"
I want help with bbcode!
I want to learn how to use a bbcode!
I want to make aesthetically pleasing bbcode!
I don't understand bbcode at all!
This is an bbcode guide in aesthetics meant to make codes look just a little bit nicer. This guide will not be covering how to code from scratch but rather more along the lines of quick fixes able to be applied to current codes.
- Before you begin...
Go here to disable disable the rich text editor.
You will have to untick the box next to "Use the rich text editor to create and edit messages".
Why? Well, the rich text editor loves to muck with your pretty code. It adds unnecessary code and makes things really messy under the hood, so please disable it if you intend to heavily use bbcode in your posts.
THIS DOES NOT FULLY DISABLE THE RICH TEXT EDITOR. You know when you make a post and click edit, how a box pops up? Yeah, that's the rich text editor in disguise. Click "more options" to take you to the bbcode editor. This is where you'll be spending most of your time coding.
Note, the preview will be slightly off, so I suggest you make a thread in your private workshop so you can test out your code's true appearance in private.
Help! The top bar is gone! Yes, that's supposed to happen. This isn't like IPS where there was one text editor, the bbcode editor is different. You can still do everything you can do with the top bar. What the top bar does is automatically insert the code for it when you click that button, making things more user friendly. Generally, this is a good thing, but since we want to do these things ourselves, having the rich text editor on is not a good idea. The top bar bbcodes are located here, so if you're looking for those, they're here. - Quick Fixes
Centerblock
Centerblock can make any code look better. the way you use it is by putting it at the beginning and end of every post. In fact, this post uses centerblock! Notice how the text doesn't go all the way to the edge? That's centerblock at work.
[centerblock=#]YOUR POST HERE[/centerblock]
Centerblock is a percentage without the percent sign, the default post being at centerblock 100. Generally, a number between 50 and 90 works best. Note, this is a a wide range and somewhere between 60 and 80 is more heavily suggested due to mobile users. It's a hard balance making things look good on both ends of the spectrum. This post uses centerblock 75 for reference.
Accordions
For a better grasp on how an accordion works and what you can do to them, see this thread.
How do I make a scrollbar? To make a scroll bar, you must edit the slide part of the accordion.
[accordion]{slide=500|Title}YOUR TEXT HERE{/slide}[/accordion]
That 500 in the slide code tells it to make a scrollbar that stops at 500 pixels. You can change this to a smaller number, but note that having a large amount of text showing at one or two lines at a time can be very aggravating. A neat trick is that you can have slides with and without scrollbars in the same accordion, as well as with scrollbars of different sizes.
Also make note that mobile users may have a hard time seeing your scrollbar. On android, at least, scrollbars do not show up unless you are scrolling them, so if that user doesn't see there's a scrollbar, they won't be able to read the rest of your text.
Help! My accordion is clipping/too big/half gone! This is usually due to the use of rows and columns. Don't worry! You don't have to remove your rows and columns. All you have to do is tell the code to stay inside its boundaries.
[accordion]{slide=100%|Title}YOUR TEXT HERE{/slide}[/accordion]
This tells the accordion to use 100% of the available space, meaning it will stay within the confines of its column. Without this code, the accordion will assume the width of a normal post, which isn't the best.
Image Floats
Imagefloats are best used at the top of a large amount of text or in the middle of it. This is to help prevent the common problem of your background stopping before it reaches the bottom of your image. If you wish to use the imagefloat code for an image at the bottom of your post, it is best to space things out a little.
[bg=#e0162b]YOUR TEXT HERE
[imagefloat=right][img]http://i.imgur.com/fJn9Zy7.png[/img][/imagefloat]
[color=transparent]text[/color][/bg]
This code is an example of an imagefloat after some text, all on a background. The amount of white space needed between your image and the text at the bottom depends on the size of your image. It's best to play around with this, which is why I highly suggest using your private workshop to do so. - Recreating Top Bar Effects
This is the top bar, found in the rich text editor. This tab will show you how to recreate everything you can do in the top bar with bbcode.
From left to right we have:
bold.
[b]text[/b]
italics.
[i]text[/i]
underline.
[u]text[/u]
color.
[color=color name, hex code, or rgb code here]text[/color]
size.
[size=any whole number between 1 and 7 here]text[/size]
font.
[font=font name here. see google fonts for more options]text[/font]
url.
[url=insert url here]insert display text here[/url]
remove url.
[url=insert url here]insert display text here[/url] + your backspace key
align.
[left]text[/left] or [center]text[/center] or [right]text[/right]
bulleted list.
[list][*]list item 1 [*]list item 2, etc. yes you can space these out.[/list]
numbered list.
[list=1][*]list item 1 [*]list item 2, etc. yes these can also be spaced out.[/list]
outdent.
[indent]text[/indent] + your backspace key
indent.
[indent]text[/indent]
smilies.
D:
-_- :-_-lines: :b/: :csmile: :closedeyescryingfrown: :closedeyesfrown: :closed eyes open smile: :closedeyessmile: ^_^ :coolshades: :( :angryfrown: :angryopenfrown: D: D': :hearteyes: :kissclosedeyes: :blowkiss: :kissopeneyes: :X :/: :o :o) :O :) :D ;D :P ;) :b7: :dead: :deadopenmouth: :lenny: :lennymeh: :lennyslash: :pout: :puff: :angrypuff: :smilepuff: :sick: :sleeping: zzzz :specialeyes: :angryteeth: :evilteeth: :frustratedteeth: :grinningteeth: :neutralteeth: :yakuza: :yakuza2: ^3^ ^33^ ^D^ ^;3^ :3: :33: :3D: ;3: :angel: :angel3: :angelD: :angels: :horns: :hornskiss: :hornstongue; :hornswhistle: :alien: :bishiesparklesl: :bishiesparklesr: :cheshiregrin: <3 </3 <X3 :snail: :captaincat: :darkwizardhat: :ghost: :ghosthalo: :ghosthorns: :ghostl: :ghostr: :ghostn: :ghostunu: :ghostuvu: :ghostv: :ghostxnx: :ghostxx: :pine: :xFsmile: :xFwink: :xFfrown: :xFmad: :confused: :xFcool: :xFtongue: :xFgrin: :xFeek: :xFoops: :xFrolleyes: :xFwhat:
image.
[img]image url here. note, the image itslef, not the page. right click or hold, if you're on mobile and hit "open image in new tab". use that url.[/img]
media.
[media=challonge, dailymotion, facebook, liveleak, metacafe, soundcloud, vimeo, youtube]the gibberish part of the url, usually after a slash, usually near the end of the url. note, you currently cannot start videos at a certain time[/media]
insert:
quote.
go to the post you want to quote instead, add it to quote, then add the quote when you go to type your post. there should be a button around "upload a file" for this.
[quote]text[/quote]
spoiler.
[spoiler=spoiler title]text[/spoiler]
code.
[code]code[/code]
strikethrough.
[s]text[/s]
gallery embed.
go to gallery and see the sidebar for this code.
[gallery=media, url number]your text here[/gallery]
drafts.
use an outside editor to save your posts so things don't disappear. the general rule of thumb is don't gamble on your "it took me 3 hours to type this masterpiece" post still being there the next time you open your browser. back it up in an outside editor, or your private workshop if you wish.
undo.
ctrl + z
redo.
ctrl + y
remove formatting.
your backspace key + patience
use bbcode editor.
you are already using the bbcode editor if you do not see this button.
Have a question not answered or a correction to make? Reply below and I'll add it to the guide.
Note that this guide is incomplete, it's up to you guys to ask what you want to know.
*edited imagefloat code
*added "recreating top bar effects" tab
Last edited: