Flash header

DarrenH

Avatar: DarrenH

2009-07-10 13:16

Hi

I have quick CMS and need to change the banner at the top for a flash animation.

I have read this link:

http://opensolution.org/Quick.Cart/docs/?id=tips#how_to_add_flash_animation_in_header_instead_of_banner_with_logo

but I don't understand what you mean by this:

"Replace that line with code generated in program where you have created your animation.
If you placed your file witch “swf” extension in directory templates/img/, you should paste that path to code which you wrote before. File templates/container.tpl is shown using index.php and path should be relative to that file. "

I have created a file, .swf and uploaded to img folder on the server.

How do I incorporate that into my site?

Thnaks

DarrenH

Makaron

Avatar: Makaron

2009-07-10 15:43

You can use google to search for example code like this: http://animation.about.com/od/flashanimationtutorials/qt/embedswfwebpage.htm

DarrenH

Avatar: DarrenH

2009-07-10 17:03

Yes I have inserted that code into the container.tpl and it still doesn't work

Any other suggestions?

DarrenH

cgan

Avatar: cgan

2009-07-10 18:50

What's the problem?

cgan

cgan

Avatar: cgan

2009-07-12 09:25

Have you inserted path to your file like this: <EMBED src="templates/img/Yourfilename.swf"

cgan

DarrenH

Avatar: DarrenH

2009-07-13 11:26

Hi cgan - yes I have inserted the code.

I will try one more thing and then post the code on here to see what is wrong

Thanks

DarrenH

Makaron

Avatar: Makaron

2009-07-13 13:01

Here for example You have site which using Quick.Cms and have flash header: http://92.244.47.3/mycms/index.php
You can use code from source.

DarrenH

Avatar: DarrenH

2009-07-16 19:03

Please could someone help me

I have located in templates directory, container.tpl, and altered the code.

This is the code:

<!-- BEGIN HEAD -->
<?xml version="1.0" encoding="$config[charset]"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="$config[language]">

<head>
<title>$sTitle$config[title]</title>
<meta http-equiv="Content-Type" content="text/html; charset=$config[charset]" />
<meta name="Description" content="$sDescription" />
<meta name="Keywords" content="$sKeywords" />
<meta name="Author" content="OpenSolution.org" />
<meta http-equiv="Content-Style-Type" content="text/css" />
$sRssMeta

<script type="text/javascript" src="$config[dir_core]common.js"></script>
<script type="text/javascript" src="$config[dir_core]plugins.js"></script>
<script type="text/javascript" src="$config[dir_core]prototype.lite.js"></script>
<script type="text/javascript" src="$config[dir_core]moo.fx.js"></script>
<script type="text/javascript" src="$config[dir_core]litebox-1.0.js"></script>
<script type="text/javascript">
<!--
var cfBorderColor = "#999999";
var cfLangNoWord = "$lang[cf_no_word]";
var cfLangMail = "$lang[cf_mail]";
var cfWrongValue = "$lang[cf_wrong_value]";
var cfToSmallValue = "$lang[cf_to_small_value]";
var cfTxtToShort = "$lang[cf_txt_to_short]";
var lbImage = "$lang[Image]";
var lbOf = "$lang[of]";
AddOnload( initLightbox );
//-->
</script>

<style type="text/css">@import "$config[dir_templates]$config[template]";</style>
$sBanner
<!-- END HEAD -->
<!-- BEGIN BODY -->
</head>
<body>
<div class="skiplink"><a href="#content" accesskey="2">$lang['Skip_navigation']</a></div>
<div id="container">
<div id="main">
<div id="head1">
$sMenu1
</div>
<div id="head2">
<div id="logo">
<h1><a href="$config[index]" tabindex="1"><img src="$config[dir_templates]img/flashheader.swf" alt="$config[title]" /></a></h1>
<h2>$config[slogan]</h2>
</div>
<div id="navipath">$sPagesTree</div>
</div>
<div id="head3">
$sMenu2
</div>
<div id="body">
<div id="column2">
<!-- additional column, hidden in styles -->
</div>

<div id="column">
$sSearchForm
$sMenu3
$sMenu4
$sPoll
<div id="banner1">$aBanners[1]</div>
$aBoxes[1]
$aBoxes[2]
$aBoxes[3]
$aBoxes[4]
$sNewsletterForm
</div>
<div id="content">
<div id="banner0">$aBanners[0]</div>
<!-- END BODY -->

<!-- BEGIN BANNER_NORMAL --><div class="banner"><a href="$aData[sBannerLink]"><img src="$config[dir_files]$aData[sFile]" alt="$aData[sLink]" title="$aData[sLink]" style="width:$aData[iWidth]px;height:$aData[iHeight]px;" /></a></div><!-- END BANNER_NORMAL -->

