Help wanted!!!
Ok I have got the markup happening to insert a Flash Movie into youe post. It is basic at the moment but it works fine.
I need some help with the script to remove the markup tags so that you can edit the url to the flash movie. I have been at this for a couple of days and am just about to throw in the towel.
Any suggestions would be greatly appreciated.
This is the script I used to do the mark up
code:
// ----------------
// Encode Flash
$Body =preg_replace("/\[flash=(\S+?),(\S+?)\](\S+?)\[\/flash\]/is","<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width=\\1 height=\\2><param name=movie value=\\3><param name=play value=true><param name=loop value=true><param name=quality value=high><embed src=\\3 width=\\1 height=\\2 play=true loop=true quality=high></embed></object>",$Body);
Is mark up string incorrect?
How would I get this back to
code:
[flash=200,200] [flash]
Test it out here! cheers