Forums / Templates, Stylesheets, Page Layout / How to add text box on bottom of every page?

How to add text box on bottom of every page?

Views: 2,677

Results 1 to 6 of 6
4 Jun 2011, 7:24 PM
#1
lc123 avatar

lc123

New Zenner

Join Date:
Jun 2011
Posts:
3
Plugin Contributions:
0

How to add text box on bottom of every page?

If you look at http://zedel.com/ you can see a box for " Wide Variety of Products" with text in it. It appears on every page. How do i achieve the same thing with zencart http://zedel.com/store/zencart

Just started learning how to use this. I tried to put it in the footer page but then it just goes across the whole footer and not in the body center.

I just want a text box like that on every page.
Thanks :smile:

4 Jun 2011, 8:42 PM
#2
niccol avatar

niccol

Totally Zenned

Join Date:
Apr 2009
Posts:
2,138
Plugin Contributions:
1

Re: How to add text box on bottom of every page?

Check out the banner manager. It allows you to add text as a banner.

Depending on your template it will allow you to display banners in a number of positions. If your template doesn't put one in the right place then moving it should be no problem .

Having had a quick look at your store it looks like that might be needed. You are going to want to post the file includes/templates/your_template/tpl_main_page.php ( just zip it and attach it to a post) so that someone can look at it and tell you how to do that.

The advantage of using the banner manager is that you can easily change the text.

Nick
iszent.com

4 Jun 2011, 9:10 PM
#3
lc123 avatar

lc123

New Zenner

Join Date:
Jun 2011
Posts:
3
Plugin Contributions:
0

Re: How to add text box on bottom of every page?

This is my tpl_main_page.php

Where should i add the banner thing for text then?

// the following IF statement can be duplicated/modified as needed to set additional flags
  if (in_array($current_page_base,explode(",",'list_pages_to_skip_all_right_sideboxes_on_here,separated_by_commas,and_no_spaces')) ) {
    $flag_disable_right = true;
  }

  $header_template = 'tpl_header.php';
  $footer_template = 'tpl_footer.php';
  $left_column_file = 'column_left.php';
  $right_column_file = 'column_right.php';
  $body_id = ($this_is_main_page) ? 'indexHome' : str_replace('_', '', $_GET['main_page']);
?>


<body id="<?php echo $body_id . 'Body'; ?>"<?php if($zv_onload !='') echo ' onload="'.$zv_onload.'"'; ?>>


<!-- ========== IMAGE BORDER TOP ========== -->

<div class="top-tail">
<div class="main-width">

<!-- ====================================== -->


<!-- ========== HEADER ========== -->
<?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');
?>
<!-- ============================ -->


<div id="content">
<table border="0" cellspacing="0" cellpadding="0" width="100%" id="contentMainWrapper">
	<tr>
    
		<?php
			if (COLUMN_LEFT_STATUS == 0 or (CUSTOMERS_APPROVAL == '1' and $_SESSION['customer_id'] == '')) {
			  // global disable of column_left
			  $flag_disable_left = true;
			}
			if (!isset($flag_disable_left) || !$flag_disable_left) {
		?>
		
            <td id="column-left" style="width:<?php echo COLUMN_WIDTH_LEFT; ?>;">
				<div style="width:<?php echo COLUMN_WIDTH_LEFT; ?>;">
					<?php
                     /* ----- prepares and displays left column sideboxes ----- */
                    ?>
                    <?php require(DIR_WS_MODULES . zen_get_module_directory('column_left.php')); ?>
                </div>
            </td>
            
		<?php
			}
        ?>	
		
            <td id="column-center" valign="top">
            	
                <div class="column-center-padding">
                
                    <!--content_center-->
                
                
                        <!-- bof breadcrumb -->
                        <?php if (DEFINE_BREADCRUMB_STATUS == '1' || (DEFINE_BREADCRUMB_STATUS == '2' && !$this_is_home_page) ) { ?>
                            <div id="navBreadCrumb"><?php echo $breadcrumb->trail(BREAD_CRUMBS_SEPARATOR); ?></div>
                        <?php } ?>
                        <!-- eof breadcrumb -->
                    
    
                        <!-- bof upload alerts -->
                        <?php if ($messageStack->size('upload') > 0) echo $messageStack->output('upload'); ?>
                        <!-- eof upload alerts -->
    
                    
						<?php
                     		/* ----- prepares and displays center column ----- */
                     		require($body_code);
						?>
                    
                
                	<div class="clear"></div>
                    
                    <!--eof content_center-->
                
                </div>

            </td>
			
		<?php
        if (COLUMN_RIGHT_STATUS == 0 or (CUSTOMERS_APPROVAL == '1' and $_SESSION['customer_id'] == '')) {
          // global disable of column_right
          $flag_disable_right = true;
        }
        if (!isset($flag_disable_right) || !$flag_disable_right) {
        ?>

            <td id="column_right" style="width:<?php echo COLUMN_WIDTH_RIGHT; ?>">
    
                <div style="width:<?php echo COLUMN_WIDTH_RIGHT; ?>;">
                    <?php
                     /* ----- prepares and displays right column sideboxes ----- */
                    ?>
                    <?php require(DIR_WS_MODULES . zen_get_module_directory('column_right.php')); ?>
                </div>
    
            </td>
			
        <?php
        }
        ?>
        
    </tr>
</table>



</div>



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



<!--bof- parse time display -->
<?php
  if (DISPLAY_PAGE_PARSE_TIME == 'true') {
?>
<div class="smallText center">Parse Time: <?php echo $parse_time; ?> - Number of Queries: <?php echo $db->queryCount(); ?> - Query Time: <?php echo $db->queryTime(); ?></div>
<?php
  }
?>
<!--eof- parse time 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 -->




<!-- ========== IMAGE BORDER BOTTOM ========== -->
		</div>
    </div>

<!-- ========================================= -->

<script type="text/javascript">
		$(function() {
			 //carousel begin 
			 $(".carousel").jCarouselLite({
				  btnNext: ".next",
				  btnPrev: ".prev"
			 });
			 			
		});
	</script>

</body>
4 Jun 2011, 10:01 PM
#4
niccol avatar

niccol

Totally Zenned

Join Date:
Apr 2009
Posts:
2,138
Plugin Contributions:
1

Re: How to add text box on bottom of every page?

OK Well, because it is all in the same file do this. Use Banner 6. So you want to cut all this code :

<!-- 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 -->

and paste it in just underneath where it says...

<!--eof content_center-->

So you have moved this banner to the bottom of the center column.

Now you need to work out how to use banners. Have a read of:

https://www.zen-cart.com/tutorials/index.php?article=80

and in the banner manager you want to use the bit that says somethign like 'html text'

Nick
iszent.com

5 Jun 2011, 10:14 PM
#5
lc123 avatar

lc123

New Zenner

Join Date:
Jun 2011
Posts:
3
Plugin Contributions:
0

Re: How to add text box on bottom of every page?

Ok, I changed it and read that document. Under Layout Settings there are the banner display groups, which one of those would be banner 6? I guess I am having a hard time understanding how I edit banner 6, or what banner 6 even is called in the admin area. Probably a silly question, just new to Zen Cart