<!-- BEGIN BANNER_NORMAL_NO_LINK --><div class="banner"><img src="$config[dir_files]$aData[sFile]" style="width:$aData[iWidth]px;height:$aData[iHeight]px;" alt="" /></div><!-- END BANNER_NORMAL_NO_LINK -->

<!-- BEGIN BANNER_FLASH --><div class="bannerFlash"><object type="application/x-shockwave-flash" data="$config[dir_files]$aData[sFile]" width="$aData[iWidth]" height="$aData[iHeight]"><param name="bgcolor" value="$aData[sColor]" /><param name="movie" value="$config[dir_files]$aData[sFile]" /></object></div><!-- END BANNER_FLASH -->
<!-- BEGIN BOX --><div class="box" id="box$aData[iBox]">
<div class="name">$aData[sName]</div>
<div class="content">
$aData[sContent]
</div>
</div><!-- END BOX -->
<!-- BEGIN TELL_FRIEND_LINK --><div class="tell"><a href="$sTellFriendUrl">$lang['tell_friend']</a></div><!-- END TELL_FRIEND_LINK -->
<!-- BEGIN NEWSLETTER_FORM -->
<form action="$sNewsletterLink" method="post" id="newsletter">
<fieldset>
<div><label for="newsletterEmail">$lang[Newsletter_info]</label><input type="text" name="sEmail" id="newsletterEmail" value="" class="input" onfocus="this.value=''" onclick="this.value=''" /></div>
<p><input type="submit" value="$lang[email_add]" class="submit" /></p>
</fieldset>
</form>
<script type="text/javascript">
<!--
gEBI( 'newsletterEmail' ).value = "$lang[Newsletter_info]";
//-->
</script>
<!-- END NEWSLETTER_FORM -->
<!-- BEGIN SEARCH_FORM -->
<form method="post" action="$sLinkSearch" id="searchForm">
<fieldset>
<span><label for="$lang[search]">$lang[search]</label><input type="text" size="20" name="sPhrase" id="$lang[search]" value="$sPhrase" class="input" maxlength="100" /></span>
<em><input type="submit" value="$lang[search] &raquo;" class="submit" /></em>
</fieldset>
</form>
<!-- END SEARCH_FORM -->
<!-- BEGIN FOOT -->
<div id="options">$sTellFriendLink<div class="print"><a href="javascript:window.print();">$lang['print']</a></div><div class="back"><a href="javascript:history.back();">&laquo; $lang['back']</a></div></div>
</div>
</div>
<div id="foot">
<div id="copy">$config[foot_info]</div>
<!--
LICENSE REQUIREMENTS - DONT DELETE/HIDE LINK "powered by Quick.Cms" TO www.OpenSolution.org
-->
<div class="foot" id="powered"><a href="http://opensolution.org/">Powered by <strong>Quick.Cms</strong></a></div>
</div>

<div class="clear">&nbsp;</div>
</div>
</div>

</body>
</html>
<!-- END FOOT -->

I have uploaded my .swf file to img directory, and called it flashheader.swf

I still do not see a header:

Please see link:

http://www.dhkbmedia.com/topdec/

Please help me

Thanks

DarrenH

kalanta

No avatar

2009-07-17 17:56

flash code looks like this:

 <object width="790" height="220">
         <
param name="movie" value="header.swf">
         <
embed src="header.swf" width="790" height="220">
         </
embed



you need to modify and insert it into where you need, for example, in <div id="head2">Here goes your code</div>

ar-carsystems

Avatar: ar-carsystems

2010-03-13 15:06

hi,

i tried it butt it doesn't work on my site, i have version 3.x

greets

koen tombeur

Makaron

Avatar: Makaron

2010-03-15 16:44

Maybe You use bad path to file. You should start from main folder fe.: templates/img/header.swf

www.mak-web.pl - QC & QCMS modifications

qqqq

Avatar: qqqq

2010-05-22 14:46

DUNNO - but maybe i didn't read attentivly or something missed - but i found all these ways useless.
And this one also
http://opensolution.org/Quick.Cart/docs/?id=tips#how_to_add_flash_animation_in_header_instead_of_banner_with_logo
or maybe this need just another level of understanding.

Here's is how i just won this war:
content of my file - a1.HTML
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=koi8-r" />
<title>a1</title>
</head>
<body bgcolor="#000000">
<!--url's used in the movie-->
<!--text used in the movie-->
<!-- saved from url=(0013)about:internet -->
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="600" height="120" id="a1" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="a1.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#000000" /><embed src="a1.swf" quality="high" bgcolor="#000000" width="600" height="120" name="a1" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>
</body>

</html>

The row46 of file container.tpl or in other words row that starts from <h1>
should look like this:

<h1><a href="$config[index]" tabindex="1"><embed src="$config[dir_templates]img/a1.swf" quality="high" bgcolor="#000000" width="600" height="120" name="a1" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></h1>




qqqq.fm - WEPLAYMURDER

opensolution.org only.

Back to top
about us | contact