Results 1 to 9 of 9
  1. #1
    Join Date
    May 2007
    Location
    Conway, SC
    Posts
    254
    Plugin Contributions
    0

    Default Help still needed on this.

    I followed the tutorial to add a logo to the invoice and packing slips as well as in the admin. after changing the needed files with the logo information the following happened:

    First, on some admin pages, there is a large gap between the menu bar at the top and where the page actually starts. Some of the admin pages display properly.

    Next when a product is added or modified and you click preview in the upper left of the preview is an exploded image of the UK flag where normally no graphic exists.

    I am including screen shots of the 2 problems. I have double checked the changes I made and cannot see what would have caused these problems.

    admingap.jpg

    lumberjackflag.jpg

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

    Default Re: Help still needed on this.

    Use the developers tool kit and search for "icon.gif"

    Or replace /your_admin/images/icon.gif with a copy of pixel_trans.gif from your /images folder and rename it icon.gif then upload to /your_admin/images/
    Last edited by kobra; 31 May 2015 at 11:38 AM.
    Zen-Venom Get Bitten

  3. #3
    Join Date
    May 2007
    Location
    Conway, SC
    Posts
    254
    Plugin Contributions
    0

    Default Re: Help still needed on this.

    Quote Originally Posted by kobra View Post
    Use the developers tool kit and search for "icon.gif"

    Or replace /your_admin/images/icon.gif with a copy of pixel_trans.gif from your /images folder and rename it icon.gif then upload to /your_admin/images/
    Thanks kobra, there was no icon.gif in my admin/images folder but copied pixel_trans.gif to the folder and renamed as icon.gif. However, doing that still has the exploded flag on the preview page of items.

  4. #4
    Join Date
    Aug 2009
    Location
    North Idaho, USA
    Posts
    2,008
    Plugin Contributions
    1

    Default Re: Help still needed on this.

    Have you "right-clicked" and view image info to see the exact path/location of that exploded image?

    /includes/languages/english/images/icon.gif

    Note: there is no reference of any admin folder

    If the raw image is correctly sized when opened, then the issue is most likely related to some customization you have made to the admin side of things.
    Last edited by RixStix; 31 May 2015 at 05:27 PM.
    Rick
    RixStix (dot) com
    aka: ChainWeavers (dot) com

  5. #5
    Join Date
    May 2007
    Location
    Conway, SC
    Posts
    254
    Plugin Contributions
    0

    Default Re: Help still needed on this.

    Quote Originally Posted by RixStix View Post
    Have you "right-clicked" and view image info to see the exact path/location of that exploded image?

    /includes/languages/english/images/icon.gif

    Note: there is no reference of any admin folder

    If the raw image is correctly sized when opened, then the issue is most likely related to some customization you have made to the admin side of things.

    Rick,

    thanks, I verified the file location and it is as you stated and size has been unchanged. The changes I made to the admin were to follow the tutorial on adding company logo to the packing slips and invoices. Hence the following files were changed:

    Firstly, my_admin/includes/languages/english.php was changed deleting the alt_text, logo_image filename and size to the company logo info

    Secondly,

    my_admin/includes/stylesheet.css to include:

    .pageheading img {width:198px; height:112px}
    @media print {.pageheading img {width:2.75in; height:1.55in}

    Lastly, in my_admin/includes/header.php
    <td align="left" valign="top" height="<?php echo HEADER_LOGO_HEIGHT; ?>" width="<?php echo HEADER_LOGO_WIDTH; ?>"><?php echo '<a href="' . zen_href_link(FILENAME_DEFAULT) . '">' . zen_image(DIR_WS_IMAGES . HEADER_LOGO_IMAGE, HEADER_ALT_TEXT, HEADER_LOGO_WIDTH, HEADER_LOGO_HEIGHT)

    These are the only changes I made to the admin, and the exploded icon is appearing on a page that usually is not there, so i am at a loss.

    thanks in advance

  6. #6
    Join Date
    Aug 2009
    Location
    North Idaho, USA
    Posts
    2,008
    Plugin Contributions
    1

    Default Re: Help still needed on this.

    It might be quicker to save your changes and restore the original admin files to get back to a known, out-of-the-box starting point. Then, add your changes back one at a time until it breaks. That is one thing I have learned over the past few years.... backup is my friend and restore is 2nd best friend.

    I do not recall doing anything special to print our logo on invoices except to replace the stock zencart admin logo image with our logo image. I probably resized our logo image to somewhat fit within the size occupied by the stock zencart logo.

    /MYADMINFOLDER/images/logo.gif
    Rick
    RixStix (dot) com
    aka: ChainWeavers (dot) com

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

    Default Re: Help still needed on this.

    However, doing that still has the exploded flag on the preview page of items.
    Did you use the developers tool kit and search for "icon.gif"
    I get this
    /your_admin/languages.php
    Code:
    $contents[] = array('text' => '<br>' . TEXT_INFO_LANGUAGE_IMAGE . '<br>' . zen_draw_input_field('image', 'icon.gif'));
    You might try editing this file as follows
    Code:
    $contents[] = array('text' => '<br>' . TEXT_INFO_LANGUAGE_IMAGE . '<br>');
    or also try commenting it out
    Code:
    //$contents[] = array('text' => '<br>' . TEXT_INFO_LANGUAGE_IMAGE . '<br>' . zen_draw_input_field('image', 'icon.gif'));
    Also looking - this is where the image is
    /includes/languages/english/images/icon.gif
    You might replace it with pixel_trans.gif

    This assumes that you do not require it for any language definition
    Last edited by kobra; 1 Jun 2015 at 12:10 AM.
    Zen-Venom Get Bitten

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

    Default Re: Help still needed on this.

    Skip last posting of mine
    In your_admin/includes/modules/products/preview_info.php
    Find this about line 108
    Code:
    <td class="pageHeading"><?php echo zen_image(DIR_WS_CATALOG_LANGUAGES . $languages[$i]['directory'] . '/images/' . $languages[$i]['image'], $languages[$i]['name']) . '&nbsp;' . zen_output_string_protected($pInfo->products_name); ?></td>
    Edit as follows
    Code:
    <td class="pageHeading"><?php echo zen_output_string_protected($pInfo->products_name); ?></td>
    This has eliminated the display of the flag image on previewing product
    Zen-Venom Get Bitten

  9. #9
    Join Date
    May 2007
    Location
    Conway, SC
    Posts
    254
    Plugin Contributions
    0

    Default Re: Help still needed on this.

    Quote Originally Posted by kobra View Post
    Skip last posting of mine
    In your_admin/includes/modules/products/preview_info.php
    Find this about line 108
    Code:
    <td class="pageHeading"><?php echo zen_image(DIR_WS_CATALOG_LANGUAGES . $languages[$i]['directory'] . '/images/' . $languages[$i]['image'], $languages[$i]['name']) . '&nbsp;' . zen_output_string_protected($pInfo->products_name); ?></td>
    Edit as follows
    Code:
    <td class="pageHeading"><?php echo zen_output_string_protected($pInfo->products_name); ?></td>
    This has eliminated the display of the flag image on previewing product
    Kobra, thanks, that fixed it. no more flag on the preview. Being I didn't modify that file, never would have found that.

 

 

Similar Threads

  1. Is this advice from Kuroi still valid?
    By simon1066 in forum Addon Payment Modules
    Replies: 6
    Last Post: 5 Jan 2012, 12:18 AM
  2. Help needed i have changed template but still carnt edit home page text
    By kevin baker in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 28 Oct 2011, 02:25 PM
  3. help needed to edit this simple html code to open in a new window
    By Xbox Memberships in forum General Questions
    Replies: 4
    Last Post: 2 Apr 2010, 04:15 PM
  4. Still Fighting this Template :(
    By TinaS in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 14 Jul 2006, 09:58 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