Results 1 to 5 of 5
  1. #1
    Join Date
    Jan 2012
    Posts
    27
    Plugin Contributions
    0

    Default Sub category images missing

    I am using a template supplied by monster and im not sure but since weve uploaded new images the category images no longer work. All that's displayed is the category properties which is repeated from the

    Ive attempted to load them in the normal way but to no avail, checking some links ive ascertained this may well be the .php code related, it seems different to what other people have pasted on here, can anyone look at it and let me know why is specifies catbanner, and more importantly if there's anything wrong here.

    tpl_index_categories.php

    <?php*
    //if (PRODUCT_LIST_CATEGORIES_IMAGE_STATUS_TOP == 'true') {
    // categories_image
    $categories_image = zen_get_categories_image($current_category_id);
    if (is_file(DIR_WS_IMAGES . 'catbanner/' . $categories_image)) {

    ?>
    <div class="ttext2 tie-margin1"><?php echo zen_image(DIR_WS_IMAGES .'catbanner/'. $categories_image); ?></div>
    <?php
    // categories_image
    }
    else
    {
    ?>

    <?php
    // categories_description
    if ($current_categories_description != '') {
    ?>

    <div class="tie2 text2 tie-margin1">
    <div class="tie2-indent">
    <div class="catDescContent"><strong>Property categories:</strong><br /><?php echo $current_categories_description; ?></div>
    <?php } // categories_description
    }
    ?>

    Ive attempted to load them in the normal way but to no avail, checking some links ive ascertained this may well be the .php code related, it seems different to what other people have pasted on here, can anyone look at it and let me know why is specifies catbanner, and more importantly if there's anything wrong here.

  2. #2
    Join Date
    Jan 2012
    Posts
    27
    Plugin Contributions
    0

    Default Re: Sub category images missing

    Just to add I found one page still works if I upload any image as long as I call it close up country bed.jpg even if I rename another image the actual image displayed is always as below using this path:


    <div class="ttext2 tie-margin1"><img src="images/catbanner/close up country bed.jpg" alt="" width="600" height="600" /></div>

  3. #3
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,263
    Plugin Contributions
    3

    Default Re: Sub category images missing

    Apart from the fact that you are using a "dangerous" template, your naming of images is also bad (for unix and linux).

    Image names should all be lower-case with NO SPACES IN THEM - so

    close up country bed.jpg

    SHOULD BE

    close-up-country-bed.jpg

    When you look at the source code you will see stuff like:

    close%20up%20country%20bed.jpg as the browser desperately tries to interpret the spaces in a filename.

    1. Get rid of the TM junk... they cause a LOT of conflicts and are just not worth the hassle. It is possible to create the "look" of ANY t.m template using existing and compatible free ones.

    2. learn how to name files, folders and images correctly.
    20 years a Zencart User

  4. #4
    Join Date
    Jan 2012
    Posts
    27
    Plugin Contributions
    0

    Default Re: Sub category images missing

    Quote Originally Posted by schoolboy View Post
    Apart from the fact that you are using a "dangerous" template, your naming of images is also bad (for unix and linux).

    Image names should all be lower-case with NO SPACES IN THEM - so

    close up country bed.jpg

    SHOULD BE

    close-up-country-bed.jpg

    When you look at the source code you will see stuff like:

    close%20up%20country%20bed.jpg as the browser desperately tries to interpret the spaces in a filename.

    1. Get rid of the TM junk... they cause a LOT of conflicts and are just not worth the hassle. It is possible to create the "look" of ANY t.m template using existing and compatible free ones.

    2. learn how to name files, folders and images correctly.
    1) If I had all the time in the world I would build everything myself believe me, but ive not got round to cloning myself yet. Therefore I used a ready made template. I get the hint they are potentially life threatening but Im prepared to live with it.

    2) Yes very good, on the whole yes I use file references with '_' in unix and yes lowercase normally to save any 'confusion'. On this occasion I just grabbed a local windows file to test one from I had uploaded to see if it made any difference.

    All of this is by the by, I was looking for a helpful answer, not a lecture thanks.

  5. #5
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,263
    Plugin Contributions
    3

    Default Re: Sub category images missing

    Quote Originally Posted by TheKenster View Post
    1) If I had all the time in the world ....
    Well... you will start hoping that in a BIG way with TM templates.

    You will spend hundreds of unnecessary hours in tears over the problems they cause. Properly designed (from a FUNCTIONS point-or-view) templates will give you all the time in the world to make easy and expected design alterations.

    I have had FULLY FUNCTIONAL SITES up-and-running in under an hour. In fact, I did THIS ONE yesterday afternoon in just under two hours - that's from inintial zencart installation to being ready to take orders...
    20 years a Zencart User

 

 

Similar Threads

  1. v151 Display images of Sub-Sub category in Main page while navigating.
    By Javier Romero in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 3 May 2013, 10:02 AM
  2. Replies: 1
    Last Post: 1 May 2013, 10:20 PM
  3. How to NOT display sub sub category images?
    By magneteye in forum General Questions
    Replies: 19
    Last Post: 11 Apr 2009, 05:09 AM
  4. Getting sub category images to show up on the main category page
    By VigilantWine in forum Setting Up Categories, Products, Attributes
    Replies: 5
    Last Post: 16 Feb 2009, 09:45 AM
  5. Help!!! Sub-Category missing
    By slabadoo in forum Setting Up Categories, Products, Attributes
    Replies: 14
    Last Post: 7 Jun 2007, 05:03 PM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR