osCmax v2.5 User Manual
Results 1 to 2 of 2

trying to change image mod, no image in popup

This is a discussion on trying to change image mod, no image in popup within the osCmax v2 Customization/Mods forums, part of the osCmax v2.0 Forums category; I replaced the code to insert the stock Dynamic Pics that is part of osMax with the Big Images Modification ...

      
  1. #1
    Member
    Join Date
    Apr 2007
    Posts
    40
    Rep Power
    0


    Default trying to change image mod, no image in popup

    I replaced the code to insert the stock Dynamic Pics that is part of osMax with the Big Images Modification v1.25 for osCommerce 2.2 MS2 mod on Dropship Provider dropshipper dropshipping source . I can input separate small and big images from the admin screen when I create a new product, and I can see both in the admin preview screen and the small pic with the Click to Enlarge link is on the frontend product page, but when I click the link, the popup pops up, but it's empty. I put both the small and large images in the /images/ folder and I name my pics like this: mypic_lg.jpg and mypic_sm.jpg. I'm using an IE browser. My installation of osMax is in the root folder.

    Does anyone have an idea of what I missed?

  2. #2
    Member
    Join Date
    Apr 2007
    Posts
    40
    Rep Power
    0


    Default Re: trying to change image mod, no image in popup

    I got the popup working by copying over popup_image.php from an osCommerce 2.2 site with the Big Images Mod that works and adding the SEF lines back in. But now I'm not getting SE friendly urls on the product listing pages. There is one item under Collectible Knife Tins which I added before trying to change the image mod, and it still has a SEF url but the items I added under Hunting Knives after the change do not. The code I have for popup_image.php is
    Code:
    <?php
    /*
      $Id: popup_image.php,v 1.16 2003/02/13 03:10:56 hpdl Exp $
      osCommerce, Open Source E-Commerce Solutions
      osCommerce, Open Source Online Shop E-Commerce Solutions
      Copyright (c) 2003 osCommerce
      Released under the GNU General Public License
    */
      require('includes/application_top.php');
    // LINE ADDED
      require(DIR_WS_LANGUAGES . $_SESSION['language'] . '/' . FILENAME_POPUP_IMAGE);
    // BOF: MOD - Search engine friendly urls
      if (SEARCH_ENGINE_FRIENDLY_URLS == 'true') {
        if (isset($HTTP_GET_VARS)) $_GET =& $HTTP_GET_VARS;
      }
    // EOF: MOD - Search engine friendly urls
      $navigation->remove_current_page();
      $products_query = tep_db_query("select pd.products_name, p.products_image, p.products_bimage from " . TABLE_PRODUCTS . " p left join " . TABLE_PRODUCTS_DESCRIPTION . " pd on p.products_id = pd.products_id where p.products_status = '1' and p.products_id = '" . $HTTP_GET_VARS['pID'] . "' and pd.language_id = '" . $languages_id . "'");
      $products_values = tep_db_fetch_array($products_query);
    ?>
    <!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html <?php echo HTML_PARAMS; ?>>
    <head>
    <title><?php echo $products_values['products_name']; ?></title>
    <base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>">
    <script language="javascript"><!--
    var i=0;
    function resize() {
      if (navigator.appName == 'Netscape') i=40;
      if (document.images[0]) window.resizeTo(document.images[0].width +30, document.images[0].height+60-i);
      self.focus();
    }
    //--></script>
    </head>
    <body onload="resize();">
    <?php
    if ($products_values['products_bimage'] == '') {
    echo tep_image(DIR_WS_IMAGES . $products_values['products_image'], $products_values['products_name']);
    } else {
    echo tep_image(DIR_WS_IMAGES . $products_values['products_bimage'], $products_values['products_name']);
    }
    ?>
    </body>
    </html>
    <?php require('includes/application_bottom.php'); ?>
    Did I leave something out?

Similar Threads

  1. How can I setup the popup image in tab delimited file
    By judoka in forum osCMax v2 Features Discussion
    Replies: 3
    Last Post: 09-07-2006, 08:39 AM
  2. Products image missing popup image
    By islander in forum osCmax v2 Installation issues
    Replies: 7
    Last Post: 08-10-2005, 12:30 PM
  3. "Click for larger image" Popup box background colo
    By FOZ13 in forum osCommerce 2.2 Modification Help
    Replies: 1
    Last Post: 05-02-2005, 01:55 PM
  4. Auto Image change?
    By Stevis2002 in forum osCommerce 2.2 Modification Help
    Replies: 1
    Last Post: 04-07-2005, 02:45 PM
  5. Image path, where to change?
    By misterjonl in forum osCommerce 2.2 Modification Help
    Replies: 2
    Last Post: 10-08-2003, 07:23 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
  •