Adding a flash banner to the header in the 2.0 rc3 default/core theme

Started by Pinball Nation, July 02, 2010, 04:25:15 PM

Previous topic - Next topic

Pinball Nation

My banner is still back in C Panel.I wont have an url until i download again

Pinball Nation

Hello,This is my banner url 'http://www.pinballpost.host22.com/
    SMF Default Theme - Curve/bannerrose.swf I have also tried  'http://www.pinballpost.host22.com/
    SMF Default Theme - Curve/images/bannerrose.swf'; and 'http://www.pinballpost.host22.com/ Default/images/bannerrose.swf' and a few more things with no luck.The flash file is in the correct image folder/directory.I will also post the code i changed just to be sure it is correct.global $context, $settings, $options, $scripturl, $txt, $modSettings;

$width = 1230;
$height = 80;
$banner_url = 'http://www.pinballpost.host22.com/ Default/images/bannerrose.swf';
echo !empty($settings['forum_width']) ? '
<div id="wrapper" style="width: ' . $settings['forum_width'] . '">' : '', '
<div id="header"><div class="frame">
<div id="top_section">
<h1 class="forumtitle">';
echo '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" width="', $width, '" height="', $height, '" id="flashlogo">';
echo '<param name="movie" value="', $banner_url, '" /><param name="quality" value="high" /><param name="bgcolor" value="#ffffff" />'; echo '<embed src="', $banner_url, '" quality="high" bgcolor="#ffffff" width="', $width, '" height="', $height, '" name="flashbanner" align="" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed></object> </h1>';
I hope this helps.I have tried everything i know and can't get the flash to play.Thanks

mirahalo

try this one ;)


global $context, $settings, $options, $scripturl, $txt, $modSettings;

$width = 1230;
$height = 80;
$banner_url = 'http://www.pinballpost.host22.com/Themes/default/images/bannerrose.swf';
echo !empty($settings['forum_width']) ? '
<div id="wrapper" style="width: ' . $settings['forum_width'] . '">' : '', '
<div id="header"><div class="frame">
<div id="top_section">
<h1 class="forumtitle">';
echo '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" width="', $width, '" height="', $height, '" id="flashlogo">';
echo '<param name="movie" value="', $banner_url, '" /><param name="quality" value="high" /><param name="bgcolor" value="#ffffff" />'; echo '<embed src="', $banner_url, '" quality="high" bgcolor="#ffffff" width="', $width, '" height="', $height, '" name="flashbanner" align="" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed></object> </h1>';

Pinball Nation

Thanks 130860,That fixed the problem.I will mark this solved.

studiowi33

Thanks for keeping this thread. I needed to use a flash logo and the code worked fine in 2.0Gold. (Maybe in tips & tricks?)
SMF 2.0.2

duder673

Just an easy mod but I got it to load the background as transparent:

echo '<param name="movie" value="', $banner_url, '" /><param name="quality" value="high" /><param name="bgcolor" value="#ffffff" />'; echo '<embed src="', $banner_url, '" quality="high" bgcolor="#ffffff" <wmode="transparent" width="', $width, '" height="', $height, '" name="flashbanner" align="" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed></object> </h1>';

Thanks for everyone that contributed to this thread!  (this worked on 2.01 as well)

Advertisement: