I can see the banner rotator in my admin
I added banners to banner manager, but the banners don't show up in the index
Modifications I ve made manually (I have modified files)
Filesnames - check
added define( 'FILENAME_BANNER_ROTATOR', 'banner_rotator.php' );
index - check
addes: (between the head tags)
<?php // Start Banner Rotator; ?>
<script type="text/javascript" src="includes/functions/jquery-1.4.2.min.js"></script>
<script type="text/javascript" src="includes/functions/bannerRotator.js"></script>
<script type="text/javascript">
$(document).ready(function(){
bannerRotator('#bannerRotator', 500, 4000);
});
</script>
<?php // End Banner Rotator; ?>
--------------- and INSERT Before <?php include(DIR_WS_MODULES . FILENAME_NEW_PRODUCTS); ?>----------------
<?php include( DIR_WS_MODULES . FILENAME_BANNER_ROTATOR ); ?>
I had problems with the Sql injection tough so I renamed the numbers
Quote
(168, 'Banner Order', 'BANNER_ORDER', 'banners_id', 'Order that the Banner Rotator uses to show the banners.', 1661, 10, NULL, '2010-06-25 17:25:11', NULL, 'tep_cfg_select_option(array(''banners_id'', ''rand()''), '),
(169, 'Banner Rotator Group', 'BANNER_ROTATOR_GROUP', 'rotator', 'Name of the banner group that the Banner Rotator uses to show the banners.', 1661, 5, NULL, '2010-06-25 17:25:11', NULL, ''),
(170, 'Banner Rotator Max Banners', 'MAX_DISPLAY_BANNER_ROTATOR', '4', 'Maximum number of banners that the Banner Rotator will show', 1661, 15, '2010-06-27 01:38:54', '2010-06-25 17:25:11', NULL, '');
to
Quote
(268, 'Banner Order', 'BANNER_ORDER', 'banners_id', 'Order that the Banner Rotator uses to show the banners.', 1661, 10, NULL, '2010-06-25 17:25:11', NULL, 'tep_cfg_select_option(array(''banners_id'', ''rand()''), '),
(269, 'Banner Rotator Group', 'BANNER_ROTATOR_GROUP', 'rotator', 'Name of the banner group that the Banner Rotator uses to show the banners.', 1661, 5, NULL, '2010-06-25 17:25:11', NULL, ''),
(270, 'Banner Rotator Max Banners', 'MAX_DISPLAY_BANNER_ROTATOR', '4', 'Maximum number of banners that the Banner Rotator will show', 1661, 15, '2010-06-27 01:38:54', '2010-06-25 17:25:11', NULL, '');
also added to stylesheet.css
Quote
/* Start Banner Rotator */
#bannerRotator {
width: 468px; /* Banner width */
height: 50px; /* Banner height */
overflow: hidden;
position: relative;
}
#bannerRotator ul {
list-style: none;
padding: 0;
position: relative;
}
#bannerRotator ul li {
display: none;
width: 728px; /* Banner width */
height: 90px; /* Banner height */
position: absolute;
top: 0px;
left: 0px;
}
#bannerNav {
position: absolute;
right: 15px; /* Distance from the right side of the controls box to the right edge of the banner */
bottom: 15px; /* Distance from the bottom of the controls box to the bottom of the banner */
background: url(images/icons/transBlack75.png) repeat 0 0; /* Controls box background image */
padding: 5px 5px 5px 10px;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
}
#bannerNav a {
margin: 3px 10px 0 0 ;
height: 10px;
width: 10px;
display: block;
background: url(images/icons/dotDark.png) no-repeat 0 0; /* Controls Button image (Inactive) */
float: left;
}
#bannerNav a.active {
background-image: url(images/icons/dotLight.png); /* Controls Button image (Active) */
}
#bannerNav span.pause, #bannerNav span.play {
cursor: pointer;
height: 15px;
width: 15px;
display: block;
background: url(images/icons/pause.png) no-repeat 0 0; /* Controls Pause icon */
float: left;
}
#bannerNav span.play {
background-image: url(images/icons/play.png); /* Controls Play icon */
}
.divider-tall {
clear: both;
height: 13px;
}
/* End Banner Rotator */
Edited by zediks, 01 July 2010 - 02:40 PM.