Log in

View Full Version : underlining the [url] tag


Dyntheos
09-18-2004, 03:08 AM
I wish to be able to have links using the [ url ] tag underlined in the postbit.

However for the "alt1" css feilds in the admincp I have links with "none" as the formatting. This is because I don't want to see lines under every forum link on the forum home.

Basically I only want links underlined in the postbit. Is there a way to modify the [ url ] tag to include an underline? The admin cp only shows custom BBcodes that can be modified not the default ones.

zetetic
09-22-2004, 07:40 PM
I wish to be able to have links using the [ url ] tag underlined in the postbit.

However for the "alt1" css feilds in the admincp I have links with "none" as the formatting. This is because I don't want to see lines under every forum link on the forum home.

Basically I only want links underlined in the postbit. Is there a way to modify the [ url ] tag to include an underline? The admin cp only shows custom BBcodes that can be modified not the default ones.
Thanks for the hint, Dyntheos. I wanted to do the same thing but didn't think of modifying the default URL behavior. There may be an easier way, but this worked for me:

open /includes/functions_bbcodeparse.php

Find:


// standard URL hyperlink
return "<a href=\"$rightlink\" target=\"_blank\">$text</a>";

Replace with:

// standard URL hyperlink
return "<a href=\"$rightlink\" target=\"_blank\"><span style=\"text-decoration:underline\">$text</span></a>";