Translate This Blog
Remember To Always Back Up Your Template Before Attempting Any Of The Tweaks On This Site

BBCode

Bulletin Board Code or BBCode is a lightweight markup language used to format posts in many message boards. The available tags are usually indicated by square brackets surrounding a keyword, and they are parsed by the message board system before being translated into a markup language that web browsers understand—usually HTML or XHTML.

BBCode was devised to provide a safer, easier and more limited way of allowing users to format their messages. Previously, many message boards allowed the users to include HTML formatting, a side effect of which was that malformed HTML could disrupt the page's layout, or HTML could be used to run JavaScript leading to XSS attacks. Some implementations of BBCode have suffered problems related to the way they translate the BBCode into HTML, which could negate the security that was intended to be given by BBCode. An alternative is a properly written HTML filter (many of which are freely available).

Although the basic tags of BBCode are similar in most internet forum software, there is currently no standards document for BBCode and there are consequently many incompatible variants. Some variants are case-sensitive while others are not. Some variants have tags which highlight the formatting of HTML, ASP, PHP, SQL and other markup languages and programming languages.



[b]text[/b]
Makes text bold.

[i]text[/i]
Makes text italicized.

[u]text[/u]
Underlines text.

[s]text[/s]
Strikes out text.

[glow=red,2,50]glow[/glow]
Adds a glowing effect to text. This BBCode only works with MS Internet Explorer. This is not a standard feature in any other browser.

[shadow=red,left]shadow[/shadow]
Adds a shadow effect to text. This BBCode only works with MS Internet Explorer. This is not a standard feature in any other browser.

[move]text[/move]
Makes the text inside move in a marquee.

[pre]text[/pre]
Preformats enclosed text.

[left]left align[/left]
Aligns enclosed items to the left.

[center]centered[/center]
Aligns enclosed items to the center.

[right]right align[/right]
Aligns enclosed items to the right.

[hr]
Inserts a horizontal rule into a post or PM. Note there is no closing tag.

[size=10pt]font size[/size]
Adjusts the font size of the enclosed text.

[font=Verdana]font face[/font]
Used to change the font face of the enclosed text.

[flash=200,200]http://somesite/somefile.swf[/flash]
Inserts a link to an animated flash file in .swf format. Please be cautious when enabling this BBCode in your forum, since it may be a security risk.

[img]http://somesite/image.jpg[/img]
Inserts an image into a post or personal message.

[url]http://somesite/[/url]
or
[url=http://somesite/]Site Name[/url]

Formats a URL in a or post personal message.

[email]someone@somesite[/email]
or
[email=someone@somesite]Somename[/email]

Formats an email address in a post or personal message.

[ftp]ftp://somesite[/ftp]
or
[ftp=ftp://somesite]somesite[/ftp]
Formats an FTP address in a= post or personal message.

[sup]text[/sup]
Formats enclosed text as a superscript.

[sub]text[/sub]
Formats enclosed text as a subscript.

[tt]text[/tt]
Formats enclosed text in teletype format.

[code]code[/code]
Used to insert a selection of code into a personal message or post.

[quote]text[/quote]
or
[quote=Author link=http://somesite/]text[/quote]
Places enclosed text in a quote box.

[list]
[li]SMF[/li]
[li]YaBB SE[/li]
[/list]
[list]
[o]circle
[O]circle
[0]circle
[*]disc
[@]disc
[+]square
[x]square
[#]square
[/list]
Inserts items in list format.

[table][/table]
Inserts a table. It can't be used alone, or it has no sense!

[tr][/tr]
Inserts a row into a table. This BBCode can't be used alone.

[td][/td]
Inserts a column into a table. This BBCode can't be used alone.

[abbr=exemlpi gratia]eg[/abbr]
Displays the full expression for the abbreviation on mouseover.

[acronym=Simple Machines Forum]SMF[/acronym]
Displays the full expression for the acronym on mouseover.

[html]
[/html]

Parses HTML code. (Only Admins can use this)

[nobbc] [/nobbc]
Ignores bbcode formatting

[time]1132812640[/time]
Converts a Unix Timestamp into a time recognizable by people.

[iurl]http://somesite/[/iurl]
Makes a link that opens in the same window.

[anchor=test]Test[/anchor]
[url=#test]Link to anchor[/url]

2 comments:

Anonymous said...

Hi ,

How browser All understand bbcode for output

AiresOFwar said...

BB code is really only used with forums and stuff like that. I am not a expert on BB code but I believe its more of a called for function then directly read by browsers. I believe they use PHP coding to assign variables to the BB code. Its not something you can just uses on your blog post and expect it to work.

Post a Comment

Please don't post hyperlinked text within the comment box! It will not be published and you will be marked as spam.

Web Design Blogs PageRank