I am wanting to create a module that will allow you go display a Flash Banner on a page and still be within web standards to get your site standards compliant. I have been using the
Satay Method form A List Apart for several of my non-Mambo sites and decided to incorporate it into a few of my new MAMBO ones. Here is the code:
Code:
<?php
/**
* A FlashBanner module - Satay Method
**/
defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );
// parameters
$moduleclass_sfx = $params->get( 'moduleclass_sfx' );
$bannerurl = $params->get( 'bannerurl');
$name = $params->get( 'name');
$bannerX = $params->get( 'bannerX');
$bannerY = $params->get( 'bannerY');
$bgcolor = $params->get( 'bgcolor');
$banneralturl = $params->get( 'banneralturl');
$altname = $params->get( 'altname');
$banneraltX = $params->get( 'banneraltX');
$banneraltY = $params->get( 'banneraltY');
?>
<html>
<body>
<center>
<object type="application/x-shockwave-flash data="<?php echo $bannerurl; ?>" width="<?php echo $bannerX; ?>" height="<?php echo $bannerY; ?>">
<param name="movie" value="<?php echo $bannerurl; ?>" />
<img src="<?php echo $banneralturl; ?>" width="<?php echo $banneraltX; ?>" height="<?php echo $banneraltY; ?>" alt="<?php echo $altname; ?>" />
</object>
</center>
</body>
</html>
What is happening is that the $bannerurl is not working somehow and all that is being displayed is the alternative content image, the $banneralturl. They variables are set in the module in the admin section. But somehow the url for the flash banner is not being read. Does anyone know why when I enter a url in the module admin section it won't display my flash file for the URL?
c.swf?path=movie.swf