lampino Posted March 11, 2007 Posted March 11, 2007 I have installed before cdynamic meta tags and all meta tag was good, after yasu (sef url redirection). Now, I cant see updated dynamic meta tags. Do you know a possible fix to make work them together?
lampino Posted March 12, 2007 Author Posted March 12, 2007 I have installed before cdynamic meta tags and all meta tag was good, after yasu (sef url redirection). Now, I cant see updated dynamic meta tags. Do you know a possible fix to make work them together? Ok, now i can specify more the problem: In html output around line 34 when I follow the instruction to install yasu .. I have to replace: if (tep_not_null($parameters)) { $link .= $page . '?' . tep_output_string($parameters); $separator = '&'; with $separator = '?'; if (tep_not_null($parameters)) { $product_name = ''; switch ($page) { case FILENAME_PRODUCT_INFO: case FILENAME_DEFAULT: $manufacturer_name = ''; $product_name = ''; $new_parameter_list = array(); $cPath_list = array(); foreach (explode('&', $parameters) as $pair) { global $languages_id; $pair_array = explode('=', $pair); switch ($pair_array[0]) { case 'action': $link .= $page . '?' . tep_output_string($parameters); $separator = '&'; break 3; case 'cPath': $parent_id = 0; foreach (explode('_', $pair_array[1]) as $category_id) { $category_name_query = tep_db_query("select cd.categories_name from categories_description cd, categories c where cd.categories_id=c.categories_id and cd.categories_id='" . (int)$category_id . "' and cd.language_id='" . (int)$languages_id . "' and c.parent_id='" . (int)$parent_id . "'"); if ($category_name_array = tep_db_fetch_array($category_name_query)) { $cPath_list[]= urlencode($category_name_array['categories_name']); $parent_id = $category_id; } } break; case 'products_id': $product_name_query = tep_db_query("select products_name from products_description where products_id='" . (int)$pair_array[1] . "' and language_id='" . (int)$languages_id . "'"); if ($product_name_array = tep_db_fetch_array($product_name_query)) { $product_name = $product_name_array['products_name']; } break; case 'manufacturers_id': $manufacturer_name_query = tep_db_query("select manufacturers_name from " . TABLE_MANUFACTURERS . " where manufacturers_id='" . (int)$pair_array[1] . "'"); if ($manufacturer_array = tep_db_fetch_array($manufacturer_name_query)) { $manufacturer_name = $manufacturer_array['manufacturers_name']; } break; case '': break; default: if (tep_not_null($pair)) $new_parameter_list[]= $pair; } } if (tep_not_null($manufacturer_name)) { $cPath_list[]= urlencode($manufacturer_name); } if (tep_not_null($product_name)) { $cPath_list[]= urlencode($product_name); } $separator = '?'; $link .= preg_replace('/%2F/', '%20', implode('/', $cPath_list)); if (tep_not_null($new_parameter_list)) { $link .= $separator . implode('&', $new_parameter_list); $separator = '&'; } break; default: $link .= $page . '?' . tep_output_string($parameters); $separator = '&'; } This change didn't show meta tag correctly but only store name in all pages. Can somebody tell me a possible solution?
Recommended Posts
Archived
This topic is now archived and is closed to further replies.