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?