O.P. RE: Replace Colour Codes
Yeah, I just needed [c=?] replaced with ·$? and I changed all the [/c] tags to ·$1. It is very unlikely people would want to use gradients in this script, however the hex values are something I may have to factor in. The only problem I have had with this is that if the string (for example) is: "[c=2]5 Days til...[/c]" it gets replaced by "·$25 Days til...·$1" giving the wrong colour and also removing part of the string... I added a space after the replacement value and this fixes the problem, but adds spaces that make the PSM look slightly wierd. I'm adding an option to turn this function on and off so that there is always an alternative method.
Also, someone said there were a particular amount of colours (I think they said 62), I counted 54... The only reason I used a loop before was because I wasn't using RegExp so i was looping through replacing "[c="+i+"]" with "·$"+i
This post was edited on 09-08-2006 at 05:16 PM by Spunky.
<Eljay> "Problems encountered: shit blew up"
|