What is UBB Code?

UBB Code is a variation on the HTML tags you may already be familiar with. Basically, it allows you to add functionality or style to your message that would normally require HTML. You can use UBB Code even if HTML is not enabled for the forum you are using. You may want to use UBB Code as opposed to HTML, even if HTML is enabled for your forum, because there is less coding required.

Current UBB Codes:

URL Hyperlinking
To add a hyperlink to your message, just encase the link as shown in the following example (UBB Code is in red).

[url]www.prime-web.com[/url]

In the example above, the UBB Code automatically generates a hyperlink to the URL that is encased. It will also ensure that the link is opened in a new window when the user clicks on it. Note that the "http://" part of the URL is completely optional.

Email Links
To add a hyperlinked email address within your message, just encase the email address as shown in the following example (UBB Code is in red).

[email]ted@prime-web.com[/email]

In the example above, the UBB Code automatically generates a hyperlink to the email address that is encased.

Bold and Italics
You can make italicize text or make text bold by encasing the applicable sections of your text with wither the [b] [/b] or [i] [/i] tags.

Hello, [b]James[/b]
Hello, [i]Mary[/i]
Adding Images
To add a graphic within your message, just encase the URL of the graphic image as shown in the following example (UBB Code is in red).

[img]http://www.prime-web.com/Ultimate20/tline.gif[/img]

In the example above, the UBB Code automatically makes the graphic visible in your message. Note: the "http://" part of the URL is REQUIRED for the [img] code. Also note: some UBB forums may disable the [img] tag support to prevent objectionable images from being viewed.

Quoting Other Messages
To reference something something specific that someone has posted, just cut and paste the applicable verbage and enclose it as shown below (UBB Code is in red).

[QUOTE]Ask not what your country can do for you....
ask what you can do for your country.[/QUOTE]

In the example above, the UBB Code automatically blockquotes the text you reference.

Code Tag
Similar to the Quote tage, the Code tag adds some <PRE> tags to preserve formatting. This useful for displaying programming code, for instance.

[CODE]#!/usr/bin/perl

print "Content-type: text/html\n\n";
print "Hello World!"; [/CODE]

In the example above, the UBB Code automatically blockquotes the text you reference and preserves the formatting of the coded text.



Of Note
You must not use both HTML and UBB Code to do the same function. Also note that the UBB Code is not case-sensitive (thus, you could use [URL] or [url]).

Incorrect UBB Code Usage:

[url] www.prime-web.com [/url] - don't put spaces between the bracketed code and the text you are aplying the code to.

[email]ted@prime-web.com[email] - the end brackets must include a forward slash ([/email])


© Madrona Park, Inc., 1998.