RSS

Banner Manager Zen Cart

12 Sep, 2010

Zen Cart

Administrare banner de reclama, publicitate.

Site-ul administrat este instalat pe platforma ( magazin online ) Zen Cart.

Jscript Download for your slider

Please backup

STEP1:
In your sql:

#	Banners
#
UPDATE configuration SET configuration_value = 'banner-1' WHERE configuration_key = 'SHOW_BANNERS_GROUP_SET1';
UPDATE configuration SET configuration_value = 'banner-2' WHERE configuration_key = 'SHOW_BANNERS_GROUP_SET2';
UPDATE configuration SET configuration_value = 'banner-3' WHERE configuration_key = 'SHOW_BANNERS_GROUP_SET3';
UPDATE configuration SET configuration_value = 'banner-4' WHERE configuration_key = 'SHOW_BANNERS_GROUP_SET4';
UPDATE configuration SET configuration_value = 'banner-5' WHERE configuration_key = 'SHOW_BANNERS_GROUP_SET5';
UPDATE configuration SET configuration_value = 'banner-6' WHERE configuration_key = 'SHOW_BANNERS_GROUP_SET6';

STEP 2:
In your tpl_main_page.php
After this:

<?php
 /* prepares and displays header output */
  if (CUSTOMERS_APPROVAL_AUTHORIZATION == 1 && CUSTOMERS_AUTHORIZATION_HEADER_OFF == 'true' and ($_SESSION['customers_authorization'] != 0 or $_SESSION['customer_id'] == '')) {
    $flag_disable_header = true;
  }
  require($template->get_template_dir('tpl_header.php',DIR_WS_TEMPLATE, $current_page_base,'common'). '/tpl_header.php');
?>
 

You insert this:

<div class="banners">

<?php
	if($this_is_home_page){
?>

<div class="slider">
		<div id="mygalone" class="svw">
			<ul>
				<li >
					<!-- BOF- BANNER #1 display -->
					<?php
					  if (SHOW_BANNERS_GROUP_SET1 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET1)) {
						if ($banner->RecordCount() > 0) {
					?>
					
						<?php echo zen_display_banner('static', $banner); ?>
					<?php
						}
					  }
					?>
					<!-- EOF- BANNER #1 display -->
				</li>
				<li id="bannerTwo">
					<!-- BOF- BANNER #2 display -->
					<?php
						if (SHOW_BANNERS_GROUP_SET2 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET2)) {
							if ($banner->RecordCount() > 0) {
					?>
								<?php echo zen_display_banner('static', $banner);?>
					<?php 
							}
						}
					?>
					<!-- EOF- BANNER #2 display -->
				</li>
				<li id="bannerThree">
					<!-- BOF- BANNER #3 display -->
					<?php
						if (SHOW_BANNERS_GROUP_SET3 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET3)) {
							if ($banner->RecordCount() > 0) {
					?>
								<?php echo zen_display_banner('static', $banner);?>
					<?php 
							}
						}
					?>
					<!-- EOF- BANNER #3 display -->
				</li>
			</ul>
		</div>
	</div>
	<?php
		}
	?>
	<div class="banners2">
	<!-- BOF- BANNER #4 display -->
	<?php
		if (SHOW_BANNERS_GROUP_SET4 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET4)) {
			if ($banner->RecordCount() > 0) {
	?>
				<div id="bannerFour"><?php echo zen_display_banner('static', $banner);?></div>
	<?php 
			}
		}
	?>
	<!-- EOF- BANNER #4 display -->
	<!-- BOF- BANNER #5 display -->
	<?php
		if (SHOW_BANNERS_GROUP_SET5 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET5)) {
			if ($banner->RecordCount() > 0) {
	?>
				<div id="bannerFive"><?php echo zen_display_banner('static', $banner);?></div>
	<?php 
			}
		}
	?>
	<!-- EOF- BANNER #5 display -->
	<!-- BOF- BANNER #6 display -->
	<?php
		if (SHOW_BANNERS_GROUP_SET6 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET6)) {
			if ($banner->RecordCount() > 0) {
	?>
				<div id="bannerSix" class="banners"><?php echo zen_display_banner('static', $banner); ?></div>
	<?php
			}
		}
	?>
	<!-- EOF- BANNER #6 display -->
	</div>
</div>

STEP3:

In your css

#bannerFour{ float:left;}
#bannerFive{ float:left; padding-left:2px;}
#bannerSix{ float:left; padding-left:2px; margin-right:-2px;}
/* ============================= slider ======================= */

.banners{ width:100%; overflow:hidden; padding-bottom:2px;}
.slider{ position:relative; padding-bottom:3px;}
.stripViewer {
	margin:0;
	overflow:hidden;
	position:relative;
}
#mygalone{overflow:hidden;}
#mygalone ul{position:relative; padding:0; margin:0; height:347px; overflow:hidden;}
#mygalone ul li{float:left; position:relative; width:955px; height:347px;}
.stripTransmitter{position:absolute; margin:317px 0 0 0px; top:0; left:0; overflow:hidden;}
.stripTransmitter ul{ padding:0 0 0 858px; margin:0;}
.stripTransmitter li{margin-right:3px; float:left;}
.stripTransmitter ul li a { width:14px; height:14px; display:block; text-decoration:none; background:url(../images/slider-button.png) no-repeat 0 0;}
.stripTransmitter ul li a:hover, .stripTransmitter ul li a.current{ background:url(../images/slider-button-act.png) no-repeat 0 0; }

Internet Marketing, Cronicar si pasionat de SEO Web Design

Facebook Twitter Google+ YouTube 

VN:F [1.9.22_1171]
Rating: 4.5/5 (4 votes cast)
Banner Manager Zen Cart, 4.5 out of 5 based on 4 ratings

Tags: , ,

Comenteaza

SeoWeb Seco
Google+