Loaded Commerce Community

Banner


Board index » Loaded Commerce Support » Install & Config

All times are UTC - 5 hours




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Help with template issue.
PostPosted: Tue Dec 13, 2011 10:10 pm 
Offline
CRE Freak
User avatar

Joined: Mon Oct 15, 2007 4:56 pm
Posts: 49
I have a template that I have been using since 6.4. I installed a fresh 6.5 and I am trying to build out my template and port it over from scratch. My template was a legacy template originally and I am trying to simply start with a blank template folder and then bring over my files one by one (including many contributions), test to ensure they work.

I have created a template php file in the template root, essentially copied from the Original_ATS tempalte and modified for my purpose.

Code:
<?php
/*
  $Id: template.php,v 1.2 2008/06/23 00:18:17 datazen Exp $

  CRE Loaded, Open Source E-Commerce Solutions
  http://www.creloaded.com

  Copyright (c) 2008 CRE Loaded
  Copyright (c) 2008 AlogoZone, Inc.
  Copyright (c) 2003 osCommerce

  Released under the GNU General Public License
*/
  define('TEMPLATE_NAME_REF', 'HorizonsGreen');
  define('TEMPLATE_VERSION', '1.1');
  define('TEMPLATE_SYSTEM', 'ATS');
  define('TEMPLATE_AUTHOR', 'BSK');
 
  define('TEMPLATE_STYLE', DIR_WS_TEMPLATES . TEMPLATE_NAME . "/stylesheet.css");
 
  //used to get boxes from default
  define('DIR_FS_TEMPLATE_BOXES', DIR_FS_TEMPLATES . TEMPLATE_NAME . '/boxes/');
  define('DIR_FS_TEMPLATE_MAINPAGES', DIR_FS_TEMPLATES . TEMPLATE_NAME . '/mainpage_modules/');
  define('DIR_WS_TEMPLATE_IMAGES', DIR_WS_TEMPLATES . TEMPLATE_NAME . '/images/');
   
  //which files to use
  define('TEMPLATE_BOX_TPL', DIR_WS_TEMPLATES . TEMPLATE_NAME . '/boxes.tpl.php');
  define('TEMPLATE_HTML_OUT', DIR_WS_TEMPLATES . TEMPLATE_NAME . '/extra_html_output.php' );
  //variables moved from box.tpl.php
  define('TEMPLATE_TABLE_BORDER', '0');
  define('TEMPLATE_TABLE_WIDTH', '100%'); //table class width, it is always good to have 100%
  define('TEMPLATE_TABLE_CELLSPACING', '0');
  define('TEMPLATE_TABLE_CELLPADDIING', '0');
  define('TEMPLATE_TABLE_PARAMETERS', '');
  define('TEMPLATE_TABLE_ROW_PARAMETERS', '');
  define('TEMPLATE_TABLE_DATA_PARAMETERS', '');
  define('TEMPLATE_TABLE_CONTENT_CELLPADING', '6');
  define('TEMPLATE_TABLE_CENTER_CONTENT_CELLPADING', '4');
 
  //for sidebox footer display these images
  define('TEMPLATE_INCLUDE_FOOTER', 'true');//false = disable footer on all infoboses, this is used in infoboxes, not in boxes.tpl.php
  define('TEMPLATE_BOX_IMAGE_FOOTER_LEFT', 'true');
  define('TEMPLATE_BOX_IMAGE_FOOTER_RIGHT', 'true');
 
  //for side header display on/off
  define('TEMPLATE_INFOBOX_TOP_LEFT', 'true'); 
  define('TEMPLATE_INFOBOX_TOP_RIGHT', 'true');
 
  //infobox and content box side bars,
  //need soem workaround to show different borders
  define('TEMPLATE_INFOBOX_BORDER_LEFT', 'true');//show left side border for infobox
  define('TEMPLATE_INFOBOX_BORDER_RIGHT', 'true');//show right side brder for infobox
  define('TEMPLATE_INFOBOX_BORDER_IMAGE_LEFT', '');   //left side image, if this is blank and TEMPLATE_INFOBOX_BORDER_LEFT is set to true, it will use BoxBorderLeft css class
  define('TEMPLATE_INFOBOX_BORDER_IMAGE_RIGHT', ''); //right side image, if this is blank, if this is blank and TEMPLATE_INFOBOX_BORDER_RIGHT is set to true, it will use BoxBorderRight css class

  //infobox header images
  define('TEMPLATE_INFOBOX_IMAGE_TOP_LEFT', 'infobox_top_left.png');
  define('TEMPLATE_INFOBOX_IMAGE_TOP_RIGHT', 'infobox_top_right.png');
  define('TEMPLATE_INFOBOX_IMAGE_TOP_RIGHT_ARROW', 'infobox_top_right_arrow.png');
  //infoboxfooter images
    //infobox header images
  define('TEMPLATE_INFOBOX_IMAGE_FOOTER_LEFT', 'infobox_footer_left.png');
  define('TEMPLATE_INFOBOX_IMAGE_FOOTER_RIGHT', 'infobox_footer_right.png');

  //contentboxes  #############
  define('TEMPLATE_CONTENT_TABLE_WIDTH','100%');
  define('TEMPLATE_CONTENT_TABLE_CELLPADDIING','0');
  define('TEMPLATE_CONTENT_TABLE_CELLSPACING','0');
  //turn on/off
  define('TEMPLATE_INCLUDE_CONTENT_FOOTER','true');//footer for content boxes
  //content header
  define('TEMPLATE_CONTENTBOX_TOP_LEFT','true');
  define('TEMPLATE_CONTENTBOX_TOP_RIGHT','true');
  //footer
  define('TEMPLATE_CONTENTBOX_FOOTER_LEFT','true');
  define('TEMPLATE_CONTENTBOX_FOOTER_RIGHT','true');
 
  //images
  define('TEMPLATE_CONTENTBOX_IMAGE_TOP_LEFT', 'content_top_left.png');
  define('TEMPLATE_CONTENTBOX_IMAGE_TOP_RIGHT', 'content_top_right.png');
  define('TEMPLATE_CONTENTBOX_IMAGE_TOP_RIGHT_ARROW','content_top_rightarrow.png');

  //footer
  define('TEMPLATE_CONTENTBOX_IMAGE_FOOT_LEFT','content_footer_left.png');
  define('TEMPLATE_CONTENTBOX_IMAGE_FOOT_RIGHT','content_footer_right.png');
 
  // custom entries
  define('TEMPLATE_FS_CUSTOM_INCLUDES',DIR_FS_CATALOG . DIR_WS_TEMPLATES . TEMPLATE_NAME . '/includes/');
  define('TEMPLATE_BUTTONS_USE_CSS','true');
  define('TEMPLATE_FS_CUSTOM_MODULES',TEMPLATE_FS_CUSTOM_INCLUDES . 'modules/');
