Posts: 26
Threads: 13
Joined: Aug 2008
Reputation:
0
2009-07-14, 10:23 PM
(This post was last modified: 2009-10-21, 08:07 PM by ¤ Magic ¤.)
Hi all
Title: Flazsh
Description MyCode : flash mycode
Expression régulière : \[flash=(.*?)x(.*?)\](.*?)\[/flash\]
Remplacement :<embed width="$1" height="$2" src="$3" quality="high" wmode="transparent" type="application/x-shockwave-flash"></embed>
Activer ce MyCode ? : yes
Exemple : [flash=200x300]http://url.swf[/flash]
Demo mycode flash
Sorry for my thread english but i'm french ;p
Posts: 564
Threads: 88
Joined: Aug 2006
Reputation:
2
(2009-07-16, 10:52 AM)querschlaeger Wrote: Hi,
nice MyCode but embed is not allowed within XHTML and will cause in an invalid HTML Code.
Regex:
\[flash=([0-9]{1,3})x([0-9]{1,3})\](.*)\[/flash\]
Replacement:
<object type="application/x-shockwave-flash" data="$3" width="$1" height="$2"><param name="movie" value="$3" /><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="wmode" value="transparent" /></object>
This will produce a valid XHTML syntax, works on all browsers and users can't destry page layout by using a huge dimension (max dimension is 999x999).
Hi querschlaeger, ı use your flsah code,[flash=200x300]flash url[/flash] showing no problem,
but [flash]flash url[/flash] not showing
how fix this problem?
thanks.
_______________________________________________
It is not disgraceful to ask, it is disgraceful no to ask.
sory for my english .
Posts: 564
Threads: 88
Joined: Aug 2006
Reputation:
2
_______________________________________________
It is not disgraceful to ask, it is disgraceful no to ask.
sory for my english .