Results 1 to 6 of 6

Enlarged images

This is a discussion on Enlarged images within the osCommerce 2.2 Modification Help forums, part of the osCommerce 2.2 Forums category; Hi I have partially installed oscommerce including the STS and easy populate add-ons. I ‘m at the stage where I’m ...

      
  1. #1
    Lurker
    Join Date
    Mar 2005
    Posts
    3
    Rep Power
    0


    Default Enlarged images

    Hi

    I have partially installed oscommerce including the STS and easy populate add-ons. I ‘m at the stage where I’m adding products to the web page via a tab delimited database. Everything works fine including being able to order the items – except when I try the ‘click to enlarge’ option for the images. Basically, nothing happens. The link is shown at the bottom of my web browser eg:-

    javascriptopupWindow('http://mystore.co.uk/catalog/popup_image.php?pID=44')

    What am I missing? Do I need to upload another database and images or manually add a new page for each item containing the enlarged image?

    Thanks.

  2. #2
    Member
    Join Date
    May 2004
    Posts
    31
    Rep Power
    0


    Default RE: Enlarged images

    You shouldn't have to do anything to get the images to pop up - is Java installed on your machine properly??

    What's the URL of the site?

  3. #3
    Lurker
    Join Date
    Mar 2005
    Posts
    3
    Rep Power
    0


    Default RE: Enlarged images

    Thanks for your reply Sean.

    Yes, as far as I’m aware Java is installed on my machine properly. Indeed, I had no trouble viewing the enlarged images which came with the dummy and images data in oscommerce.

    The url for the site, in its present form is :

    http://edelleonline.co.uk/catalog/

  4. #4
    Member
    Join Date
    May 2004
    Posts
    31
    Rep Power
    0


    Default RE: Enlarged images

    Just had a quick look at your site and I can't get the elarged image to pop up either.

    Looking at the source for the page, the only difference I have on my site is the following in the header:

    <script language="javascript"><!--
    function popupWihttp://oscdox.com/PNphpBB2-viewtopic-t-3878.htmlndow(url) {
    window.open(url,'popupWindow','toolbar=no,location =no,directories=no,status=no,menubar=no,scrollbars =no,resizable=yes,copyhistory=no,width=100,height= 100,screenX=150,screenY=150,top=150,left=150')
    }
    //--></script>
    Your pages don't have it - in fact there's something wrong with the <HEAD> bit of your pages - they look like:

    <html>
    <head>
    <link rel="stylesheet" type="text/css" href="stylesheet.css"

    <body>
    There seems to be a whole lot missing (at the very least there should be a </HEAD> just before the <BODY> tag. No idea what's causing it though....

    Can you switch the STS stuff off and see if it still doen't work - includs/sts_display_output.php, change:

    $display_template_output = 1;
    $display_normal_output = 0;
    to

    $display_template_output = 0;
    $display_normal_output = 1;
    If that cures it then it's STS that's doing it!

  5. #5
    Lurker
    Join Date
    Mar 2005
    Posts
    3
    Rep Power
    0


    Default RE: Enlarged images

    I disabled STS as you have shown. The pop up does now work but instead of getting the image I get this error message:-

    Warning: main(file:///C|/DOCUME%7E1/Sales/LOCALS%7E1/Temp/includes/application_top.php): failed to open stream: No such file or directory in /home/edelleonline/public_html/catalog/popup_image.php on line 13 Warning: main(file:///C|/DOCUME%7E1/Sales/LOCALS%7E1/Temp/includes/application_top.php): failed to open stream: No such file or directory in /home/edelleonline/public_html/catalog/popup_image.php on line 13 Fatal error: main(): Failed opening required 'file:///C|/DOCUME%7E1/Sales/LOCALS%7E1/Temp/includes/application_top.php' (include_path='.:/usr/share/pear') in /home/edelleonline/public_html/catalog/popup_image.php on line 13

    Cripes, this is beginning to irritate me.

  6. #6
    New Member
    Join Date
    May 2006
    Posts
    14
    Rep Power
    0


    Default fix

    what you need to do is add this to the header of your index.php.html and to your sts_template.html

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html $htmlparams>
    <head>
    <!--$headcontent-->
    <link rel="stylesheet" type="text/css" href="STS/upload/catalog/includes/sts_templates/test/stylesheet.css">
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"></head>

    that resolved the problem for me.

Similar Threads

  1. Problem viewing Enlarged pictures
    By pthurmond in forum osCmax v1.7 Discussion
    Replies: 2
    Last Post: 08-04-2004, 04:51 AM
  2. thumbnail and enlarged version problem
    By Alesha in forum osCommerce 2.2 Modification Help
    Replies: 0
    Last Post: 07-19-2004, 07:22 AM
  3. thumbnail enlarged picture
    By choyt3 in forum osCommerce 2.2 Modification Help
    Replies: 2
    Last Post: 05-20-2004, 01:29 PM
  4. Images uploaded in /catalog/images
    By Anonymous in forum osCommerce 2.2 Installation Help
    Replies: 1
    Last Post: 12-05-2002, 09:15 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
  •