BBCode Guide
Introduction
What is BBCode?

Text Formatting
How to create bold, italic and underlined text
How to change the text colour or size
Can I combine formatting tags?

Quoting and outputting fixed-width text
Quoting text in replies
Outputting code or fixed width data

Generating lists
Creating an Un-ordered list

Creating Links
Linking to another site

Showing images in reviews
Adding an image to a review
 

Introduction
What is BBCode?
BBCode is a special implementation of HTML. Whether you can actually use BBCode in your reviews is determined by the administrator. BBCode itself is similar in style to HTML: tags are enclosed in square braces [ and ] rather than < and > and it offers greater control over what and how something is displayed. Even with this you may find the following guide useful.
Back to top

Text Formatting
How to create bold, italic and underlined text
BBCode includes tags to allow you to quickly change the basic style of your text. This is achieved in the following ways:
  • To make a piece of text bold enclose it in [b][/b], eg.

    [b]Hello[/b]

    will become Hello
  • For underlining use [u][/u], for example:

    [u]Good Morning[/u]

    becomes Good Morning
  • To italicise text use [i][/i], eg.

    This is [i]Great![/i]

    would give This is Great!

Back to top
How to change the text colour or size
To alter the color or size of your text the following tags can be used. Keep in mind that how the output appears will depend on the viewers browser and system:
  • Changing the colour of text is achieved by wrapping it in [color=][/color]. You can specify either a recognized colour name (eg. red, blue, yellow, etc.) or the hexadecimal triplet alternative, eg. #FFFFFF, #000000. For example, to create red text you could use:

    [color="red"]Hello![/color]

    or

    [color="#FF0000"]Hello![/color]

    will both output Hello!
  • Changing the text size is achieved in a similar way using [size=][/size]. This tag is dependent on the template you are using but the recommended format is a numerical value representing the text size in pixels, starting at 1 (so tiny you will not see it) through to 29 (very large). For example:

    [size="9"]SMALL[/size]

    will generally be SMALL

    whereas:

    [size="24"]HUGE![/size]

    will be HUGE!

Back to top
Can I combine formatting tags?
Yes, of course you can; for example to get someones attention you may write:

[size="18"][color="red"][b]BIG RED LETTERS![/b][/color][/size]

this would output BIG RED LETTERS !

We don't recommend you output lots of text that looks like this, though! Remember that it is up to you, the reviewer, to ensure that tags are closed correctly. For example, the following is incorrect:

[b][u]This is wrong[/b][/u]
Back to top

Quoting and outputting fixed-width text
Quoting text in reviews
  • Use [quote][/quote] to specify a quote without a reference.

    [quote]This is the text I am quoting.[/quote]

    will output the following:
    Quote: This is the text I am quoting.

Back to top
Outputting code or fixed width data
If you want to output a piece of code, you should enclose the text in [code][/code] tags, eg.

[code]echo "This is some code";[/code]


Back to top

Generating lists
Creating an Un-ordered list
An unordered list ouputs each item in your list sequentially one after the other indenting each with a bullet character. To create an unordered list you use [list][/list] and define each item within the list using [*]. For example, to list your favorite colors you could use:

[list]
[*]Red
[*]Blue
[*]Yellow
[/list]

This would generate the following list:
  • Red
  • Blue
  • Yellow

Back to top

Creating Links
Linking to another site
BBCode supports a creating URIs, Uniform Resource Indicators better known as URLs.
  • Use the [url=""][/url] tag; whatever you type after the = sign will cause the contents of that tag to act as a URL. For example, to link to Review-Script.com you could use:

    [url="http://www.review-script.com/"]Get Five Star Review![/url]

    This would generate the following link, Get Five Star Review!

  • The same thing applies equally to email addresses; you can specify an address explicitly, like:

    [email]"no.one@domain.com"[/email]

    which will output no.one@domain.com
As with all the BBCode tags you can wrap URLs around any of the other tags such as [img][/img] (see next entry), [b][/b], etc. As with the formatting tags it is up to you to ensure the correct open and close order is following.

Back to top

Showing images in posts
Adding an image to a review
BBCode incorporates a tag for including images in your reviews. Two very important things to remember when using this tag are: many users do not appreciate lots of images being shown in reviews and second, the image you display must already be available on the Internet (it cannot exist only on your computer, for example, unless you run a webserver!). There is currently no way of storing images locally with Five Star Review Script. To display an image, you must surround the URL pointing to the image with [img][/img] tags. For example:

[img]http://www.review-script.com/images/80x60.gif[/img]

As noted in the URL section above you can wrap an image in a [url][/url] tag if you wish, eg.

[url="http://www.review-script.com/"][img]http://www.review-script.com/images/80x60.gif[/img][/url]

would generate:



Back to top

Copyright © 2013 ScanTastik Inc