Page 1 of 2 12 LastLast
Results 1 to 10 of 14
  1. #1
    Join Date
    Apr 2008
    Posts
    150
    Plugin Contributions
    0

    Default problem with transparent gif images

    I have my site set up so that all images have a 1px black border. This works great for me except when I view a category page since the list of subcategories contains a number of transparent gifs. Is there a way to remove that border with the stylesheet?

  2. #2
    Join Date
    Jun 2003
    Posts
    33,715
    Plugin Contributions
    0

    Default Re: problem with transparent gif images

    The stock program and template shouldn't have any transparent gifs on the catalog side. Please post a URL to your example.
    Please do not PM for support issues: a private solution doesn't benefit the community.

    Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

  3. #3
    Join Date
    Apr 2008
    Posts
    150
    Plugin Contributions
    0

    Default Re: problem with transparent gif images

    Hi, One example is here: http://vinylfrontier.com/cart/index....index&cPath=85

    The subcategories of artists under the category "B" are spaced vertically with a transparent gif called pixel_trans.gif.

    Also, if there is a way to get the artist names to line up in columns instead of rows, that would be great. But that's a preference not a necessity.

  4. #4
    Join Date
    Apr 2008
    Posts
    150
    Plugin Contributions
    0

    Default Re: problem with transparent gif images

    update: I changed the directory name after composing the post above. The correct address is: http://vinylfrontier.com/shop/index....index&cPath=85

  5. #5
    Join Date
    Apr 2008
    Posts
    150
    Plugin Contributions
    0

    Default I've tried everything I could think of

    http://vinylfrontier.com/shop/index....index&cPath=85

    I can't seem to get rid of the subcategory images completely, When I set the admin values to turn them off they are replaced by a tiny transparent gif. I have also tried setting their dimensions to 0 in the admin and they just default to their normal size.
    I don't really wouldn't mind the transparent gif if it was not visible, but it adopts the border attributes that I assigned to all other images.

    Can someone take a look, please? I searched the forums and been all through the admin area trying to find a solution, but nothing seems to be working.

  6. #6
    Join Date
    Jun 2003
    Posts
    33,715
    Plugin Contributions
    0

    Default Re: problem with transparent gif images

    I am terribly sorry for leading you astray. You are correct there is stil a tranparent gif used as a replacement for a full size image in that section of legacy code.

    To fix the problem you will need to change the Category Row module to not substitute the .gif for a missing image.
    Please do not PM for support issues: a private solution doesn't benefit the community.

    Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

  7. #7
    Join Date
    Apr 2008
    Posts
    150
    Plugin Contributions
    0

    Default Re: problem with transparent gif images

    Quote Originally Posted by Kim View Post
    I am terribly sorry for leading you astray. You are correct there is stil a tranparent gif used as a replacement for a full size image in that section of legacy code.

    To fix the problem you will need to change the Category Row module to not substitute the .gif for a missing image.
    Thank you. I'm really a non-programmer, but at least I know in which direction to look.
    I did a search for pixel_trans.gif in the admin Developers Tool Kit and it points to three locations:
    /includes/classes/boxes.php
    /includes/languages/english/other_images_names.php
    /includes/modules/category_row.php

    But from that point I'm pretty lost. How do I tell it not to substitute the gif image?

  8. #8
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,761
    Plugin Contributions
    9

    Default Re: problem with transparent gif images

    Try editing the file located at /includes/modules/category_row.php when done create a folder "CUSTOM" in /includes/modules/ so you have
    /includes/modules/CUSTOM

    upload to /includes/modules/CUSTOM/category_row.php

    Find this section:
    Code:
    while (!$categories->EOF) {
    
        if (!$categories->fields['categories_image']) !$categories->fields['categories_image'] = 'pixel_trans.gif';
    
        $cPath_new = zen_get_path($categories->fields['categories_id']);
    Edit/delete red highlight so that you end up with:
    Code:
    while (!$categories->EOF) {
    
        if (!$categories->fields['categories_image']);
    
        $cPath_new = zen_get_path($categories->fields['categories_id']);
    Now because you are overriding the core file this one will be used and you can check to see if it worked or breaks something and if so, just delete it and the default file will be used
    Zen-Venom Get Bitten

  9. #9
    Join Date
    Apr 2008
    Posts
    150
    Plugin Contributions
    0

    Default Re: problem with transparent gif images

    Thanks kobra,

    Unfortunately that one didn't work. But it didn't appear to break anything either. And I appreciate your taking a shot at it.

    I've also considered another approach of only bordering the images only in the sections in which I want them bordered. But it appears that image bordering is determined only globally. When trying to make image borders in other parts of the style sheet, I get borders around the description too, not just the image.

  10. #10
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,761
    Plugin Contributions
    9

    Default Re: problem with transparent gif images

    So did the trans image still appear?
    And now you have the border issue?
    And which images are you referring to?
    Zen-Venom Get Bitten

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v139h Small problem with site after changing search_button.gif
    By dragondyf in forum Templates, Stylesheets, Page Layout
    Replies: 9
    Last Post: 16 May 2012, 04:45 PM
  2. Problem with Text Boxes Turning from White To Transparent..
    By JennH in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 19 Apr 2010, 05:46 PM
  3. logo.gif - ok with chrome and firefox but IE has a problem - help
    By voodoo1967 in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 18 Jul 2009, 10:32 AM
  4. transparent gif
    By Profetia in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 3 Jul 2007, 04:35 PM
  5. wierd problem with logo.gif
    By humbll in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 24 May 2007, 02:24 AM

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