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 7 Spiders online.
Key: Admin, Global Mod, Mod
Shout Box

Latest Posts
Wisdom needed
by Gizmo
Yesterday at 10:54 AM
How to hide sub forums from summary page
by blaaskaak
12/03/08 09:54 AM
Spell Check [beta]
by Bill B
12/01/08 09:16 PM
PhotoPost BB Code Popup
by AllenAyres
12/01/08 09:41 AM
Problems reading a lot of old posts here
by AllenAyres
12/01/08 09:35 AM
Forum 'Trader Ratings'.
by AllenAyres
12/01/08 09:33 AM
Customization needed
by Gizmo
11/12/08 12:28 PM
New Mods
User Authentication Class
by
01/19/07 02:59 PM
Multiple Identity Detector
by
12/30/06 06:39 PM
PhotoPost BB Code Popup
by
11/06/06 05:43 PM
Spell Check [beta]
by
10/17/06 09:24 PM
Newest Members
Truth, David DelMonte, nick1, Begbie, cenk
13364 Registered Users
Top Posters
AllenAyres 25452
JoshPet 11330
Rick 8372
LK 7396
Lord Dexter 6503
Greg Hard 5533
Charles Capps 5438

 

 

 
fusionbb message board php hacks