Previous Thread
Next Thread
Print Thread
Rate Thread
#149174 01/12/2002 1:11 AM
Joined: Aug 2000
Posts: 13
Junior Member
Junior Member
Offline
Joined: Aug 2000
Posts: 13
DF UBBCode allows your users to fade text from one colour to another using a simple UBB code. It also adds a tag for single colours as well. Download it here .

The fading routine can also be reused elsewhere (it's very versatile), subject to the conditions in the file.

Sponsored Links
Joined: Jun 2001
Posts: 2,849
Spotlight Winner
Spotlight Winner
Offline
Joined: Jun 2001
Posts: 2,849
Very small install, but it didn't work for me. Please check the result I got...

click here

I have HTML disabled, in case that's the problem.

Joined: Aug 2000
Posts: 13
Junior Member
Junior Member
Offline
Joined: Aug 2000
Posts: 13
You have to use hexadecimal codes, so 0000FF-FF0000.

You could make it take text values, but it'd be long. If you want it, I can make it up, though.

Although that doesn't fix the other problem... there's no reason for it to do that, it works just the same as the other UBB codes... let me work on it.

[ 01-12-2002 12:39 AM: Message edited by: Dufus ]

Joined: Jun 2001
Posts: 2,849
Spotlight Winner
Spotlight Winner
Offline
Joined: Jun 2001
Posts: 2,849
Nope, same result. Is it possible that this doesn't like IIS 5 servers?

Joined: Aug 2000
Posts: 13
Junior Member
Junior Member
Offline
Joined: Aug 2000
Posts: 13
The comment is visible because there's a space inserted between the < and the !... which shouldn't happen.
Problem found, stopgap fix:
### File: ubb_lib.cgi

### Find:
$_[0] =~ s/### Change to
#$_[0] =~ s/
But that opens up some problems, hang on while I work on a better fix...

Sponsored Links
Joined: Jun 2001
Posts: 2,849
Spotlight Winner
Spotlight Winner
Offline
Joined: Jun 2001
Posts: 2,849
Cool, I gotta run, have to work early in the morning...

I will check on this in the morning...thanks!

Joined: Aug 2000
Posts: 13
Junior Member
Junior Member
Offline
Joined: Aug 2000
Posts: 13
Fix found. File updated.
Download it again and apply the second part of the ubb_lib modifications.

Joined: Jun 2001
Posts: 2,849
Spotlight Winner
Spotlight Winner
Offline
Joined: Jun 2001
Posts: 2,849
Well, I tried, and tried 3 more times from backups...no go, same as before.

#149182 01/12/2002 10:10 AM
Joined: Jun 2001
Posts: 2,849
Spotlight Winner
Spotlight Winner
Offline
Joined: Jun 2001
Posts: 2,849
The single "c" tag for color doesn't work. I have the advanced UBB code installed and the "color=xxxx" tag works fine.

The two things it's still doing are adding the space in the comment tag and the "c=xxxxxx" not doing anything. The tags don't show up in the post so it is parsing them, but they have no effect.

#149183 01/12/2002 11:17 AM
Joined: Jan 2002
Posts: 2
Junior Member
Junior Member
Offline
Joined: Jan 2002
Posts: 2
the same thing that happened to you, is happenin to me, it shows all that stuff, this sux0rs

Sponsored Links
Joined: Aug 2000
Posts: 13
Junior Member
Junior Member
Offline
Joined: Aug 2000
Posts: 13
I just installed it, it worked... possibly I uploaded the wrong zip. I'll check.

OK, updated. This DOES work, I just did it on a clean install. If you already have it, just modify this in ubblib:

###FIND:
$_[0] =~ s/###REPLACE THE NEXT LINE WITH:
$_[0] =~ s/{< !}{.*?//-->}/
>Except replace all four {} with (), the forum won't let me put them in.
The comments are there so when you edit the post, you get the [c=ff0000-00ff00] tag instead of hundreds of [c=] tags.

None of these will work unless your browser supports CSS (for XHTML compatibility, no font tag).

It should work now, but if it doesn't I'll have a closer look at it...

Joined: Jun 2001
Posts: 2,849
Spotlight Winner
Spotlight Winner
Offline
Joined: Jun 2001
Posts: 2,849
I don't get the comments showing, but I still don't get any color change even using just the "c" tag.

Joined: Aug 2000
Posts: 13
Junior Member
Junior Member
Offline
Joined: Aug 2000
Posts: 13
I see the problem. If you look at the source, it is there, but it's not visible because of your layout setup.
If you go here you'll find one which uses font tags instead of spans. That should work in any circumstance.

Joined: Jun 2001
Posts: 2,849
Spotlight Winner
Spotlight Winner
Offline
Joined: Jun 2001
Posts: 2,849
Perfect!

Joined: Nov 2000
Posts: 915
Developer
Developer
Offline
Joined: Nov 2000
Posts: 915
ahhh! return of the monger code!

#149189 01/12/2002 10:17 PM
Joined: Jan 2002
Posts: 2
Junior Member
Junior Member
Offline
Joined: Jan 2002
Posts: 2
now the hack works, because of that line change, perfectttttt HAHAHAHAHAHAHAHAHAHAHA

[ 01-12-2002 09:18 PM: Message edited by: HackMaster321 ]

[ 01-12-2002 09:18 PM: Message edited by: HackMaster321 ]

Joined: Dec 2000
Posts: 371
Member
Member
Offline
Joined: Dec 2000
Posts: 371
This mod works in 6.2 beta 1 wink

Great!

Joined: Jan 2000
Posts: 5,073
Admin Emeritus
Admin Emeritus
Joined: Jan 2000
Posts: 5,073
Yeah, that looks quite familiar indeed ...


UBB.classic: Love it or hate it, it was mine.

Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
isaac
isaac
California
Posts: 1,157
Joined: July 2001
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20240430)