Hatrack River Writers Workshop Hatrack River Writers Workshop
my profile login | search | faq | forum home

» Hatrack River Writers Workshop » UBB Code™

What is UBBCode™?

UBBCode™ 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 UBBCode™ even if HTML is not enabled for the forum you are using. You may want to use UBBCode™ as opposed to HTML, even if HTML is enabled for your forum, because there is less coding required and it is safer to use (incorrect coding syntax will not lead to as many problems).

All current UBB Code options are listed below.
URL Hyperlinking
If UBBCode™ is enabled in a forum, you do not need to use the [URL] code to create a hyperlink. Simply type the complete URL in either of the following manners and the hyperlink will be created automatically:
  • Automatic hyperlinking (no UBBCode™ required). Simply type the URL, as in http://www.infopop.com/ or www.infopop.com

  • Use the [URL] code, in either of the following manners:
    [URL=http://www.infopop.com]infopop.com[/URL]
    [URL]http://www.infopop.com[/URL]
For automatic hyperlinking, notice that you can either use the complete http:// address or shorten it to the www domain. If the site domain does not begin with www, you must use the complete http:// address. Also, you may use https:// and ftp:// URL prefixes in auto-link mode (when UBBCode™ is on).

When using the [URL] UBBCode™, a hyperlink to the URL will automatically be created. The link will open a new browser window when the user clicks on it. Note that the "http://" part of the URL is completely optional. Also note that you should NOT use quotation marks inside the [URL] tag. Attempting to do so may cause an error message.
Email Linking
To add a hyperlinked email address within your message, just encase the email address as shown in the following example.
[EMAIL]info@test5324687.com[/EMAIL]
Bold & Italics
You can make italicized text or make bold text by encasing the applicable sections of your text with either the [I] [/I] or [B] [/B] tags.
Hello, [B]Ted[/B]. You are bold.
Hello, [I]Rosemary[/I]. You are italic.
Lists
You can make bulleted lists or ordered lists (by number or letter).

Unordered, bulleted list:
[LIST]
[*] This is the first bulleted item.
[*] This is the second bulleted item.
[/LIST]
This produces:
  • This is the first bulleted item.
  • This is the second bulleted item.
Note that you must include a closing [/LIST] when you end each list.

Adding an A or a 1 to a [LIST] tag will create an ordered list. Typing [LIST=A] will produce a list from A to Z. Using [LIST=1] will produce numbered lists.

Here's an example:
[LIST=A]
[*]This is the first ordered item.
[*]This is the second ordered item.
[/LIST]
This produces:
  1. This is the first ordered item.
  2. This is the second ordered item.
Displaying Images
To add a graphic within your message, just enclose the URL to the image as shown in the following example.
[IMG]http://www.infopop.com/artwork/footer_logotype.gif[/IMG]
In the example above, the UBBCode™ automatically makes the image visible in your message. Note: the "http://" part of the URL is REQUIRED for the [IMG] code.

Some forums may disable [IMG] tag support to prevent objectionable images from being viewed.
Quoting Other Messages
To reference something specific that someone has posted, just copy and paste the applicable verbiage and enclose it as shown below:
[QUOTE]Ask not what your country can do for you...
ask what you can do for your country.[/QUOTE]
In the example above, the UBBCode™ automatically blockquotes the text you reference.
Code Tag
Like the Quote tag, the Code tag displays a blockquoted portion of text. However, the Code tag will neutralize any HTML in the text, and display the text with white space preserved. This is useful for displaying programming code, for instance.
[CODE]
#!/usr/bin/perl

use CGI;
my $q = new CGI;
print $q->header(-type => "text/html");
print "<html><body>Hello, world!</body></html>";
exit;
[/CODE]
Usage Note
Do not use both HTML and UBBCode™ to do the same function - the results may not be what you were expecting. Also note that the UBBCode™ is not case-sensitive (thus, you could use [url] or [URL]).

Incorrect UBBCode™ use:
  • [URL] www.infopop.com [/URL]: Don't put spaces between the bracketed code and the text you are applying the code to.
  • [EMAIL]info@test9342J.com[EMAIL]: The end brackets must include a forward slash ([/EMAIL])
     

Contact Us | Hatrack River Home Page

Copyright © 2008 Hatrack River Enterprises Inc. All rights reserved.
Reproduction in whole or in part without permission is prohibited.


Powered by Infopop Corporation
UBB.classic™ 6.7.2