Welcome to Knockturn Bound!

Be sure to look at our Getting Started guide to learn more about the story we are telling!

If you have any questions, join our Discord server!
Ready to Cast Some Magic??
After you're approved, be sure to check out the Whomping Willow Exchange and sign up for a report card!
This is how we track your magical progress on KB!
Notice from
Headmistress Haswell:

Due to the traumatic events following the 1921 Carnival,
classes are cancelled the week of 14 March, to resume on Monday, 21 March.
All Astronomy and Ancient Runes classes have been cancelled for the rest of term.
Please get some much-needed rest!

Coding Guide
--
Coding Guide

Coding on MyBB is a little bit different than you might be used to. Check out this thread to see what special features we have available.

If you have any questions or requests for features, please let us know!


Table of Contents



Introduction to Coding
On message boards, we code using something called BBCode. On MyBB it is called MyCode. It works the same, only MyCode is more secure. With that, it can be pickier than BBCode about syntax.

It can seem very overwhelming at first, but code is actually really fun!

The most important thing to remember is to not give up. There are always members of the community that are eager and willing to help you out. If you need help -- ask!

Tips
- The width is 680px maximum. Feel free to code anything up to that size.
- Because MyCode is more secure, and more precise, there are some things that are not needed when coding. Just play around and learn it.



Standard Coding
Below are the standard MyCode. Most are in the bar on the Reply/New Thread/Edit Post pages.


Alignment
Left aligned
Center aligned
Right aligned

Cupcake ipsum dolor sit amet candy canes I love. Danish sesame snaps lemon drops macaroon chocolate gummi bears pie dragée. Jujubes I love jelly beans chocolate bar candy sweet roll.
Code: 
[left]Left aligned[/left]
[center]Center aligned[/center]
[right]Right aligned[/right]

[justify]Justify[/justify]

Anchor
Anchor link

When you click on the link above, it automatically comes down here.

These will only work if the two tags are on the same page. Note, the target tag does not require a closing tag.
Code: 
[link=anchorName]This is the linked text[/link]

[target=anchorName]This is where the link directs to.

Text & Lines
Bold
Italic
Underline
Strikethrough

Combinations are even available:
Bold and italic

Horizontal line is available:

Code: 
[b]Bold[/b]
[i]Italic[/i]
[u]Underline[/u]
[s]Strikethrough[/s]

Combinations are even available:
[b][i]Bold and italic[/i][/b]

Horizontal line is available:
[hr]

Quote Box & Code Box
Here is a quote. The box will expand to the content:
Quote:
I am a quote.

You can see the code box over there -->
It is a fixed height and will automatically scroll.
You use it by wrapping the code in [ code] and [/code ] (remove the spaces)
Code: 
Here is a quote:
[quote]I am a quote.[/quote]

You can see the code box over there -->
It is a fixed height and will automatically scroll.
You use it by using [ code]code here[/ code] (remove the spaces)

Indention & Tabs
You can indent a whole block of copy:
Cupcake ipsum dolor sit amet brownie soufflé wafer. Candy muffin pastry chocolate bar icing brownie sweet roll cake toffee. Muffin tart I love danish liquorice chocolate dragée.

Or you can add tabs to the beginning:
This line has only one tab. But really you can use a ton of them. I really don't know if there is a maximum amount.

This line has two tabs. But really you can use a ton of them. I really don't know if there is a maximum amount.
Code: 
You can indent a whole block of copy:
[indent]Cupcake ipsum dolor sit amet brownie soufflé wafer. Candy muffin pastry chocolate bar icing brownie sweet roll cake toffee. Muffin tart I love danish liquorice chocolate dragée.[/indent]

Or you can add tabs to the beginning:
[tab=1]This line has only one tab. But really you can use a ton of them. I really don't know if there is a maximum amount.

[tab=2]This line has two tabs. But really you can use a ton of them. I really don't know if there is a maximum amount.

Lists
You can do unordered (bulleted) lists:
  • Chocolate
  • Mint
    • Mint + Coffee = delicious
    • Mint + Cookie = perfection
  • Vanilla
Or you can do numbered lists:
  1. Item 1
  2. Item 2
    1. Item 2a
    2. Item 2b
  3. Item 3
Code: 
You can do unordered (bulleted) lists:
[list][*]Chocolate
[*]Mint[list][*]Mint + Coffee = delicious
[*]Mint + Cookie = perfection[/list]
[*]Vanilla[/list]
Or you can do numbered lists:
[list=1][*]Item 1
[*]Item 2
[list=a][*]Item 2a
[*]Item 2b[/list]
[*]Item 3[/list]

Quick Links
You can easily link to specific forums, threads, or profiles.

When you are in a page you would like to link to, check the address bar. You'll see a URL that ends in numbers. You'll put the numbers here.

Forum
https://knockturnbound.net/forumdisplay.php?fid=16
This link goes directly to the Summer board!

Thread
https://knockturnbound.net/showthread.php?tid=43
This link goes directly to the Face Claim thread.

Post
https://knockturnbound.net/showthread.php?tid=74&pid=204#pid204
This link goes directly to the Summer Facility Program Timeline.

Profile
https://knockturnbound.net/member.php?action=profile&uid=9
This goes to the Vanishing Cabinet's profile page.
Code: 
[b]Forum[/b]
https://knockturnbound.net/forumdisplay.php?[b]fid=16[/b]
[forum=16]This link goes directly to the Summer board![/forum]

[b]Thread[/b]
https://knockturnbound.net/showthread.php?[b]tid=43[/b]
[thread=43]This link goes directly to the Face Claim thread.[/thread]

[b]Post[/b]
https://knockturnbound.net/showthread.php?tid=74&[b]pid=204#pid204[/b]
[post=204]This link goes directly to the Summer Facility Program Timeline.[/post]

[b]Profile[/b]
https://knockturnbound.net/member.php?action=profile&[b]uid=9[/b]
[user=9]This goes to the Vanishing Cabinet's profile page.[/user]

Tables
Tables are a quick way to show a lot of information while keeping things need.

Row 1, Column 1Row 1, Column 2
Row 2, Column 2Row 2, Column 2
Code: 
Tables are a quick way to show a lot of information while keeping things need.

[table][tr][td]Row 1, Column 1[/td][td]Row 1, Column 2[/td][/tr]
[tr][td]Row 2, Column 2[/td][td]Row 2, Column 2[/td][/tr][/table]



Div Coding
Divs are considered the go-to for coding. They are very customizable and there are a lot of different attributes you can use to make your stuff look fancy.

This will probably take a lot of trial and error, but it does get easier!


The Basics
A div is a block level element that, by default, takes up 100% of the available horizontal space. All div objects automatically stack vertically, however there are a lot of attributes that you can add to modify how these blocks look. To use a div on KB, you must include at least one attribute, or else it will not render correctly.

Code: 
[div style="attributes-go-here"]Content for the div here[/div]

AttributeDetails
widthYou can use either a pixel number here, or a percent.
  • width:50%;
  • width:300px;
paddingPadding can be written in a few different ways, and speaks to the space between the content and the boundaries of the div.
  • padding:Top Right Bottom Left:
    padding:10px 12px 5px 20px;
    test

  • padding:TopBottom RightLeft:
    padding:20px 5px;
    test

  • padding:Top LeftRight Bottom;
    padding:5px 20px 10px;
    test
marginMargin is the same as padding, however it is the space between the border and the OUTSIDE contents of the box.
  • margin:Top Right Bottom Left:
    margin:10px 12px 5px 20px;
    test

  • margin:TopBottom RightLeft:
    margin:20px 5px;
    test

  • margin:Top LeftRight Bottom;
    margin:5px 20px 10px;
    test
width & marginWhen you pair margin and width, you can center a block!
  • width:300px; margin:0 auto;
    test

Unfortunately, you cannot use auto to vertically align something.


Advanced
Advanced div properties can add background colors and/or images, horizontal scrolling, put two boxes next to each other, among so many more things!

This site has some very handy tools that can help you set up the right codes for you to use. Just change the < > to [ ] and you're good to go!

AttributeDetails
backgroundThe most basic background you can do is a color. This can be written a couple of different ways. If the color HEX code is the same number or letter for all 6 spots, then you can use the shorthand version as seen below.
  • background-color:#FFFFFF;
  • background-color:#FFF;
  • background-color:white;

You may also use a background-image. A basic background image is immediately repeated:

background:url('https://i.imgur.com/zDLQX7m.jpeg')

If you would like to prevent the background from repeating, you can pair it with a background color:

background:#000 url('https://i.imgur.com/zDLQX7m.jpeg') no-repeat

But let's say you want a specific background that does not repeat, yet covers the entire area of the container. You have two options: contain and cover.

Cover will stretch the background to cover the entire container while preserving the image ratio:

background:url('https://i.imgur.com/zDLQX7m.jpeg') no-repeat; background-size:cover

Contain will repeat (unelss you tell it not to) the background over the entire container, though it sizes it down so it does not get distorted:

background:url('https://i.imgur.com/zDLQX7m.jpeg'); background-size:contain
borderThe border is not something that is required, and it's possible you may never use it. There are different types of borders and multiple different attributes you can give them.

The standard way to write the border is border:1px solid black;, where 1px is the thickness of the border; solid is the type of border; black is the color.
  • solid


  • dotted


  • dashed


  • double

You can also add rounded borders by using the following:

  • border-radius:6px;


  • border-top-right-radius:6px;


  • border-top-right-radius:6px; border-bottom-left-radius:20px;


  • border-top-right-radius:100px; border-bottom-left-radius:20px;
floatFloat can be useful for a couple of different scenarios.

Text can wrap around images:

[Image: 000000]
Powder topping bonbon tiramisu lemon drops candy I love cake. Icing I love cake toffee I love. Marshmallow tart sweet pie tootsie roll. Ice cream cotton candy pie tart sugar plum bonbon tootsie roll topping. Gingerbread jelly muffin chupa chups chocolate bonbon. Dessert chocolate cake icing I love brownie. I love danish jelly-o marshmallow I love bonbon cake carrot cake.

Code: 
[div style="float:left;width:100px;"][img]https://placehold.co/75/FFFFFF/000000[/img][/div]Powder topping bonbon tiramisu lemon drops candy I love cake. Icing I love cake toffee I love. Marshmallow tart sweet pie tootsie roll. Ice cream cotton candy pie tart sugar plum bonbon tootsie roll topping. Gingerbread jelly muffin chupa chups chocolate bonbon. Dessert chocolate cake icing I love brownie. I love danish jelly-o marshmallow I love bonbon cake carrot cake.

Div boxes can float next to each other:

[Image: FFFFFF]
[Image: 000000]

Code: 
[div style="float:left;width:200px;"][img]https://placehold.co/200/000000/FFFFFF[/img][/div] [div style="float:left;width:200px;"][img]https://placehold.co/200/FFFFFF/000000[/img][/div]
[div style="clear:both;"][/div]

*You'll notice in the block above, that there is a div with a style of clear:both. This is required when you have floating divs so that the content that comes after knows to not try floating too.*



Span Coding
Span tags are automatically inline with each other. Meaning, if you put something in a span, it will remain on the same line. Example:

This line is using a span tag to make the text look like this.

Code: 
This line is using a [span style="font-variant:small-caps; background:#000; color:#fff;"]span tag[/span] to make the text look like [span style="font-family:monospace; font-size:12px;"]this[/span].

Most of the Div attributes can be used successfully on the span tag. The best way to learn is to just try it out!



Installed Fonts

We have a small handful of installed fonts that are ready for you to use! Note: Some of these do not have various styles, so be sure to test them!

**Only use these installed fonts (and font awesome) in your signatures. If there is a font you need, do reach out to the admin team.**

Lumierepolis - Bold - Italic - Bold Italic - Lighter Italic
Code: 
[size=20][font=Lumierepolis Regular]Lumierepolis - [b]Bold[/b] - [i]Italic[/i] - [b][i]Bold Italic[/i][/b] - [span style="font-weight:lighter;"][i]Lighter Italic[/i][/span][/font][/size]

Barrow - Bold - Lighter
Code: 
[size=20][font=barrow]Barrow - [b]Bold[/b] - [span style="font-weight:lighter;"]Lighter[/span][/font][/size]

Braven
Code: 
[size=20][font=braven]Braven[/font][/size]

Didact
Code: 
[size=20][font=Didact Gothic]Didact[/font][/size]

Flair Deco
Code: 
[size=20][font=Flair Deco]Flair Deco[/font][/size]

Grotesk - Lighter
Code: 
[size=20][font=grotesk]Grotesk - [span style="font-weight:lighter;"]Lighter[/span][/font][/size]

Heading
Code: 
[size=20][font=heading]Heading[/font][/size]

Hourglass
Code: 
[size=20][font=hourglass]Hourglass[/font][/size]

Limelight
Code: 
[size=20][font=limelight]Limelight[/font][/size]

Retro Signature
Code: 
[size=20][font=retrosignature]Retro Signature[/font][/size]

Rozina - Bold
Code: 
[size=20][font=Rozina]Rozina - [b]Bold[/b][/font][/size]

Santiole Script
Code: 
[size=20][font=santiole script]Santiole Script[/font][/size]

Santiole Swash
Code: 
[size=20][font=santiole swash]Santiole Swash[/font][/size]

Smythe
Code: 
[size=20][font=Smythe]Smythe[/font][/size]

Stagera
Code: 
[size=20][font=stagera]Stagera[/font][/size]



Font Awesome

Font Awesome is an awesome resource to include icons that are not images. Yes, you heard that right. In fact, there is a whole library of over 59,000 icons available for use. Note: We have access to the "FA PRO" level icons.

How do you use them?

To do this:

You would use this:
Code: 
[span class="fa-solid fa-otter"][/span]

And if you'd like to make it bigger, or change the color:

Code: 
[size=20][color=crimson][span class="fa-solid fa-otter"][/span][/color][/size]



Google Fonts

If there is a font on Google Fonts that you want to use, you can!

There can only be 6 different Google fonts on a page, so please do not use them for your signatures.

A couple of examples:

Inconsolata
Code: 
[gfont=Inconsolata]Inconsolata[/gfont]

Mozilla Headline
Code: 
[gfont=Mozilla Headline]Mozilla Headline[/gfont]
Last edited: 09-01-2025, 04:20 AM