Inactive
- Join Date:
- Oct 2004
- Location:
- Houston, TX
- Posts:
- 792
- Plugin Contributions:
- 0
Views: 146,040
Inactive
Inactive
Please post your comments, and template bugs here. Will release updates as bugs become known.
New Zenner
Hi,
That's a great template you have here.
I want to add a banner over the categories and under to logo/menu. The banner should be page width 750px and want to use the banner manager to be able to see displays and make it easy to add/remove future ones. Any help?
Inactive
Glad the template is working out for you. Here's all you have to do:
Inactive
demo here: Academe
Need to make one change to your stylesheet as well:
#bannerOne{
padding:0;
margin: .5em 0 0 0;
}
New Zenner
Wow, excellent template!!
I do have one question. I am unable to see the side boxes to the right. I just see the welcome message and the test items I have added.
Thanks,
New Zenner
This works great! Thanks
Zen Follower
Quick question, where do we change the EZ page info at.. I have never worked with EZ pages..
Zen Follower
Okay sorry after a 3rd look I found the EZ pages settings.. I changed the display header status to 1, but the footerbar and sidebox are on as well.. Anyhow I am getting this error when I put the template on..
Fatal error: Call to undefined function: zen_get_new_date_range() in /home2/lhhgbh1/public_html/includes/templates/iC_AcademeV1.0/sideboxes/tpl_categories.php on line 74
Inactive
Browng:
Wow, excellent template!!
I do have one question. I am unable to see the side boxes to the right. I just see the welcome message and the test items I have added.
Thanks,
By default, I've disabled the right column inside the template file. If you'd like to allow your Zen Cart installation to control the layout of the columns ... open up : includes/templates/iC_AcademeV1.0/common/tpl_main_page.php
Select all and replace with(this includes the new banner position as well):
<?php
/**
* Atheme Template - tpl_main_page.php
*
* to override the global settings and turn off columns un-comment the lines below for the correct column to turn off<br />
* to turn off the header and/or footer uncomment the lines below<br />
* Note: header can be disabled in the tpl_header.php<br />
* Note: footer can be disabled in the tpl_footer.php<br />
* <br />
* $flag_disable_header = true;<br />
* $flag_disable_left = true;<br />
* $flag_disable_right = true; /*
* $flag_disable_footer = true;<br />
* <br />
* // example to not display right column on main page when Always Show Categories is OFF<br />
* <br />
* if ($current_page_base == 'index' and $cPath == '') {<br />
* $flag_disable_right = true;<br />
* }<br />
* <br />
* example to not display right column on main page when Always Show Categories is ON and set to categories_id 3<br />
* <br />
* if ($current_page_base == 'index' and $cPath == '' or $cPath == '3') {<br />
* $flag_disable_right = true;<br />
* }<br />
*
*
* @package templateSystem
* @copyright Copyright 2007 iChoze Internet Solutions http://ichoze.com
* @copyright Portions Copyright 2003-2006 Zen Cart Development Team
* @copyright Portions Copyright 2003 osCommerce
* @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
* @version $Id: tpl_main_page.php 4886 2006-11-05 09:01:18Z drbyte $
*/
// 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.'"'; ?>>
<?php
/**
* prepares and displays header output
*
*/
require($template->get_template_dir('tpl_header.php',DIR_WS_TEMPLATE, $current_page_base,'common'). '/tpl_header.php');?>
<div id="mainWrapper">
<?php
if (SHOW_BANNERS_GROUP_SET1 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET1)) {
if ($banner->RecordCount() > 0) {
?>
<div id="bannerOne" class="banners"><?php echo zen_display_banner('static', $banner); ?></div>
<?php
}
}
?>
<table width="100%" border="0" cellspacing="0" cellpadding="0" id="contentMainWrapper" summary="content">
<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="navColumnOne" class="columnLeft" style="width: <?php echo COLUMN_WIDTH_LEFT; ?>">
<?php
/**
* prepares and displays left column sideboxes
*
*/
?>
<div id="navColumnOneWrapper" style="width: <?php echo BOX_WIDTH_LEFT; ?>"><?php require(DIR_WS_MODULES . zen_get_module_directory('column_left.php')); ?></div></td>
<?php
}
?>
<td valign="top">
<!-- 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 -->
<?php
if($body_id == 'index' && $cPath == ''){
if (SHOW_BANNERS_GROUP_SET3 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET3)) {
if ($banner->RecordCount() > 0) {
?>
<div id="bannerThree" class="banners"><?php echo zen_display_banner('static', $banner); ?></div>
<?php
}
}}
?>
<!-- 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); ?>
<?php
if (SHOW_BANNERS_GROUP_SET4 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET4)) {
if ($banner->RecordCount() > 0) {
?>
<div id="bannerFour" class="banners"><?php echo zen_display_banner('static', $banner); ?></div>
<?php
}
}
?></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="navColumnTwo" class="columnRight" style="width: <?php echo COLUMN_WIDTH_RIGHT; ?>">
<?php
/**
* prepares and displays right column sideboxes
*
*/
?>
<div id="navColumnTwoWrapper" style="width: <?php echo BOX_WIDTH_RIGHT; ?>"><?php require(DIR_WS_MODULES . zen_get_module_directory('column_right.php')); ?></div></td>
<?php
}
?>
</tr>
</table>
</div>
<?php
/**
* prepares and displays footer output
*
*/
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 -->
</body>
```Or download the attached .zip file upload to includes folder. Your going to also have to do some editing to your sytlesheet. If you can wait a couple of days (could possibly have it done today) we'll have a 3-Column release for this template.
> **lhhgbh:**
>
> Okay sorry after a 3rd look I found the EZ pages settings.. I changed the display header status to 1, but the footerbar and sidebox are on as well.. Anyhow I am getting this error when I put the template on..
>
> Fatal error: Call to undefined function: zen_get_new_date_range() in /home2/lhhgbh1/public_html/includes/templates/iC_AcademeV1.0/sideboxes/tpl_categories.php on line 74
Replied to your email.
Zen Follower
Well i tried to reinstall the template and that didnt solve the issue.. I am actually scared to try and reinstall Zen Cart because I dont want to mess up anything thats working now.. Everything works for me using the future Zen template so I do not believe my Zen Cart is defective. Now I have a few things added that might be interfering with it, but I only add things that are from this site. Not sure what the problem could be.. Guess I will have to wait to see if someone else has this issue and finds a fix. Very nice template though..
Inactive
Well we wouldn't want you to do that now ... :cool:
Try this ... open includes/functions/functions_lookups.php and make sure the following is somewhere in this file. It's the main declaration for this function and is used elsewhere in Zen.
// build date range for new products
function zen_get_new_date_range($time_limit = false) {
if ($time_limit == false) {
$time_limit = SHOW_NEW_PRODUCTS_LIMIT;
}
// 120 days; 24 hours; 60 mins; 60secs
$date_range = time() - ($time_limit * 24 * 60 * 60);
$upcoming_mask_range = time();
$upcoming_mask = date('Ymd', $upcoming_mask_range);
// echo 'Now: '. date('Y-m-d') ."<br />";
// echo $time_limit . ' Days: '. date('Ymd', $date_range) ."<br />";
$zc_new_date = date('Ymd', $date_range);
switch (true) {
case (SHOW_NEW_PRODUCTS_LIMIT == 0):
$new_range = '';
break;
case (SHOW_NEW_PRODUCTS_LIMIT == 1):
$zc_new_date = date('Ym', time()) . '01';
$new_range = ' and p.products_date_added >=' . $zc_new_date;
break;
default:
$new_range = ' and p.products_date_added >=' . $zc_new_date;
}
if (SHOW_NEW_PRODUCTS_UPCOMING_MASKED == 0) {
// do nothing upcoming shows in new
} else {
// do not include upcoming in new
$new_range .= " and (p.products_date_available <=" . $upcoming_mask . " or p.products_date_available IS NULL)";
}
return $new_range;
}
Inactive
You may have just skipped a file during an upgrade :blink:
Zen Follower
That worked great.. Now I have some sizing issues that I will mess with in the CSS page.. Im sure I may have more questions later on, but for now I think I can get through the basics with trial and error.. Appreciate the attention to detail and speedy help..
Inactive
:clap: Glad I could help.
I looked at the sites in your signature ... On FlagPridet try increasing the size of your left column from the administration area, then decrease the size of the three images you have spread across the front-page and the template should work for you.
Inactive
I just noticed something else as well ... your using the image manager module and the images aren't floating correctly. Will find a fix and get back to you on that.
Inactive
Make sure to add the Image Handler CSS file to the Acadame template directory ... that should correct the issue your having.
Inactive
#trailimageid {
position: absolute;
visibility: hidden;
left: 0px;
top: 0px;
width: 220px;
height: 0px;
z-index: 1000;
}
#trailimageid div {
padding: 5px;
background-color: #FFF;
border: 1px solid #888;
text-align: center;
}
#trailimageid h1 {
font-size: 100%;
font-weight: normal;
margin: 0;
padding: 2px 0px;
text-align: left;
width: 100%;
}
#trailimageid img {
margin: 2px;
border: none;
}
Add that to your stylesheet and it'll correct the floating problem.
Zen Follower
off topic here, what buttons do you use?
I changed the sizing in admin and that worked great.. was totally thinking I would have to do it in css. often forget which settings are where..
Zen Follower
Im sorry, forgot one thing.. The maroon bar at the top on your example has category links, is this an option to turn on? Sorry for so many questions..
Tell staff why this post should be reviewed.