osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 

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 ...


Go Back   osCommerce and osCMax shopping cart software forums > osCMax v2.0 Forums > osCMax v2 Customization/Mods

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Reply

 

LinkBack Thread Tools
  #1  
Old 05-09-2007, 02:38 AM
New Member
 
Join Date: Apr 2007
Posts: 29
Thanks: 13
Thanked 1 Time in 1 Post
Rep Power: 0
aaanativearts is on a distinguished road
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?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2  
Old 05-09-2007, 03:37 AM
New Member
 
Join Date: Apr 2007
Posts: 29
Thanks: 13
Thanked 1 Time in 1 Post
Rep Power: 0
aaanativearts is on a distinguished road
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?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

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


All times are GMT -8. The time now is 02:12 AM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax