Poom Posted March 5, 2004 Posted March 5, 2004 I have followed a guide but I have come across a few problems :( Here is a copy of the configure.php file and the popup_image.php file which were edited. the added parts or edited parts are in bold! Configure.php <?php /* osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2003 osCommerce Released under the GNU General Public License */ // Define the webserver and path parameters // * DIR_FS_* = Filesystem directories (local/physical) // * DIR_WS_* = Webserver directories (virtual/URL) define('HTTP_SERVER', 'http://www.thecdrstore.34sp.com'); // eg, http://localhost - should not be empty for productive servers define('HTTPS_SERVER', 'https://www.thecdrstore.34sp.com'); // eg, https://localhost - should not be empty for productive servers define('ENABLE_SSL', true); // secure webserver for checkout procedure? define('HTTP_COOKIE_DOMAIN', 'www.thecdrstore.34sp.com'); define('HTTPS_COOKIE_DOMAIN', 'www.thecdrstore.34sp.com'); define('HTTP_COOKIE_PATH', '/catalog/'); define('HTTPS_COOKIE_PATH', '/catalog/'); define('DIR_WS_HTTP_CATALOG', '/catalog/'); define('DIR_WS_HTTPS_CATALOG', '/catalog/'); define('DIR_WS_IMAGES', 'images/'); [B]define('DIR_WS_IMAGESBIG', DIR_WS_IMAGES . 'BIG/');[/B] define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/'); define('DIR_WS_INCLUDES', 'includes/'); define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/'); define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/'); define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/'); define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/'); define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/'); define('DIR_WS_DOWNLOAD_PUBLIC', 'pub/'); define('DIR_FS_CATALOG', '/usr/local/psa/home/vhosts/thecdrstore.34sp.com/httpdocs/catalog/'); define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/'); define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/'); // define our database connection define('DB_SERVER', 'localhost'); // eg, localhost - should not be empty for productive servers define('DB_SERVER_USERNAME', ''); define('DB_SERVER_PASSWORD', ''); define('DB_DATABASE', ''); define('USE_PCONNECT', 'false'); // use persistent connections? define('STORE_SESSIONS', ''); // leave empty '' for default handler or set to 'mysql' ?> popup_image.php <?php /* $Id: popup_image.php,v 1.18 2003/06/05 23:26:23 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2003 osCommerce Released under the GNU General Public License */ require('includes/application_top.php'); $navigation->remove_current_page(); $products_query = tep_db_query("select pd.products_name, p.products_image 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 = '" . (int)$HTTP_GET_VARS['pID'] . "' and pd.language_id = '" . (int)$languages_id . "'"); $products = tep_db_fetch_array($products_query); ?> <!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN"> <html <?php echo HTML_PARAMS; ?>> <head> <meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>"> <title><?php echo $products['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();"> [b]<?php echo tep_image(DIR_WS_IMAGESBIG . $products_values['products_image'], $products_values['products_name']); ?>[/b] </body> </html> <?php require('includes/application_bottom.php'); ?> The problem can be seen here ! Basicly it cannot find the image for the popup when you view an item! When you look at the properties in the popup it does not state a file name but it does go to the correct folder... how can I make it so the link has the appropriate image name? Thanks
burt Posted March 5, 2004 Posted March 5, 2004 Remove all instances of _values From this line: <?php echo tep_image(DIR_WS_IMAGESBIG . $products_values['products_image'], $products_values['products_name']); ?> in popup_image.php
Guest Posted March 5, 2004 Posted March 5, 2004 Hmmmm...I am having the exact same problem. This is the same thread as this one: http://www.oscommerce.com/forums/index.php?showtopic=81347 I made the changes as burt suggests and it still doesn't work. I could post the code for both the configure.php and popup_image.php if you would like.
NGR Posted March 5, 2004 Posted March 5, 2004 Hi you all... Right, a see a couple of you are having problems.... had a look at some of the links! I helped someone earlier that had these "dead" links - and it turned out to be that when you define "images/big" and make the folder "big" they must be in the same case ie: dont define "images/big" and make your folder "BIG"!!! They are case sensitive... Understand what im saying?? Sweet, Nick
Recommended Posts
Archived
This topic is now archived and is closed to further replies.