MyBB Community Forums

Full Version: Mycode Flash
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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
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).
(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 Confused how fix this problem?

thanks.
You need to add a second MyCode:

Regex:
\[flash\](.*)\[/flash\]

Replacement:
<object type="application/x-shockwave-flash" data="$1" width="512" height="384"><param name="movie" value="$1" /><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="wmode" value="transparent" /></object>
Wery thanks.
hi . this code don't work for me . it just shows the code for example :
[flash=200x300]url[/flash]
already i actived html and now i deactivate it again ..
how can i fix it ?
how can i fix it ? please help .. it how only the code not swf file
(2010-03-02, 01:20 PM)querschlaeger Wrote: [ -> ]You need to add a second MyCode:

Regex:
\[flash\](.*)\[/flash\]

Replacement:
<object type="application/x-shockwave-flash" data="$1" width="512" height="384"><param name="movie" value="$1" /><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="wmode" value="transparent" /></object>

Hi, thank you for the code.
I was able to added the code. I test drove a flash song within "Mycode" and it played perfectly however when I insert it to my post, the player showed up but no sound nor tittle of the song. I am not sure what I did wrong, would you kindly help me?

This is the song:
[FLASH]http://static.mp3.zing.vn/skins/mp3_main/flash/player/mp3Player_skin1.swf?xmlurl=http://mp3.zing.vn/blog?MjAxMS8xMS8xMS82LzMvInagaMENjNlYzk5ZGFhZjI3YWI2ZDIzOTlkNTU2NjExN2U1NWQdUngWeBXAzfEvInagaMEhdUngrsg4WeBdUngfIG1p4WeBdUngBWeBiB4YXxRdWFdUngZyBMw6p8fDM[/FLASH]