Previous Thread
Next Thread
Print Thread
Hop To
Joined: Jun 2012
Posts: 2
J
stranger
stranger
J Offline
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

Joined: Dec 2003
Posts: 6,560
Likes: 78
Joined: Dec 2003
Posts: 6,560
Likes: 78
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
Joined: Jun 2006
Posts: 16,292
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,292
Likes: 116
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.
Do you need Forum Install or Upgrade Services?
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!

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
0 members (), 744 guests, and 147 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)