14.3.8. How to display a Flash object in the PHP-Nuke header
To show Flash in the PHP-Nuke header, you simply have to echo the appropriate HTML code. Since the HTML code for a Flash object 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 header code should contain something like
echo "<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>"; |
You can put the above code in the themes/YourTheme/theme.php file, in the themeheader() function, after the call to the banners code:
if ($banners == 1) {
include("banners.php");
}
...put Flash code ("echo") here...
|
The Flash object will be displayed after the banner, if you have one. See Section 20.6 on how to show Flash in a PHP-Nukeblock.
|
PHP-Nuke HOWTO brought to you by Chris Karakas |










