Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1
    Join Date
    Jun 2007
    Posts
    87
    Plugin Contributions
    0

    Default <img> tag not working!?

    I'm having problems with <img> tags. No image shows up and there isn't even a spot with a broken image icon. I've had problems with this on my define_main_page.php as well as tpl_header.php.

    Does anyone know what would be the cause?

    I don't see anything wrong but maybe I'm going crazy... i have been looking at this screen a little too much lately, so it's quite possible. Here is a little code from each:

    define_main_page.php
    <img style="float:right; padding:6px; margin-top:5px;" src="../../../templates/wiseTemplate/images/blogImage.gif">
    There are millions of
    ...
    into the blood stream.
    <br><br>
    <a href="index.php?main_page=page&id=12&chapter=0"><h4>Read More (Click Here)</h4></a>
    tpl_header.php
    <div id="headerWrapper">
    <!--bof-navigation display-->
    <div id="navMainWrapper">
    <div id="navMain">
    <ul class="back">
    <li><?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">'; ?><?php echo '<img src="../images/mnHome.gif">'; ?></a></li>
    <?php if ($_SESSION['customer_id']) { ?>
    <li><a href="<?php echo zen_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>"><?php echo HEADER_TITLE_LOGOFF; ?></a></li>
    <?php if (!($_SESSION['COWOA'])) { ?>
    Last edited by flipjargendy; 16 Aug 2007 at 04:32 AM.

  2. #2
    Join Date
    Jun 2007
    Posts
    87
    Plugin Contributions
    0

    Default Re: <img> tag not working!? (COWOA installed)

    I noticed that in my subject it says (COWOA installed). I did not put that there, I'm assuming a MOD did. Is this a common problem with COWOA?

  3. #3
    Join Date
    Jan 2004
    Posts
    66,391
    Blog Entries
    7
    Plugin Contributions
    81

    Default Re: <img> tag not working!? (COWOA installed)

    Quote Originally Posted by flipjargendy View Post
    I noticed that in my subject it says (COWOA installed). I did not put that there, I'm assuming a MOD did. Is this a common problem with COWOA?
    It may or may not be.
    It's uncertain.
    Perhaps someone using the COWOA mod might know better.
    Or perhaps removing the COWOA code might reveal whether the problem persists without it installed.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  4. #4
    Join Date
    Jun 2007
    Posts
    87
    Plugin Contributions
    0

    Default Re: <img> tag not working!? (COWOA installed)

    I had an idea of what might cause this last night. Tell me if I'm wrong... I'm just guessing.

    define_main_page.php is located in /includes/language/english/html_includes/ so to make an image show up on a page located there I would type
    <img src="../../../templates/customTemplate/images/image.gif>
    Because a PHP module (or whatever) calls the defines page would the defines page actually be considered in the directory of the PHP file that calls it?

  5. #5
    Join Date
    Nov 2003
    Location
    Haarlem | Netherlands
    Posts
    1,987
    Plugin Contributions
    15

    Default Re: <img> tag not working!? (COWOA installed)

    I am not sure which is which, but IE or FF does not show broken images, just the alt text (and if the alt text is missing it will show nothing).

    (And the file that is called by the browser is the "base file", not the included or required files by the script.)

  6. #6
    Join Date
    Jun 2007
    Posts
    87
    Plugin Contributions
    0

    Default Re: <img> tag not working!? (COWOA installed)

    (And the file that is called by the browser is the "base file", not the included or required files by the script.)
    So technically the img tag should be working correctly if I type it in (like I did above) on the define page?

  7. #7
    Join Date
    Jun 2007
    Posts
    87
    Plugin Contributions
    0

    Default Re: <img> tag not working!? (COWOA installed)

    I am becoming slow

    I decided to just use:
    ~/public_html/zenCartincludes/templates/customTemplate/images/image.gif

  8. #8
    Join Date
    Nov 2003
    Location
    Haarlem | Netherlands
    Posts
    1,987
    Plugin Contributions
    15

    Default Re: <img> tag not working!? (COWOA installed)

    Quote Originally Posted by flipjargendy View Post
    I decided to just use:
    ~/public_html/zenCartincludes/templates/customTemplate/images/image.gif


    If that works it indicates that it was just your path that was wrong. The above path is hardcoded and absolute. You really should try to avoid that, and use relative and defined paths (definded by the Zen Cart script).

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

    Default Re: <img> tag not working!? (COWOA installed)

    Try includes/templates/customTemplate/images/image.gif
    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.

  10. #10
    Join Date
    Jun 2007
    Posts
    87
    Plugin Contributions
    0

    Default Re: <img> tag not working!? (COWOA installed)

    Quote Originally Posted by Kim View Post
    Try includes/templates/customTemplate/images/image.gif
    Woah, i thought i tried that (several times) to be sure it didn't work.... it works!! Man i'm getting burned out with this client.

    Thanks guy!

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v139f Product Meta Tag Icon not working - blank page
    By jcash in forum Setting Up Categories, Products, Attributes
    Replies: 0
    Last Post: 1 Aug 2012, 07:55 AM
  2. ezpages meta tag fields not working
    By davidnelband in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 9 Aug 2011, 08:02 AM
  3. Text positioning inside TD tag not working in Firefox
    By ajhb in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 12 Sep 2008, 12:15 PM
  4. Meta Tag Descriptions NOT WORKING...
    By magneteye in forum General Questions
    Replies: 5
    Last Post: 5 Jun 2008, 09:22 PM
  5. img link not working in category description
    By inkuyo in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 12 Nov 2007, 01:42 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