MDN

Go Back   Mambo - Forums Closed for posting > Mambo 3rd Party Addons > Modules

Reply
 
Thread Tools Search this Thread Display Modes
Old September 15th, 2005, 09:23   #1
sescoyote
 
Join Date: Feb 2005
Posts: 18
sescoyote is on a distinguished road
Default Flash Banners - Satay method module

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
sescoyote is offline   Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
New!! Flash Main Menu replacement module JoshM Open Source Products for Mambo 4 October 16th, 2005 09:08
Flash Horizontal Navigation Buttons Module JoshM Modules 26 June 8th, 2005 15:41
Module voor buttons ipv banners ? RedSoxCoder Modules 3 May 10th, 2005 10:51
New!! Flash Main Menu replacement module JoshM Modules 11 March 2nd, 2004 23:44
UPDATED - Mambo Flash Horizontal Navigation Buttons Module JoshM Open Source Products for Mambo 3 December 18th, 2003 14:56


All times are GMT -7. The time now is 09:44.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.