This mini-mod actually helps you use any HEX color on your forum code.
Function doColorCode(fstring)
set re = new RegExp
re.pattern = "\[color=("")(\#)([a-f0-9]{6})+("")\]"
re.ignorecase = true
re.global = true
set matches = re.execute(fstring) ' find matches
if matches.count <> 0 then
for each match in matches
changetext = Replace(Replace(match.value,"[color=" &chr(34),"<span style=""color: "),chr(34) & "]",chr(34) & ">")
fstring = Replace(fstring, match.value, changetext)
next
end if
re.pattern = "\[\/color=("")(\#)([a-f0-9]{6})+("")\]"
re.ignorecase = true
re.global = true
set matches = re.execute(fstring) ' find matches
if matches.count <> 0 then
for each match in matches
changetext = Replace(Replace(match.value,"[/color=" & chr(34) ,"</span style=""color: "),chr(34) & "]",chr(34) & ">")
fstring = Replace(fstring, match.value, changetext)
next
end if
doColorCode = fstring
set re = nothing
set matches = nothing
end function
fString = extratags(fString)
fString = doColorCode(fstring)
I would love someone can actually write a "Prompt" mode addition to it, but I guess best way is to make an iframe visible on an icon and let users pick colors :)
You can see a working demo at with using [renk="#FF0000"]test[/renk] (because renk = color in my language :P)