php forum
php mysql forum
php mysql smarty
 
Topic Options
#155401 - 12/04/02 10:55 AM [6.3.x] [beta] Underline, Size, Font & Colored Text
tgreene Offline
Member

Registered: 11/28/02
Posts: 187
Loc: Jonesboro, Arkansas
After looking high and low, I just discovered a really old hack that was designed by another member here (forgot who), but the hack was only for 6.1.

With a couple of very minor changes, it works flawlessly with my 6.3.1.2 board.

Advanced UBB-Code 1.2 Beta

ubb_lib.cgi
Quote:
code:</font><hr />
Code:
=====
find:
=====

#		$match++ if $_[0] =~ s/n?r?([*])/</font></li><li><font size="$vars_style{TextSize}" face="$vars_style{FontFace}">/isg;

==========
add below:
==========

		$match++ if $_[0] =~ s/([color=)(S+?)(])(.+?)([/color])/<font color="$2">$4</font>/isg;
		$match++ if $_[0] =~ s/([center])(.+?)([/center])/<center>$2</center>/isg;
		$match++ if $_[0] =~ s/([u])(.+?)([/u])/<u>$2</u>/isg;
		$match++ if $_[0] =~ s/([font=)(.+?)(])(.+?)([/font])/<font face="$2">$4</font>/isg;
		$match++ if $_[0] =~ s/([size=)(.+?)(])(.+?)([/size])/<font size="$2">$4</font>/isg;
<hr /></blockquote>ubb_lib_posting.cgi
<blockquote><font class="small">code:
[qb]
Code:
=====
find:
=====
		$match++ if $_[0] =~ s/<LI>/n[*]/isg;

==========
add below:
==========

		$match++ if $_[0] =~ s/(<font color=")(S+)(">)(.+?)(</font>)/[color=$2]$4[/COLOR]/isg;
		$match++ if $_[0] =~ s/(<center>)(.+?)(</center>)/[center]$2[/center]/isg;
		$match++ if $_[0] =~ s/(<u>)(.+?)(</u>)/[u]$2[/u]/isg;
		$match++ if $_[0] =~ s/(<font face=")(.+?)(">)(.+?)(</font>)/[font=$2]$4[/font]/isg;
		$match++ if $_[0] =~ s/(<font size=")(.+?)(">)(.+?)(</font>)/[size=$2]$4[/size]/isg;
[/qb]
I sincerely hope that I haven't stepped on anyones toes by posting this, but I figured it could be very helpful...

Now, if someone (anyone) could assist me with my Spell Checker, I would be forever appreciative! wink

Top
#155402 - 12/04/02 11:35 AM Re: [6.3.x] [beta] Underline, Size, Font & Colored Text
CTM Offline
Moderator / Da Masta

Registered: 11/23/01
Posts: 2567
I think this is already available for 6.3, sorry frown The 6.2 hack works on 6.3 too. frown The other hack also adds JS prompts, buttons, etc... Though this is nice as a "Lite" version of the other hack. smile

[EDIT: Ugh, spelling... Need coffee. Back soon.]

Top
#155403 - 12/04/02 11:45 AM Re: [6.3.x] [beta] Underline, Size, Font & Colored Text
tgreene Offline
Member

Registered: 11/28/02
Posts: 187
Loc: Jonesboro, Arkansas
I would rather have more features, if somebody could point me to a better hack...

Top
#155404 - 12/04/02 11:57 AM Re: [6.3.x] [beta] Underline, Size, Font & Colored Text
CTM Offline
Moderator / Da Masta

Registered: 11/23/01
Posts: 2567
Of course smile

http://www.ubbdev.com/ubb/ultimatebb.php?ubb=get_topic;f=31;t=000107#000000

Top
#155405 - 12/04/02 12:11 PM Re: [6.3.x] [beta] Underline, Size, Font & Colored Text
tgreene Offline
Member

Registered: 11/28/02
Posts: 187
Loc: Jonesboro, Arkansas
Thanks... that's gonna be a lot of work for the same basic reults!

Top


Who's Online
0 registered (), 22 Guests and 13 Spiders online.
Key: Admin, Global Mod, Mod
Shout Box

Latest Posts
ubb.social
by Placebo
Yesterday at 04:25 AM
Displaying a gif for a paying member
by Iann128
01/06/09 07:04 AM
Restore The "New Topic Is Highlighted" Feature
by hikelite
01/02/09 07:41 PM
Web Hosting
by Pilgrim
01/02/09 04:13 PM
Finishing touches on a UBB migration
by AllenAyres
01/02/09 03:04 PM
Sidebar options?
by Pilgrim
12/26/08 03:40 PM
Legacy Style
by sirdude
12/24/08 07:18 PM
New Mods
Displaying a gif for a paying member
by Iann128
12/29/08 11:44 AM
Legacy Style
by Micky
12/21/08 01:36 PM
ubb.social
by
08/03/06 10:38 AM
Newest Members
bluedthunder, blaqskreen, RAICHU, sebak, BaronDriver
13371 Registered Users
Top Posters
AllenAyres 25461
JoshPet 11330
Rick 8372
LK 7396
Lord Dexter 6503
Greg Hard 5533
Charles Capps 5438

 

 

 
fusionbb message board php hacks