Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Problem with Flash Banner html output function


Kristofor

Recommended Posts

hi,

 

there seem to be a problem with this function that i installed with the Flash Banners Contribution

 

 ?function mm_output_flash_movie($name, $movie, $width = '' , $height = '' , $background = '' , $parameters = '') {
? ?
? ?if(tep_not_null($width)) {
?$movie_width = 'width="'.$width.'"';
}
? ?
if(tep_not_null($height)) {
?$movie_height = 'height="'.$height.'"';
}

if(tep_not_null($parameters)) {
? $flash_movie = $movie . '?' . $parameters;
} else {
? $flash_movie = $movie;
}

$flash ?= '<object type="application/x-shockwave-flash" data="'.$movie.'" width="'.$movie_width.'" height="'.$movie_height.'">
$flash .= '<param name="movie" value="'.$flash_movie.'" />' . "\n";

if(tep_not_null($background)) {
? $flash .= '<param name="bgcolor" value="#'.$background.'" />' . "\n";	
} else {
? $flash .= '<param name="wmode" value="transparent">' . "\n";
}

$flash .= '</object>' . "\n";

? ?return $flash;



? ?return $flash;
?}

 

this seems to cause this error,

the error then disappears when i remove the function. Its just for adding flash banner.

Parse error: parse error, unexpected T_STRING in X:\www\righthereit\includes\functions\html_output.php on line 328

Warning: session_start(): Cannot send session cookie - headers already sent by (output started at X:\www\righthereit\includes\functions\html_output.php:328) in X:\www\righthereit\includes\functions\sessions.php on line 67

Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at X:\www\righthereit\includes\functions\html_output.php:328) in X:\www\righthereit\includes\functions\sessions.php on line 67

 

that seems to point to this line

 

	$flash .= '<param name="movie" value="'.$flash_movie.'" />' . "\n";

if anyone can tell me how to fix this it would be great,

 

thanks

Don't die with the music in you!!!

 

Failure is just another boundary to sucess!!! But that doesn't mean your getting somewhere...

Link to comment
Share on other sites

hi kristofor, i too am using the contributiuon, it works wonderfully for images, but flash banner link doesn't klick through ... i did manage to fix that error ...

 

change

$flash  = '<object type="application/x-shockwave-flash" data="'.$movie.'" width="'.$movie_width.'" height="'.$movie_height.'">
$flash .= '<param name="movie" value="'.$flash_movie.'" />' . "\n";

 

to this ...

 

$flash  = '<object type="application/x-shockwave-flash" data="'.$movie.'" '.$movie_width.' '.$movie_height.'>';
$flash .= '<param name="movie" value="'.$flash_movie.'" />' . "\n";

 

once i manage to fix the url thing, i'll update this post ...

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...