Looking for a simple script - Printable Version -Shoutbox (https://shoutbox.menthix.net) +-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58) +--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4) +---- Forum: Scripting (/forumdisplay.php?fid=39) +----- Thread: Looking for a simple script (/showthread.php?tid=90530) Looking for a simple script by yergsbah on 05-06-2009 at 10:54 PM
I want a script that changes a line in a message to a certain color when I put a symbol at the start and everything within quotes to a different color. RE: Looking for a simple script by Spunky on 05-07-2009 at 06:14 AM
Colour will only work with MP!L btw... Can't test these as I've just got to work... js code: The highlighted line probably has a bug if someone would like to correct it EDIT: Ok, I'm a bit rusty it seems Time to get working on top secret scripts every second I can get away from family RE: Looking for a simple script by NanaFreak on 05-07-2009 at 06:30 AM
the regex needs to be changed to this: js code:it was just placing it around the whole message so the highlighted line would be: js code: well atleast i think it should work... i did it in PHP =p RE: Looking for a simple script by yergsbah on 05-07-2009 at 09:13 AM Thanks RE: Looking for a simple script by Spunky on 05-07-2009 at 09:38 AM
quote: Just for my benefit now... how do the square brackets help? I thought they were just for character sets RE: Looking for a simple script by NanaFreak on 05-07-2009 at 09:42 AM
quote:it makes it go around a set of quotes... where yours would do it around the whole string if there were quotes in it... i dunno how the [] make it work but in php they work... RE: Looking for a simple script by Spunky on 05-07-2009 at 10:09 AM
quote: but it can only replace the quotes and it's contents as thats all that is being matched right? From what I can see they should be near identical |