Zen Cart Logo
Forums / Addon Templates / Acadame - Another Professional Template

Acadame - Another Professional Template

Locked

Views: 146,040

Results 1 to 20 of 672
This thread is locked. New replies are disabled.
8 Jun 2007, 5:45 AM
#1
testuser avatar

testuser

Inactive

Join Date:
Oct 2004
Location:
Houston, TX
Posts:
792
Plugin Contributions:
0

Acadame - Another Professional Template

Just released:

Academe V1.0 - CSS Template

Open for support and comments here.

9 Jun 2007, 3:33 PM
#2
testuser avatar

testuser

Inactive

Join Date:
Oct 2004
Location:
Houston, TX
Posts:
792
Plugin Contributions:
0

Re: Acadame - Another Professional Template

Please post your comments, and template bugs here. Will release updates as bugs become known.

13 Jun 2007, 3:35 AM
#3
supplymydorm avatar

supplymydorm

New Zenner

Join Date:
Apr 2006
Posts:
22
Plugin Contributions:
0

Re: Acadame - Another Professional Template

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?

14 Jun 2007, 6:03 AM
#4
testuser avatar

testuser

Inactive

Join Date:
Oct 2004
Location:
Houston, TX
Posts:
792
Plugin Contributions:
0

Re: Acadame - Another Professional Template

Glad the template is working out for you. Here's all you have to do:

  1. Download attached zip file, extract, upload into Zen Cart directory.
  2. Login to your administration area.
  3. Find Layout Settings under Configuration of the Administration drop-down menu.
  4. On the Layout Settings page find - Banner Display Groups - Header Position 1 and select it.
  5. Now, you can add any group to display here, but make it something relative to what your actually using it for. I use the pixels of the banner as the group name (i.e 750x100). Click Update.
  6. Now from the Administration drop-down menu find Tools :: Banner Manager and select.
  7. Once the page loads, scroll down to the bottom of the page and select new banner.
  8. Select Status, next select whether or not it opens in a new window when clicked, then set Banner on SSL to on.
  9. Now the Banner Title, this is for your reference and also what displays in the "alt" tags of the banner image on the HTML side (what the customer sees). Alt tags are not seen visually unless the banner is scrolled over or the banner image couldn't be found. Image alt tags are necessary for XHTML compliance.
  10. Enter the url that the banner will go to when clicked on, if no link, leave blank.
  11. Now select a previously entered banner group, or create a new one. I use the banner pixels for group names i.e. 750x100 for instance.
  12. Now select the image to be used for this banner.
  13. The rest of the options are optional, and can be set to your liking.Hope this helps. :blink: I've also included a default banner image for you to upload for initial placement, the banner is 750x100.
14 Jun 2007, 6:16 AM
#5
testuser avatar

testuser

Inactive

Join Date:
Oct 2004
Location:
Houston, TX
Posts:
792
Plugin Contributions:
0

Re: Acadame - Another Professional Template

demo here: Academe

Need to make one change to your stylesheet as well:

#bannerOne{
	padding:0;
	margin: .5em 0 0 0;
	}
14 Jun 2007, 7:41 PM
#6
browng avatar

browng

New Zenner

Join Date:
Jun 2007
Posts:
4
Plugin Contributions:
0

Re: Acadame - Another Professional Template

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,

14 Jun 2007, 10:44 PM
#7
supplymydorm avatar

supplymydorm

New Zenner

Join Date:
Apr 2006
Posts:
22
Plugin Contributions:
0

Re: Acadame - Another Professional Template

This works great! Thanks

15 Jun 2007, 3:36 AM
#8
lhhgbh avatar

lhhgbh

Zen Follower

Join Date:
Mar 2006
Posts:
177
Plugin Contributions:
0

Re: Acadame - Another Professional Template

Quick question, where do we change the EZ page info at.. I have never worked with EZ pages..

15 Jun 2007, 5:30 AM
#9
lhhgbh avatar

lhhgbh

Zen Follower

Join Date:
Mar 2006
Posts:
177
Plugin Contributions:
0

Re: Acadame - Another Professional Template

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

15 Jun 2007, 11:21 PM
#10
testuser avatar

testuser

Inactive

Join Date:
Oct 2004
Location:
Houston, TX
Posts:
792
Plugin Contributions:
0

Re: Acadame - Another Professional Template

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.
16 Jun 2007, 12:08 AM
#11
lhhgbh avatar

lhhgbh

Zen Follower

Join Date:
Mar 2006
Posts:
177
Plugin Contributions:
0

Re: Acadame - Another Professional Template

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

16 Jun 2007, 12:17 AM
#12
testuser avatar

testuser

Inactive

Join Date:
Oct 2004
Location:
Houston, TX
Posts:
792
Plugin Contributions:
0

Re: Acadame - Another Professional Template

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;
  }
16 Jun 2007, 12:32 AM
#13
testuser avatar

testuser

Inactive

Join Date:
Oct 2004
Location:
Houston, TX
Posts:
792
Plugin Contributions:
0

Re: Acadame - Another Professional Template

You may have just skipped a file during an upgrade :blink:

16 Jun 2007, 2:33 AM
#14
lhhgbh avatar

lhhgbh

Zen Follower

Join Date:
Mar 2006
Posts:
177
Plugin Contributions:
0

Re: Acadame - Another Professional Template

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

16 Jun 2007, 3:09 AM
#15
testuser avatar

testuser

Inactive

Join Date:
Oct 2004
Location:
Houston, TX
Posts:
792
Plugin Contributions:
0

Re: Acadame - Another Professional Template

: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.

16 Jun 2007, 3:17 AM
#16
testuser avatar

testuser

Inactive

Join Date:
Oct 2004
Location:
Houston, TX
Posts:
792
Plugin Contributions:
0

Re: Acadame - Another Professional Template

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.

16 Jun 2007, 3:20 AM
#17
testuser avatar

testuser

Inactive

Join Date:
Oct 2004
Location:
Houston, TX
Posts:
792
Plugin Contributions:
0

Re: Acadame - Another Professional Template

Make sure to add the Image Handler CSS file to the Acadame template directory ... that should correct the issue your having.

16 Jun 2007, 3:28 AM
#18
testuser avatar

testuser

Inactive

Join Date:
Oct 2004
Location:
Houston, TX
Posts:
792
Plugin Contributions:
0

Re: Acadame - Another Professional Template

#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.

16 Jun 2007, 3:35 AM
#19
lhhgbh avatar

lhhgbh

Zen Follower

Join Date:
Mar 2006
Posts:
177
Plugin Contributions:
0

Re: Acadame - Another Professional Template

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

16 Jun 2007, 3:37 AM
#20
lhhgbh avatar

lhhgbh

Zen Follower

Join Date:
Mar 2006
Posts:
177
Plugin Contributions:
0

Re: Acadame - Another Professional Template

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