Page 1 of 2 12 LastLast
Results 1 to 10 of 173

Hybrid View

  1. #1
    Join Date
    Dec 2005
    Posts
    37
    Plugin Contributions
    0

    Default Re: Today Atheme ... Tomorrow - Clean & Professional

    I am using latest version of zen cart (1.3.7). I am using theme version 1.1.

    I am not sure what I am doing wrong. The code testuser was giving me was reversing everything. The code(s) you have given me don't result in any changes...

  2. #2
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: Today Atheme ... Tomorrow - Clean & Professional

    Quote Originally Posted by tgotch View Post
    I am using latest version of zen cart (1.3.7). I am using theme version 1.1.

    I am not sure what I am doing wrong. The code testuser was giving me was reversing everything. The code(s) you have given me don't result in any changes...
    Can you post your full tpl_main_page.php file so that I can see the change in context?
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  3. #3
    Join Date
    Dec 2005
    Posts
    37
    Plugin Contributions
    0

    Default Re: Today Atheme ... Tomorrow - Clean & Professional

    Code:
    <?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 = !$this_is_home_page;
     * $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(",",'contact_us,conditions')) ) {
         $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
      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
        }
      }
    ?>
    
    
    <?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">
    <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 (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>
    
    <?php
     /**
      * prepares and displays footer output
      *
      */
      require($template->get_template_dir('tpl_footer.php',DIR_WS_TEMPLATE, $current_page_base,'common'). '/tpl_footer.php');?>
    </div>
    <!--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>

  4. #4
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: Today Atheme ... Tomorrow - Clean & Professional

    It's not having any effect because you've placed it in the middle of a comment block.

    I suggest moving it (without the asterisk) to the gap above the line that reads
    $header_template = 'tpl_header.php';
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  5. #5
    Join Date
    Dec 2005
    Posts
    37
    Plugin Contributions
    0

    Default Re: Today Atheme ... Tomorrow - Clean & Professional

    That worked, thanks. I was trying to uncomment the line where it was...

  6. #6
    Join Date
    Oct 2004
    Location
    Houston, TX
    Posts
    782
    Plugin Contributions
    4

    Default Re: Today Atheme ... Tomorrow - Clean & Professional

    Quote Originally Posted by kuroi View Post
    Slight typo on my part, missed out the exclamation mark, should have readbut this doesn't explain why you got no result, it should just been backwards. Are you using an old version of Zen Cart?
    Thanks kuroi ... didn't know about the this_home page thingy

  7. #7
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: Today Atheme ... Tomorrow - Clean & Professional

    Quote Originally Posted by testuser View Post
    didn't know about the this_home page thingy
    It's fairly new, but very useful!
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  8. #8
    Join Date
    Oct 2004
    Location
    Houston, TX
    Posts
    782
    Plugin Contributions
    4

    Default Re: Today Atheme ... Tomorrow - Clean & Professional

    Great potential that's for sure!

  9. #9
    Join Date
    Sep 2006
    Posts
    126
    Plugin Contributions
    0

    Default Re: Today Atheme ... Tomorrow - Clean & Professional

    Hi
    I installed the template everything is working fine except that there is line coming 0HEADER_TITLE_CCONTENTS I checked everyhting but cant figure out problem
    any suggestion please

    thanx
    read the faq and tutorials and they will help u solve little problems
    www.goshoppinglive.com

  10. #10
    Join Date
    Oct 2004
    Location
    Houston, TX
    Posts
    782
    Plugin Contributions
    4

    Default Re: Today Atheme ... Tomorrow - Clean & Professional

    Quote Originally Posted by rajeev83 View Post
    Hi
    I installed the template everything is working fine except that there is line coming 0HEADER_TITLE_CCONTENTS I checked everyhting but cant figure out problem
    any suggestion please

    thanx
    Change the header.php file languages folder.

    define('HEADER_TITLE_CONTENTS', ' item(s) in cart');

    Should be :

    define('HEADER_TITLE_CCONTENTS', ' item(s) in cart');

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Facebook upgrade today & like icon not working on google chrome
    By maynuk in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 11 Feb 2011, 02:42 PM
  2. Site & Admin Being Super Slow Today
    By DPM in forum General Questions
    Replies: 2
    Last Post: 24 Apr 2008, 12:24 PM
  3. Clean Business Template & Firefox Problem
    By adnimas5 in forum Templates, Stylesheets, Page Layout
    Replies: 10
    Last Post: 22 Jan 2008, 05:28 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg