BBcode Tutorial (eg, inserting images, videos, text format)

Read this if you're new or unsure of what can or cannot be posted.
Post Reply
User avatar
Peace
Site Editor
Site Editor
Posts: 3889
Joined: Mon Mar 07, 2005 2:48 pm
Fishing interest: Handline fishing
Location: Singapore
Contact:

BBcode Tutorial (eg, inserting images, videos, text format)

Post by Peace » Tue Dec 18, 2007 11:56 am

bbcodes are special functions that allows you to have additional features and formatting in your post. The default bbcodes available in the forums are:

b : bold enclosed text
i : italicize enclosed text
u : underlines enclosed text
color : adds colour to enclosed text
size : sets font size
quote : puts enclosed text in a box
code : puts enclosed text in a box, including bbcode (bbcode in code box will not be translated into functions)
list : formats text as indented list with/without bullets
img : inserts image(hotlinked) into post
scaleimg : inserts large(>720pixels width) image(hotlinked) into post - (new bbcode)
url : inserts a weblink into post
centre : aligns text or images at middle - (new bbcode)
right : aligns text or images to the right - (new bbcode)
line : inserts a horizontal line - (new bbcode)
s : strikes through a text (visible cancellation) - (new bbcode)
youtube : embeds youtube video into post - (new bbcode)
googlevid : embeds google video into post - (new bbcode)
edit : enclose text in a box for editing purpose - (new bbcode)
spoiler : Hides content that can be revealed by clicking on a button - (new bbcode)

Note:
bbcodes are usually implemented in two parts, having a opening tag in the beginning of the desired text and a closing one at the end of it. Take not that the ending tag has an additional "/" in the tag.

How to use:
The content within the code box shows the actual composing message prior to being posted. You can copy the entire content in the code box and put it in a new post to see its effect.

b,i,u - Bold, italics and underline

Writing this:

Code: Select all

There were only [b]three[/b] anglers fishing at the pond today!
will give you:

>> There were only three anglers fishing at the pond today!


Writing this:

Code: Select all

There were only [i]three[/i] anglers fishing at the pond today!
will give you:

>> There were only three anglers fishing at the pond today!



Writing this:

Code: Select all

There were only [u]three[/u] anglers fishing at the pond today!
will give you:

>> There were only three anglers fishing at the pond today!

You can also overlap the codes:

Writing this

Code: Select all

There were only [b][i][u]three[/u][/b][/i] anglers fishing at the pond today!
will give you

>> There were only three anglers fishing at the pond today!


Color - Text colours

Default colours: darkred, red, orange, brown, yellow, green, olive, cyan, blue, darkblue, indigo, violet, white, black
You may also colour your text by highlighting it, and click on the "Font color" to choose the desired colour from colour palette.

Writing this:

Code: Select all

I caught a [color=blue]blue[/color] lobster today.
will give you:

>> I caught a blue lobster today.


Writing this:

Code: Select all

[color=darkred]I[/color] [color=red]caught[/color] [color=orange]a[/color] [color=blue]blue[/color] [color=brown]lobster[/color] [color=green]today[/color].
will give you:

>> I caught a blue lobster today.

size - Font size

Writing this:

Code: Select all

You have to use really [size=9]small[/size] hooks to catch mullets. But with [size=18]big[/size] hooks, you can catch big mullets!
will give you:

>> You have to use really small hooks to catch mullets. But with big hooks, you can catch big mullets!

Quote - Quotes text

Quoting without source

Writing this:

Code: Select all

[quote]Labrador Jetty is now closed from 8pm - 9am daily.[/quote]
will give you:

>>
Labrador Jetty is now closed from 8pm - 9am daily.
Quoting with source (note that there is an additional 'equal' sign and the source is enclosed with double quotes)

Writing this:

Code: Select all

[quote="Nparks"]Labrador Jetty is now closed from 8pm - 9am daily.[/quote]
will give you:

>>
Nparks wrote:Labrador Jetty is now closed from 8pm - 9am daily.
Nested quotes

Writing this:

Code: Select all

[quote="Lurker"]
[quote="Nparks"]Labrador Jetty is now closed from 8pm - 9am daily.[/quote] Can anyone confirm this information?[/quote]
will give you:

>>
Lurker wrote:
Nparks wrote:Labrador Jetty is now closed from 8pm - 9am daily.
Can anyone confirm this information?

Code - Quotes text, including bbcodes

Writing this:

Code: Select all

[code][i]This is how you italicize a string of text[/i]
[/code]

will give you:

>>

Code: Select all

[i]This is how you italicize a string of text[/i]

List - indents and bullets a list

Writing this:

Code: Select all

To catch list:[list][*]Commono tilapia[*]Backtip Reef Shark[*] Parrotfish[/list]
will give you:

>> To catch list:
  • Commono tilapia
  • Backtip Reef Shark
  • Parrotfish
Numbered list(difference is "list=1")

Writing this:

Code: Select all

To catch list:[list=1][*]Commono tilapia[*]Backtip Reef Shark[*] Parrotfish[/list]
will give you:

>> To catch list:
  1. Commono tilapia
  2. Backtip Reef Shark
  3. Parrotfish