?>



When I go to the site i get an error.

// include the default version in case some function was not redefined
require DIR_FS_TEMPLATES . 'default/extra_html_output.php';
This is line 294 of the template_application_top.php.

do i need this line. why idoes it break here.
BK


Top
 Profile  
 
 Post subject: Re: Help with template issue.
PostPosted: Wed Dec 14, 2011 7:45 am 
Offline
CRE Freak
User avatar

Joined: Mon Oct 15, 2007 4:56 pm
Posts: 49
I guess to be a bit more non-general. Say I installed 6.5 Pro new and fresh.
I wanted to create a brand new template from scratch and not use the two that come with the application.
All I want to do is create a new template directory and go from there.
My template root would hold:
boxes.tpl.php
extra_html_output.php
footer.php
header.php
main_page.tpl.php
stylesheet

It would also hold folders:
boxes
images
main_page modules
tabs

My original template is an old AlgoZone template dating back to 6.2 so I have done some major mods since then.

Am i thinking about this the right way. Will I need the template.php.
What would be the best way to approach this?

BK


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

Board index » Loaded Commerce Support » Install & Config

All times are UTC - 5 hours


Who is online

Users browsing this forum: Google [Bot] and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
It is currently Mon May 21, 2012 6:18 pm
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group

Login

Forums Latest Activity

Top Listing

1. Cart2Cart - Shopping...
    Category: Shopping Cart Database Conversion Scripts
    
2. Points & Rewards PLUS!...
    Category: Add-Ons
    
3. Configuration Server...
    Category: Fixes
    
4. Credit Card with CCV
    Category: Payment Modules
    
5. CC7333_ATS
    Category: Templates
    
Show more...

© CRE Loaded is a product of Chain Reaction Ecommerce, Inc. Usage & Privacy Policy