Previous Thread
Next Thread
Print Thread
Hop To
#109894 01/11/2002 6:56 AM
Anonymous
Unregistered
Anonymous
Unregistered
I've just tried to add the doctype tag, and many things were aligned to center.

Fixes to what I saw so far:

public_topic_page.pl
Quote
<tr bgcolor="$alt_color" align="left">
public_faq.pl
Quote
<tr bgcolor="$vars_style{$thiscolor}"><td align="left">
<font face="$vars_style{FontFace}" size="$vars_style{TextSize}">$short->{'trigger'}
</font></td>
<td align="left"><font face="$vars_style{FontFace}" size="$vars_style{TextSize}">$short->{'text'}
</font></td>
<td align="left"><img src="$vars_config{NonCGIURL}/$short->{'image'}" border="0" alt="$short->{'text'}" /></td></tr>

);
$count++;
} #endforeach


foreach my $item (sort keys %{$vars_graemlins->{'graems'}}) {
my $thiscolor;
my $short = %$vars_graemlins->{'graems'}->{$item};
$thiscolor = "AltColumnColor1" if ($count % 2 == 1);
$thiscolor = "AltColumnColor2" if ($count % 2 != 1);

$body .= qq(

<tr bgcolor="$vars_style{$thiscolor}"><td align="left">
<font face="$vars_style{FontFace}" size="$vars_style{TextSize}">:$short->{'trigger'}:
</font></td>
<td align="left"><font face="$vars_style{FontFace}" size="$vars_style{TextSize}">$short->{'text'}
</font></td>
<td align="left"><img src="$vars_config{NonCGIURL}/graemlins/$short->{'image'}" border="0" alt="$short->{'text'}" /></td></tr>
public_ubb_code_page.pl: replace <td with <td align="left" unless there already is align="something" in that tag. Also follow validator.w3.org's directions [for example use $trade instead of &#153;)

[This message was edited by Charles Capps on November 05, 2002 at 09:50 AM.]

#109895 01/11/2002 7:19 AM
Anonymous
Unregistered
Anonymous
Unregistered
Code
# 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]

#109896 01/11/2002 1:37 PM
Anonymous
Unregistered
Anonymous
Unregistered
Aha! Allen, you didn't get everything!

(We are using XHTML templates provided by Allen Ayres <img src="https://www.ubbcentral.com/boards/images/graemlins/wink.gif" alt="" /> )

Keep the reports coming - this is being moved into the Bugs forum.

(FYI, we exclude the doctype in the release versions on purpose - IE6, MacIE5, and Mozilla render pages differently with a doctype, which may cause other undesired quirks.)

--
Charles Capps
Programmer, Infopop Corporation
Please do not contact me privately for support - post on the board or open a support ticket instead!


Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
spam issues
by ECNet - 03/19/2024 11:45 PM
Looking for a forum
by azr - 03/15/2024 11:26 PM
Editing Links in Post
by Outdoorking - 03/15/2024 9:31 AM
Question on barkrowler and the like
by Mors - 02/29/2024 6:51 PM
Member Permissions Help
by domspeak - 02/27/2024 6:31 PM
Who's Online Now
1 members (Havenofsobriety), 522 guests, and 99 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20230217)