# UBB CODE DIEFINITION PAGE
sub ubb_code_body {
$MainButtonsLine = MainButtonOptions
my $body = qq~
<center>
$standard_title_table
$TBT
<tr bgcolor="$vars_style{AltColumnColor1}">
<td valign="bottom" align="left">
<font size="1" face="$vars_style{FontFace}">
[b]ยป
$show_logout
[/b]
</font>
</td>
<td valign="bottom" align="right">
<font size="1" face="$vars_style{FontFace}">[b]
<a href="$ULTIMATEBB">$vars_config{BBName}</a> raquo $vars_wordlets{ubb_code}
[/b]</font>
</td>
</tr>
$TBB
<table border="0" width="$vars_style{TableWidth}">
<tr>
<td align="left" colspan="2">
<font size="$vars_style{TextSize}" face="$vars_style{FontFace}">
[b]What is UBB Code?[/b]
UBBCode$trade 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$trade even if HTML is not enabled for the forum you are using. You may want to use UBBCode$trade 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.
</font>
</td>
</tr>
</table>
$TBT
<tr bgcolor="$vars_style{TableColorStrip}">
<td align="left" colspan="2">
<font size="$vars_style{TextSize}" color="$vars_style{TableStripTextColor}" face="$vars_style{FontFace}">
[b]URL Hyperlinking[/b]
</font>
</td>
</tr>
<tr bgcolor="$vars_style{AltColumnColor1}">
<td align="left">
<font size="$vars_style{TextSize}" face="$vars_style{FontFace}">
If
UBBCode$trade is enabled in a forum, you no longer 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:</font>
<ul>
[*]<font size="$vars_style{TextSize}" face="$vars_style{FontFace}"> Automatic hyperlinking (no UBBCode required). Simply type the URL, as in [b]http://www.yourURL.com[/b] or [b]www.yourURL.com [/b]</font></li>
[*]<font size="$vars_style{TextSize}" face="$vars_style{FontFace}"> Use the [url] code, in either of the following manner:
</font>
<blockquote>
<font size="$vars_style{TextSize}" face="$vars_style{FontFace}">[b] [url=http://www.infopop.com][/b]infopop.com[b][/url][/b]
[b][url][/b]http://www.infopop.com[b][/url][/b]</font>
</blockquote></li>
[/LIST]<font size="$vars_style{TextSize}" face="$vars_style{FontFace}">
For automatic hyperlinking, notice that you can either use the complete http:// address or
shorten it to the www domain. If the site 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$trade
is ON).
When using the URL UBBCode, the UBBCode$trade 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. Also
note that you should NOT use quotation marks inside the URL
tag.
</font>
</td></tr>
<tr bgcolor="$vars_style{TableColorStrip}">
<td align="left" colspan="2">
<font size="$vars_style{TextSize}" color="$vars_style{TableStripTextColor}" face="$vars_style{FontFace}">
[b]Email Linking[/b]
</font>
</td>
</tr>
<tr bgcolor="$vars_style{BGColor}">
<td align="left">
<font face="$vars_style{FontFace}" size="$vars_style{TextSize}">
To
add a hyperlinked email address within your message, just encase the
email address as shown in the following example.
</font>
<blockquote><font face="$vars_style{FontFace}" size="$vars_style{TextSize}">
[b][email][/b]info@test5324566.com[b][/email][/b]</font>
</blockquote>
<font face="$vars_style{FontFace}" size="$vars_style{TextSize}"> In
the example above, the UBBCode$trade automatically generates a hyperlink
to the email address that is encased.
</font>
</td></tr>
<tr bgcolor="$vars_style{TableColorStrip}">
<td align="left" colspan="2">
<font size="$vars_style{TextSize}" color="$vars_style{TableStripTextColor}" face="$vars_style{FontFace}">
[b]Bold & Italics[/b]
</font>
</td>
</tr>
<tr bgcolor="$vars_style{BGColor}">
<td align="left">
<font size="$vars_style{TextSize}" face="$vars_style{FontFace}">
You
can make italicized text or make text bold by encasing the applicable
sections of your text with either the [b] [/b] or [i] [/i] tags.
</font>
<blockquote><font size="$vars_style{TextSize}" face="$vars_style{FontFace}">
Hello,
[b][b][/b]James[b][/b][/b] : BOLD
Hello, [b][i][/b]Mary[b][/i][/b] : ITALICS</font>
</blockquote>
</td></tr>
<tr bgcolor="$vars_style{TableColorStrip}">
<td align="left" colspan="2">
<font size="$vars_style{TextSize}" color="$vars_style{TableStripTextColor}" face="$vars_style{FontFace}">
[b]Bullet Lists[/b]
</font>
</td>
</tr>
<tr bgcolor="$vars_style{BGColor}">
<td align="left">
<font size="$vars_style{TextSize}" face="$vars_style{FontFace}">
You
can make bulleted lists or ordered lists (by number or letter).
Unordered, bulleted list:
[b][list][/b]
[b][*][/b] This is the first bulleted item.
[b][*][/b] This is the second bulleted item.
[b][/list][/b]
This produces:</font>
<ul>
[*]<font size="$vars_style{TextSize}" face="$vars_style{FontFace}"> This is the first bulleted item.</font></li>
[*]<font size="$vars_style{TextSize}" face="$vars_style{FontFace}"> This is the second bulleted item.</font></li>
[/LIST]<font size="$vars_style{TextSize}" face="$vars_style{FontFace}">
Note that
you must include a closing [/list] when you end each list.
Making
ordered lists is just as easy. Just add either [LIST=A] or [LIST=1].
Typing [List=A] will produce a list from A to Z. Using [List=1]
will produce numbered lists.
Here's
an example:
[b][list=A][/b]
[b][*][/b] This is the first bulleted item.
[b][*][/b] This is the second bulleted item.
[b][/list][/b]
This
produces:</font>
[LIST=A]
[*]<font size="$vars_style{TextSize}" face="$vars_style{FontFace}"> This is the first bulleted item.</font></li>
[*]<font size="$vars_style{TextSize}" face="$vars_style{FontFace}"> This is the second bulleted item.</font></li>
[/LIST]
</td></tr>
<tr bgcolor="$vars_style{TableColorStrip}">
<td align="left" colspan="2">
<font size="$vars_style{TextSize}" color="$vars_style{TableStripTextColor}" face="$vars_style{FontFace}">
[b]Displaying Images[/b]
</font>
</td>
</tr>
<tr bgcolor="$vars_style{BGColor}">
<td align="left">
<font face="$vars_style{FontFace}" size="$vars_style{TextSize}">
To
add a graphic within your message, just encase the URL of the graphic
image as shown in the following example.
</font>
<blockquote><font size="$vars_style{TextSize}" face="$vars_style{FontFace}">
[b][img][/b]http://www.infopop.com/artwork/footer_logotype.gif[b][/img][/b]</font>
</blockquote><font size="$vars_style{TextSize}" face="$vars_style{FontFace}">
In
the example above, the UBBCode$trade automatically makes the graphic
visible in your message. Note: the "http://" part of the URL is
REQUIRED for the [b][img][/b] code. Also note:
some UBB forums may disable the [b][img][/b]
tag support to prevent objectionable images from being viewed.
</font>
</td></tr>
<tr bgcolor="$vars_style{TableColorStrip}">
<td align="left" colspan="2">
<font size="$vars_style{TextSize}" color="$vars_style{TableStripTextColor}" face="$vars_style{FontFace}">
[b]Quoting Other Messages[/b]
</font>
</td>
</tr>
<tr bgcolor="$vars_style{BGColor}">
<td align="left">
<font size="$vars_style{TextSize}" face="$vars_style{FontFace}">
To reference something specific that someone has posted, just cut and
paste the applicable verbiage and enclose it as shown below
</font>
<blockquote><font size="$vars_style{TextSize}" face="$vars_style{FontFace}">
[b][QUOTE][/b]Ask not what your country can do for you....
ask what you can do for your country.[b][/QUOTE][/b]</font>
</blockquote><font size="$vars_style{TextSize}" face="$vars_style{FontFace}">
In
the example above, the UBBCode$trade automatically blockquotes the
text you reference.
</font>
</td>
</tr>
<tr bgcolor="$vars_style{TableColorStrip}">
<td align="left" colspan="2">
<font size="$vars_style{TextSize}" color="$vars_style{TableStripTextColor}" face="$vars_style{FontFace}">
[b]Code Tag[/b]
</font>
</td>
</tr>
<tr bgcolor="$vars_style{BGColor}">
<td align="left">
<font face="$vars_style{FontFace}" size="$vars_style{TextSize}">
Similar to the Quote tage, the Code tag adds some <PRE> tags to preserve
formatting. This is useful for displaying programming code, for instance.
</font>
<blockquote><font size="$vars_style{TextSize}" face="$vars_style{FontFace}">
[b][CODE][/b]
#!/usr/bin/perl
print
"Content-type: text/htmlnn";
print "Hello World!";
[b]
</b></font>
</blockquote><font size="$vars_style{TextSize}" face="$vars_style{FontFace}">
In
the example above, the UBBCode$trade automatically blockquotes the
text you reference and preserves the formatting of the coded text.
</font>
</td>
</tr>
$TBB
<br />
<table border="0" width="$vars_style{TableWidth}">
<tr><td align="left">
<font face="$vars_style{FontFace}" size="$vars_style{TextSize}">
<b>Of Note:</b>
<br /><br />
You must not use both HTML and UBBCode$trade to do the same function. Also note that the UBBCode$trade is not case-sensitive (thus, you could use <b></b> or <b>[url]</b> ).
<br /><br />
Incorrect UBBCode$trade Usage:</font>
<ul>
<li><font size="$vars_style{TextSize}" face="$vars_style{FontFace}"><b>[url]</b>
www.infopop.com <b></b>
- don't put spaces between the bracketed code and the text you are applying
the code to.</font></li>
<li><font size="$vars_style{TextSize}" face="$vars_style{FontFace}"><b>[email]</b>info@test9342J.com<b>[email]</b>
- the end brackets must include a forward slash (<b>[/email]</b> )</font></li></ul>
<br /><br />
</td></tr></table>
</center>
~;
return ($body);
} # end ubb_code_body
# Nothing below this line should be changed.. and there is no more code!
# This entire program is copyright Infopop Corporation.
# For more info on the Ultimate Bulletin Board and other Infopop
# Products/Services, visit:
http://www.infopop.com # You may not distribute this program in any manner, modified or otherwise.
#You make modifications, but only for your own use and within the confines of the UBB License Agreement.
# DANGER: Do not remove the following line!
1;[/CODE]