How to display Flash in PHP-Nuke blocks

20.6. How to display Flash in PHP-Nuke blocks

To show Flash in a PHP-Nuke block, you simply have to include the appropriate HTML code in the $content variable. Since the HTML code is something like

<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\"
codebase=\"http://download.macromedia.com/pub/shockwave/cabs/
flash/swflash.cab#version=6,0,29,0\" width=\"350\" height=\"100\">
<param name=\"movie\" value=\"yourMovie.swf\">
<param name=quality value=high>
<embed src=\"yourMovie.swf\" quality=high 
pluginspage=\"http://www.macromedia.com/shockwave/
download/index.cgi?P1_Prod_Version=ShockwaveFlash\" 
type=\"application/x-shockwave-flash\" 
width=\"350\" height=\"100\"></embed>
</object>

the PHP-Nuke block code should be something like

$content = "<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\"
codebase=\"http://download.macromedia.com/pub/shockwave/cabs/
flash/swflash.cab#version=6,0,29,0\" width=\"350\" height=\"100\"> "
."<param name=\"movie\" value=\"yourMovie.swf\"> "
."<param name=quality value=high> "
."<embed src=\"yourMovie.swf\" quality=high 
pluginspage=\"http://www.macromedia.com/shockwave/
download/index.cgi?P1_Prod_Version=ShockwaveFlash\" 
type=\"application/x-shockwave-flash\" 
width=\"350\" height=\"100\"></embed>"
."</object>";

See Section 14.3.8 on how to display Flash in the PHP-Nuke header, like a banner.


Help us make a better PHP-Nuke HOWTO!

Want to contribute to this HOWTO? Have a suggestion or a solution to a problem that was not treated here? Post your comments on my PHP-Nuke Forum!

Chris Karakas, Maintainer PHP-Nuke HOWTO

 

Site Info v2.2.2

Last SeenLast Seen
Server TrafficServer Traffic
  • Total: 344,100,007
  • Today: 37,060
Server InfoServer Info
  • Dec 15, 2017
  • 03:39 pm PST
 
 

Daily Inspiration