dino
05-28-2008, 03:22 PM
You can add similar functionality that exists in rotating headlines to banner manager plugin. That way your banners can make even more impressions and clicks!
To make banners rotate, you'll need to:
create new .tpl file (i.e. rotating_banners_z1.tpl) and put it in the {VIVVO_TEMPLATE}box/ directory. Paste code from banner manager plugin (i.e. <vte:load module="box_banners" search_zone_id="1" /> ) to that file.
edit {VIVVO_TEMPLATE}homepage/default.tpl (or any page you want to have rotating banners) and instead of your regular banner code
<vte:load module="box_banners" search_zone_id="1" />
you should put this code:
<div id="rotatingBanners_z1">
<vte:load module="box_banners" search_zone_id="1" />
</div>
<script type="text/javascript" language="javascript">
<!--
var rotation_z1=new Ajax.PeriodicalUpdater('rotatingBanners_z1', 'index.php?template_output=box/rotating_banners_z1', {frequency:10});
-->
</script>
In <script> tag, value 'index.php?template_output=box/rotating_banners_z1' tells Vivvo which file to return, so if your file name is different than 'rotating_banners_z1.tpl' you should change that value. Note that file name should be given WITHOUT extension. Also, {frequency:10} actually stands for interval (in seconds) between rotations.
In addition, if you have multiple zones, you'll have to repeat those steps for each one. Make sure that you change each 'z1' to corresponding z{zone number}.
To make banners rotate, you'll need to:
create new .tpl file (i.e. rotating_banners_z1.tpl) and put it in the {VIVVO_TEMPLATE}box/ directory. Paste code from banner manager plugin (i.e. <vte:load module="box_banners" search_zone_id="1" /> ) to that file.
edit {VIVVO_TEMPLATE}homepage/default.tpl (or any page you want to have rotating banners) and instead of your regular banner code
<vte:load module="box_banners" search_zone_id="1" />
you should put this code:
<div id="rotatingBanners_z1">
<vte:load module="box_banners" search_zone_id="1" />
</div>
<script type="text/javascript" language="javascript">
<!--
var rotation_z1=new Ajax.PeriodicalUpdater('rotatingBanners_z1', 'index.php?template_output=box/rotating_banners_z1', {frequency:10});
-->
</script>
In <script> tag, value 'index.php?template_output=box/rotating_banners_z1' tells Vivvo which file to return, so if your file name is different than 'rotating_banners_z1.tpl' you should change that value. Note that file name should be given WITHOUT extension. Also, {frequency:10} actually stands for interval (in seconds) between rotations.
In addition, if you have multiple zones, you'll have to repeat those steps for each one. Make sure that you change each 'z1' to corresponding z{zone number}.