Log in

View Full Version : URL Colour


Corrupter
12-17-2002, 08:28 AM
Please can someone explain or show how to do the following..

I would like to have anything contained within the [URL] tag (or a new tag) to be orange in colour.

So if I use the normal http button to enter a URL the outout is this

my link (http://www.vbulletin.org)

Erwin
12-17-2002, 08:46 AM
Try this:

Open functions.php

Find:


return "<a href=\"$righturl\" target=\"_blank\">".str_replace('\"', '"', $hyperlink)."</a>";


Replace with:


return "<a href=\"$righturl\" target=\"_blank\"><font color=\"orange\">".str_replace('\"', '"', $hyperlink)."</font></a>";


I haven't tested it but it should work.

Corrupter
12-17-2002, 08:50 AM
Jeeezz that was fast impressive..

It works perfectly.. thank you very much.

:D

Erwin
12-17-2002, 08:54 AM
You're welcome. :)

Corrupter
12-17-2002, 09:06 AM
I have one more small question..

When I use the quote button.. i would like a box to appear around the text.. white background #253546 text colour, but for the box to only be as wide as the text is that possible?

If not then just a box (not as wide as text) will do.

Thanks again for your help

Erwin
12-17-2002, 10:10 AM
That's a hack by Firefly - search in his profile. You can also just edit the quote part of the custom vBcode.