Previous Thread
Next Thread
Print Thread
Rate Thread
#172668 01/03/2002 8:50 PM
Joined: Oct 2001
Posts: 95
Member
Member
Offline
Joined: Oct 2001
Posts: 95
Hello, I'm trying to modify the ubb code buttons so they wil underline all urls.

So I dived in the ubb_lib.cgi and modified those pieces.
So far it works, al urls are underlined and show up normally.

But...

When someone qoutes the user that posted an url the tags show up in the qoute.
How do I fix this?

Sponsored Links
#172669 01/03/2002 9:40 PM
Joined: Sep 2000
Posts: 4,211
Master Hacker
Master Hacker
Joined: Sep 2000
Posts: 4,211
Why modify the UBB code to make links underlined when you can use CSS? It'd be much better to use CSS in favor, and easier on you, too. Something like this, perhaps:
[code][/code]

#172670 01/04/2002 9:26 AM
Joined: Oct 2001
Posts: 95
Member
Member
Offline
Joined: Oct 2001
Posts: 95
and what do should I do with that piece of code?

Perhaps you can explain a little more about the use of CSS

#172671 01/04/2002 11:47 AM
Joined: Mar 2001
Posts: 7,394
LK Offline
Admin / Code Breaker
Admin / Code Breaker
Offline
Joined: Mar 2001
Posts: 7,394
Style Templates - (template name) - Header Insert. Put it between tags.

But the UBB removes it on purpose, so find there:

A:visited {text-decoration: none;}

A:hover {text-decoration: underline;}

A:link {text-decoration: none;}

A:active {text-decoration: none;}

Replace with:

A {text-decoration: underline;}

[ 01-04-2002 10:48 AM: Message edited by: LK ]

#172672 01/04/2002 5:06 PM
Joined: Oct 2001
Posts: 95
Member
Member
Offline
Joined: Oct 2001
Posts: 95
what your suggesting is to have all the links on the ubb underlined.

But I only want the urls posted inside the topics to be underlined.
I've already done that this way
[code][/code]

But ubb doesn't filter the tags out when a link is qouted.
How should I do that?

Sponsored Links
#172673 01/04/2002 6:18 PM
Joined: Sep 2000
Posts: 4,211
Master Hacker
Master Hacker
Joined: Sep 2000
Posts: 4,211
[code][/code]

Simple, no?

[ 01-04-2002 05:19 PM: Message edited by: Matt Jacob ]


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
JAISP
JAISP
PA
Posts: 449
Joined: February 2008
Forum Statistics
Forums63
Topics37,575
Posts293,930
Members13,823
Most Online6,139
Sep 21st, 2024
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-2025 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.1
(Snapshot build 20240918)