Alphabet List (difference is "list=a")

Writing this:

Code: Select all

To catch list:[list=a][*]Commono tilapia[*]Backtip Reef Shark[*] Parrotfish[/list]
will give you:

>> To catch list:
  1. Commono tilapia
  2. Backtip Reef Shark
  3. Parrotfish
Nested List

Writing this:

Code: Select all

To catch list:[list][*]Gobies[list][*]Brackish[*]Freshwater[/list] [*]Backtip Reef Shark[*] Parrotfish[/list]
will give you:
>> To catch list:
  • Gobies
    • Brackish
    • Freshwater
  • Backtip Reef Shark
  • Parrotfish

img - Image hotlink
Usage: Image
Note: "Link to image" must be a direct link to the image and must end with an image extension like .jpg, .gif, etc and the link cannot contain "=" or "?".

For example, the link below will not work with img tags:
http://img383.imageshack.us/my.php?imag ... ghtvg6.jpg
The example below will work:
http://img383.imageshack.us/img383/6167 ... vg6.th.jpg


Writing this:

Code: Select all

[IMG]http://img220.imageshack.us/img220/4914/dontfightxf7.jpg[/IMG]
will give you:

>>
Image

scaleimg - hotlink images with width larger than 720 pixels
Usage:
Note: This bbcode resizes image to 720 pixels width for images larger than that. It also embeds a link to the full size picture onto the image itself. Avoid using this bbcode whenever possible because scaling down of images decreases viewing picture quality.

Writing this:

Code: Select all

[scaleimg]http://img123.imageshack.us/img123/9814/streamyp5.jpg[/scaleimg]
will give you:

>>


URL - Links (url addresses are clickable by default without using URL tag)

Writing this:

Code: Select all

http://forums.handlinefishing.com/search.php?search_id=newposts
or

Code: Select all

[url]http://forums.handlinefishing.com/search.php?search_id=newposts[/url]
will give you:

>> search.php?search_id=newposts


Text with links (difference is add your text

Writing this:

Code: Select all

[url=http://forums.handlinefishing.com/search.php?search_id=newposts]Search new posts since last visit[/url]
will give you:

>> Search new posts since last visit


Image with links - Image becomes clickable. Difference: Image

Writing this:

Code: Select all

[url=http://www.handlinefishing.com/whatsthisfish/mullets/greenbackmullet.htm][img]http://www.handlinefishing.com/forums/images/avatars/gallery/fish2/greenbackmullet.gif[/img][/url] [url=http://www.handlinefishing.com/whatsthisfish/mullets/squaretailmullet.htm][img]http://www.handlinefishing.com/forums/images/avatars/gallery/fish6/squaretailmullet.gif[/img][/url]
will give you:

>>
Image Image

centre - Aligns text/image to centre

Writing this:

Code: Select all

[centre]Giant Mudskipper[/centre]
will give you:
Giant Mudskipper
Writing this:

Code: Select all

[centre][img]http://lh3.google.com/image/lycanders/RWLkCU8_ABI/AAAAAAAAABA/-E-jTxt9tCQ/s800/mudskipper03.jpg[/img][/centre]
will give you:
Image

right - Aligns text/image to the right

Writing this:

Code: Select all

[right]Blue-spotted mudskipper[/right]
will give you:
Blue-spotted mudskipper
Writing this:

Code: Select all

[right][img]http://lh3.google.com/image/lycanders/RWLkCR3jABI/AAAAAAAAABI/NjfcOHGjNuk/s800/mudskipper04.jpg[/img][/right]
will give you:
Image

line - Inserts horizontal line

Writing this:

Code: Select all

[line][/line]
will give you:

s - Strikes through text

Writing this:

Code: Select all

[s]rediculous[/s] ridiculous
will give you:
rediculous ridiculous

youtube - Embed Youtube Videos

Writing this:

Code: Select all

[youtube]http://www.youtube.com/watch?v=GncMVXrRuBw[/youtube]
will give you:


googlevid - Embed Google Videos

Writing this:

Code: Select all

[googlevid]http://video.google.com/videoplay?docid=2234223378424411271&hl=en[/googlevid]
will give you:


edit - enclose additional edits to post
This bbcode encloses a string of text in a box to differentiate from the original post. It becomes handy if you want to differentiate new edited text to the original post, such as when you update a post.

Writing this:

Code: Select all

[edit]update: The trip is now postponed till further notice[/edit]
will give you:
Edit: update: The trip is now postponed till further notice

spoiler - Hides content that can be revealed by clicking on a button
This bbcode will hide content like text, images or video and a button will be shown instead. The content will be revealed when the button is clicked. This gives viewers the freedom to view or not view that particular content, such as an answer to a quiz.

Writing this:

Code: Select all

[b]Question:[/b]
What's brown and sticky?

[b]Answer:[/b]
[spoiler]A stick![/spoiler]
will give you:
Question:
What's brown and sticky?

Answer:
SPOILER
A stick!
Last edited by Peace on Sat Aug 19, 2006 8:57 am, edited 1 time in total.


Last bumped by Peace on Tue Dec 18, 2007 11:56 am.

Post Reply