color problem in theme. - 23/09/11 09:05 PM
i using this alias to get a underlined url with a different color then the other text, and now i trying to solve how i can make it keep showing the color of the text that was entered befor the url. if i see a url like this if posted to a channel/query.
CTRL+K4 test www.testing.com test again.
(Red)
I get the default color after the url, i know that i added the $oclr at the end of the alias and it will give me the color i echo non colored text with, but i using this untill i can get help with solving the problem, any "easy" way to solve this problem
$clr return the CTRL+K chr.
$urlco return the color i want to see the urls in. (14)
$oclr return the text color i using.(15) (this part i want to change to any color that was used infront of the url)
I hope you understand what i trying to do here.
;---- edit
Spoted a error from my side, fixed now. but the problem remain..
CTRL+K4 test www.testing.com test again.
(Red)
I get the default color after the url, i know that i added the $oclr at the end of the alias and it will give me the color i echo non colored text with, but i using this untill i can get help with solving the problem, any "easy" way to solve this problem
Code:
usage: $urlc($1-) alias urlc { return $regsubex($1-,/((?:(?:unreal|ftp|https?):\/\/|www\.)\S+)/gi,$+($clr($urlco),$chr(31),\t,$chr(31),$clr,$oclr)) }
$clr return the CTRL+K chr.
$urlco return the color i want to see the urls in. (14)
$oclr return the text color i using.(15) (this part i want to change to any color that was used infront of the url)
I hope you understand what i trying to do here.
;---- edit
Spoted a error from my side, fixed now. but the problem remain..