MyBB Community Forums

Full Version: code clock
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
helo friends.

how can i make this code.

<embed src="http://www.clocklink.com/clocks/5012-black.swf?TimeZone=Indonesia_Jakarta&"  width="151" height="50" wmode="transparent" type="application/x-shockwave-flash">

I would like to:

<embed src="http://www.clocklink.com/clocks/5012-$1.swf?TimeZone=$2&"  width="151" height="50" wmode="transparent" type="application/x-shockwave-flash">
\[clock=(.*?)\](.*?)\[/clock\]
<embed src=" http://www.clocklink.com/clocks/5012-$1.swf?TimeZone=$2&"  width="151" height="50" wmode="transparent" type="application/x-shockwave-flash">
code as it is dangerous. I made this code and this might be safer.

\[clock\=([a-z]+)\]([a-z0-9_\- ,.+]+)\[/clock\]

if anyone wants to improve the parser code please. :

thaks for reply.