Previous Thread
Next Thread
Print Thread
Hop To
posting color text with Version 5.39b #261218 03/10/2018 11:25 AM
Joined: Jun 2012
Posts: 2
junnny Offline OP
stranger
OP Offline
stranger
Joined: Jun 2012
Posts: 2
In the category of "How do I" do something, I had a quick question for one of you UBB jocks, which is:

How do I post a piece of colored text in a forum running Version 5.39b with UBB code activated?

While I realize the text will be enclosed between beginning and ending "color" code tags, for some reason, how to code for color is not included in the "how to" instructions for this bulletin board along with instructions for hyperlinking, email links, bold & italics, bullets, lists, etc.

So, I guess my shorter question is, have these instructions been modified to deliberately NOT include "color" or will the properly coded color tags work even as they are not specifically included in this particular forum's "how to use UBB codes" section?

It's an older version, too, I realize, but I wouldn't think red would have been added as a feature in later versions.

Thanks.
junnny

Re: posting color text with Version 5.39b [Re: junnny] #261219 03/10/2018 1:37 PM
Joined: Dec 2003
Posts: 5,974
Ruben Online Yawn
Online Yawn
Joined: Dec 2003
Posts: 5,974
Wrong forum but anyway that version is so old that I don't recall if you can change fonts or color.
It had very limited ubb tags..

Have a look at
https://www.ubbcentral.com/forums/ubbthreads.php/topics/179634/ubb-classic-documentation#Post179634
for documentation


Blue Man Group
There is no such thing as stupid questions. Just stupid answers
Re: posting color text with Version 5.39b [Re: junnny] #261221 03/10/2018 6:54 PM
Joined: Jun 2006
Posts: 15,844
Gizmo Offline
UBB.threads Developer
Offline
UBB.threads Developer
Joined: Jun 2006
Posts: 15,844
UBB.Classic as a product was shelved (End of Life) on October 5th, 2006 when v7 of UBB.threads was released; the final build of UBB.Classic was v6.7.3 which was released in 2005. Your release is well prior to that, I don't even have a changelog available regarding a version in the v5 branch. The file dates in the v547e archive that I have on hand, note files being from as late as 2001, and as early as 1998.

The UBBCode in the v5 series of UBB.Classic was extremely limited; the oldest release that I have on hand is v547e, which displays the following coding for UBBCode (cgi-bin/postings.cgi):
Code
sub UBBCode {
my $ThePost = shift;
if ($ThePost =~ /\.cookie/i) {
	&StandardHTML("Illegal HTML tag, COOKIE");
	exit;
	}
if ($ThePost =~ /\ONERROR\s*=/i) {
	&StandardHTML("Illegal HTML tag, ONERROR");
	exit;
	}

#auto URL---
$ThePost =~ s/(\[URL|(^|\s)http:\/\/|(^|\s)www\.)(\S*?)".*?(\]|\[\/URL\]|\s|$)/$1$4$5/isg;

$ThePost =~ s/(^|\s)(http:\/\/\S+|https:\/\/\S+)(\.?|,?)/$1<A HREF="$2" TARGET=_blank>$2<\/A>$3/isg;
$ThePost =~ s/(^|\s)(www\.\S+)(\.?|,?)/$1<A HREF="http:\/\/$2" TARGET=_blank>$2<\/A>$3/isg;
return $ThePost unless ($ThePost =~ /\[\/.+]/); # only process if there are ubbcode tags

$ThePost =~ s/(\[URL\])(http|https|ftp)(:\/\/\S+?)(\[\/URL\])/ <A HREF="$2$3" TARGET=_blank>$2$3<\/A> /isg;
$ThePost =~ s/(\[URL\])(\S+?)(\[\/URL\])/ <A HREF="http:\/\/$2" TARGET=_blank>$2<\/A> /isg;

$ThePost =~ s/(\[URL=)(http|https|ftp)(:\/\/\S+?)(\])(.+?)(\[\/URL\])/<A HREF="$2$3" TARGET=_blank>$5<\/A>/isg;

$ThePost =~ s/(\[URL=)(\S+?)(\])(.+?)(\[\/URL\])/<A HREF="http:\/\/$2" TARGET=_blank>$4<\/A>/isg;

$ThePost =~ s/(\[EMAIL\])(\S+\@\S+?)(\[\/EMAIL\])/ <A HREF="mailto:$2">$2<\/A>/isg;

$ThePost =~ s,(\[code\])(.+?)(\[/code\]),<BLOCKQUOTE><font size="1" face="$FontFace">code:<\/font><HR><pre>$2</pre><HR><\/BLOCKQUOTE>,isg;

if ( ($OverrideImages ne "yes") && ($UBBImages eq "ON") ) {
$ThePost =~ s/(\[IMG\])(http:\/\/\S+)(\[\/IMG\])/ <IMG SRC="$2"> /isg;


}


$ThePost =~ s/(\[QUOTE\])(.+?)(\[\/QUOTE\])/ <BLOCKQUOTE><font size="1" face="$FontFace">quote:<\/font><HR><font face="$FontFace" size="$TextSize">$2<\/font><HR><\/BLOCKQUOTE>/isg;

$ThePost =~ s/(\[i\])(.+?)(\[\/i\])/<I>$2<\/I>/isg;

$ThePost =~ s/(\[b\])(.+?)(\[\/b\])/<B>$2<\/B>/isg;
$ThePost =~ s/(\[list\])\n?\r?(.+?)(\[\/list\])/<UL TYPE=SQUARE>$2<\/UL>/isg;
$ThePost =~ s/(\[list=)(A|1)(\])\n?\r?(.+?)(\[\/list\])/<OL TYPE=$2>$4<\/OL>/isg;
$ThePost =~ s/\n?\r?(\[\*\])/<LI>/isg;
return ($ThePost);

}


So it looks like the only BBCode in this version are those which display in the forum help (NonCGI/ubbcode.html):
Lists, Bold, Italicize, Quotes, Image Tags, Code Tag, then URL/Email.


Bottom line, if you want current BBCode, or care anything for current web standards, you'd need to be running something that isn't 20+ years old.

Last edited by Gizmo; 03/11/2018 3:48 PM.

I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Need to Upgrade?
Forums: A Gardeners Forum Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!

Forum Search
ShoutChat Box
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
Having issue with redirects to UBB classic URLs
by amciotola - 10/16/2019 1:11 AM
Unable to save General settings
by amciotola - 10/13/2019 4:23 AM
I see signature line images, but no avatars
by Morgan - 10/12/2019 2:21 PM
Show PDF
by Geoff - 10/09/2019 1:33 AM
Subscription’s Auto Return URL for PayPal
by Geoff - 09/27/2019 12:10 AM
Who's Online Now
2 registered members (Ruben, JAISP), 71 guests, and 251 spiders.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Amusing Terain Scenics
Amusing Terain Scenics
by isaac, August 19
Sky places
Sky places
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 7.7.4
(Snapshot build 20190930)