Hi,
Nope, that doesn't seem to work. Just had someone on my site and there was a Page 2. I believe this is the code that needs looking at
\includes\functions\extra_functions\user_tracking. php - Line 73
Code:
if (($_GET['products_id'] || $_GET['cPath']))
{
if ($_GET['cPath'])
{
$cPath = $_GET['cPath'];
$cPath_array = zen_parse_category_path($cPath);
$cPath = implode('_', $cPath_array);
$current_category_id = $cPath_array[(sizeof($cPath_array)-1)];
$page_desc_values = $db->Execute("select categories_name from " . TABLE_CATEGORIES_DESCRIPTION . " where categories_id = '" . $current_category_id . "'");
$page_desc = addslashes($page_desc_values->fields['categories_name']) . ' ';
}
if ($_GET['products_id'])
{
$page_desc_values = $db->Execute("select products_name from " . TABLE_PRODUCTS_DESCRIPTION . " where products_id = '" . $_GET['products_id'] . "' and language_id = '" . $_SESSION['languages_id'] . "'");
$page_desc .= addslashes($page_desc_values->fields['products_name']);
}
}
else
{
$page_desc = addslashes(HEADING_TITLE);
if ($page_desc == "HEADING_TITLE")
$page_desc = addslashes(NAVBAR_TITLE);
}
So PSEUDO CODE
Change
Code:
if (($_GET['products_id'] || $_GET['cPath']))
to
Code:
if (($_GET['products_id'] || $_GET['cPath'] || $_GET['id'] ))
because ezpages use 'id'. I don't know if you need to check for chapter as well.
then add
Code:
if ($_GET['id'])
{
$page_desc_values = $db->Execute("GET EZPAGE TITLE";
$page_desc .= addslashes($page_desc_values);
}
Or something like that
Can anyone help?
Best regards
Alan
Bookmarks