|
|
Joined: Oct 2001
Posts: 95
Member
|
Member
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?
|
|
|
|
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]
|
|
|
|
Joined: Oct 2001
Posts: 95
Member
|
Member
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
|
|
|
|
Joined: Mar 2001
Posts: 7,394
Admin / Code Breaker
|
Admin / Code Breaker
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 ]
|
|
|
|
Joined: Oct 2001
Posts: 95
Member
|
Member
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?
|
|
|
|
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 ]
|
|
|
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.
|
|
Posts: 449
Joined: February 2008
|
|
Forums63
Topics37,575
Posts293,930
Members13,823
|
Most Online6,139 Sep 21st, 2024
|
|
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
|
|
|
|
|