Results 1 to 10 of 41

Hybrid View

  1. #1
    Join Date
    Feb 2007
    Location
    I currently reside in Northern New Jersey, USA.
    Posts
    6
    Plugin Contributions
    0

    help question Re: Documentation on the Override System

    Dr Byte,

    I all in favor of a reference book that was written by a programmer/writer and not anyone else.

    I have a question about the override system, as I fear either I don't understand fully or it doesn't always work.

    background scenario:

    There was a path:
    ../includes/templates/template_default/images/logo.gif

    there is now also a path:
    ../includes/template/CUSTOM/images/logo.gif

    The logo.gif in the CUSTOM directory was different from the one the in the template_default directory but would not be displayed. it was not until I changed the image in the template_default/images directory that the correct image was displayed in the header.

    Is there something missing in the .PHP?

  2. #2
    Join Date
    Nov 2005
    Location
    Missouri
    Posts
    37
    Plugin Contributions
    0

    Default Re: Documentation on the Override System

    If your template is setup correctly you will be able to switch your CUSTOM template on in ADMIN > TOOLS > TEMPLATE SELECTION.

    In this section it will have a list of the templates installed as well as the active template.

    If you have not turned your custom template on you will not be accessing your overrides. That is probably why you are seeing the original logo and not your new custom one.

  3. #3
    Join Date
    Feb 2007
    Location
    I currently reside in Northern New Jersey, USA.
    Posts
    6
    Plugin Contributions
    0

    Default Re: Documentation on the Override System

    Thanks bm,

    My template is set up fine. You wouldn't recognize the pages anymore.
    This is the only problem I'm having right now.
    It wouldn't be a problem if, really, if I weren't such a perfectionist.

    The View Source shows clearly:

    <img src="includes/templates/template_default/images/iu_logo.png

    that the PHP did not generate the image out of my CUSTOM directory.

    It should come out as follows, but unfortunately it doesn't.

    <img src="includes/templates/CUSTOM/images/iu_logo.png

  4. #4
    Join Date
    Nov 2005
    Location
    Missouri
    Posts
    37
    Plugin Contributions
    0

    Default Re: Documentation on the Override System

    This is probably what you have in
    /includes/languages/english/CUSTOM/header.php

    Line #24 : define('HEADER_LOGO_IMAGE', 'logo.gif');


    It may help to change line #24 to

    define('HEADER_LOGO_IMAGE', 'iu_logo.png');

  5. #5
    Join Date
    Feb 2007
    Location
    I currently reside in Northern New Jersey, USA.
    Posts
    6
    Plugin Contributions
    0

    Default Re: Documentation on the Override System

    Right you are, I do have a:

    /includes/languages/english/CUSTOM/header.php

    However, the contents of that file is:
    <?php
    /**
    * @package languageDefines
    * @copyright 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: header.php 2940 2006-02-02 04:29:05Z drbyte $
    */
    // header text in includes/header.php
    define('HEADER_TITLE_CREATE_ACCOUNT', 'Create Account');
    define('HEADER_TITLE_MY_ACCOUNT', 'My Account');
    define('HEADER_TITLE_CART_CONTENTS', 'Shopping Cart');
    define('HEADER_TITLE_CHECKOUT', 'Checkout');
    define('HEADER_TITLE_TOP', 'Top');
    define('HEADER_TITLE_CATALOG', 'Home');
    define('HEADER_TITLE_LOGOFF', 'Log Out');
    define('HEADER_TITLE_LOGIN', 'Log In');
    // added defines for header alt and text
    define('HEADER_ALT_TEXT', 'IntimateU - Lingerie, Hosiery, Costumes, Leather & Lace, and more...');
    define('HEADER_SALES_TEXT', '');
    define('HEADER_LOGO_WIDTH', '277px');
    define('HEADER_LOGO_HEIGHT', '57px');
    define('HEADER_LOGO_IMAGE', 'iu_logo.png');
    // header Search Button/Box Search Button
    define('HEADER_SEARCH_BUTTON','Search');
    define('HEADER_SEARCH_DEFAULT_TEXT', 'Search keywords...');
    ?>

    As you can see, the HEADER_LOGO_IMAGE is correctly defined.
    But still, if I rename the file in the template_default/images directory, the image will not be found. Something is broken.

    Why does, what seems like, straight forward processes have to be chopped up into hundreds of disparate bits and pieces that make it impossible to see the big picture? Why? Why? Why, does this have to be so difficult? Why did the default template have so much crap that I had to throw away 75% of it to have a more functional experience. Haven't you ever heard of the expression "less is more".

    This forum approach is not very productive, is there a reference book written by someone who can write, available?

    Discouraged would be an understatement.

    I was reading about GD2 to create thumb nails dynamically, because even if I did create three sized directories of images, I can't figure out what's supposed to read which directory, and how to get it to read the right directory and now I'm wondering where to put these directories.
    Besides, I've been reading very many instances of people not being able to get the GD2 extension to work. Is this really going to happen.
    The foolish notion that someone who can't code can create a professional looking website is a fool's delusion.

  6. #6
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Documentation on the Override System

    "...because even if I did create three sized directories of images, I can't figure out what's supposed to read which directory, and how to get it to read the right directory and now I'm wondering where to put these directories."

    You already have the three directories: /images/, /images/med/ and /images/lrg/, for small, medium and large images respectively.
    You can either use a mod like Image Handler 2 to take care of all of that, or upload the medium and large images directly to the right directories while using the standard product creation process to set the small images.
    See the HOW-TO: Image Preparation thread in First Steps for more good info.

    You don't need to tell the system how to do anything; just put the images in the right places with the right names and it will all work.

 

 

Similar Threads

  1. Upgrading and the override system
    By ardhill in forum Upgrading from 1.3.x to 1.3.9
    Replies: 2
    Last Post: 8 Jun 2010, 11:53 AM
  2. I haven't used the override system... am I screwed??!
    By chudley in forum Templates, Stylesheets, Page Layout
    Replies: 16
    Last Post: 16 Sep 2009, 11:10 PM
  3. Did not use the Override System
    By res in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 14 Aug 2008, 05:23 AM
  4. Please help me understand the override system.
    By angelicdezigns in forum Templates, Stylesheets, Page Layout
    Replies: 9
    Last Post: 9 Jul 2006, 06:06 AM

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