Jump to content

Fast4u

Members
  • Content count

    2
  • Joined

  • Last visited

Profile Information

  • Real Name
    Stephane Tousignant
  1. Fast4u

    Header Tags SEO

    Hi Jack, I put the original catalog\includes\header_tags.php file in my store directory When i go id admin/HeaderTagseo all the header database is transfer in that file really nice fonction!!! sometime error code appear ... 2013 - Lost connection to MySQL server during query (Just the first time when the header database is writing to catalog\includes\header_tags.php file ) Dont know how to solve the problem? another problem append, products_new.php?page=2 page=3 page=4 and page=5 have the same tiltle as products_new.php i have change // products_new.php case (strstr($_SERVER['PHP_SELF'],FILENAME_PRODUCTS_NEW) or strstr($PHP_SELF,FILENAME_PRODUCTS_NEW)): $header_tags_array = tep_header_tag_page(FILENAME_PRODUCTS_NEW); break; by // products_new.php case (strstr($_SERVER['PHP_SELF'],FILENAME_PRODUCTS_NEW) or strstr($PHP_SELF,FILENAME_PRODUCTS_NEW)): $page = 'products_new.php?page='; $parts = explode("?",$page); $parts = explode("=", $parts[1]); if (isset($parts[0])) { $found = false; $name = FILENAME_PRODUCTS_NEW . "?" . $parts[0] . "="; $pageTags_query = tep_db_query("select * from " . TABLE_HEADERTAGS . " where page_name like '" . $name . "%' and language_id = '" . (int)$languages_id . "'"); if (tep_db_num_rows($pageTags_query) > 0) { while($pageTags = tep_db_fetch_array($pageTags_query)) { if ($name . $_GET[$parts[0]] === $pageTags['page_name']) { $header_tags_array = tep_header_tag_page($pageTags['page_name']); $found = true; break; } } } if (! $found) $header_tags_array = tep_header_tag_page(FILENAME_PRODUCTS_NEW); } else $header_tags_array = tep_header_tag_page(FILENAME_PRODUCTS_NEW); break; and now every title in every page is working fine thank you again for this contribution Steph
  2. Fast4u

    Header Tags SEO

    Hello Jack, your contribution is very hot I play a lot with this and i think i found some problems. First in admin, Header tag SEO, product_info.php if i uncheck the manufacturers or the Category it's not working. They are always in the title! I think i found the problem for manufacturer option, v3.09 Line 91 in catalog/includes/fonctions/header_tag.php just add if ($pageTags['append_manufacturer']) WORK FOR ME if ($pageTags['append_manufacturer']) { $the_manufacturer_query= tep_db_query($manStr); $the_manufacturer = tep_db_fetch_array($the_manufacturer_query); $header_tags_array['manufacturer'] = $the_manufacturer['htc_title_tag']; //save for use on the logo if (tep_not_null($the_manufacturer['htc_title_tag'])) { $sortOrder['title'][$pageTags['sortorder_manufacturer']] = tep_not_null($sortOrder['title'][$pageTags['sortorder_manufacturer']]) ? $sortOrder['title'][$pageTags['sortorder_manufacturer']] . ' ' . HEADER_TAGS_SEPARATOR_DESCRIPTION . ' ' . $the_manufacturer['htc_title_tag'] : $the_manufacturer['htc_title_tag']; $sortOrder['logo'][$pageTags['sortorder_manufacturer']] = tep_not_null($sortOrder['logo'][$pageTags['sortorder_manufacturer']]) ? $sortOrder['title'][$pageTags['sortorder_manufacturer']] . ' ' . HEADER_TAGS_SEPARATOR_DESCRIPTION . ' ' . $the_manufacturer['htc_title_tag'] : $the_manufacturer['htc_title_tag']; } if (tep_not_null($the_manufacturer['htc_desc_tag'])) { $sortOrder['description'][$pageTags['sortorder_manufacturer']] = tep_not_null($sortOrder['description'][$pageTags['sortorder_manufacturer']]) ? $sortOrder['title'][$pageTags['sortorder_manufacturer']] . ' ' . HEADER_TAGS_SEPARATOR_DESCRIPTION . ' ' . $the_manufacturer['htc_desc_tag'] : $the_manufacturer['htc_desc_tag']; $sortOrder['description'][$pageTags['sortorder_manufacturer']] = $the_manufacturer['htc_desc_tag']; } if (tep_not_null($the_manufacturer['htc_keywords_tag'])) { $sortOrder['keywords'][$pageTags['sortorder_manufacturer']] = tep_not_null($sortOrder['keywords'][$pageTags['sortorder_manufacturer']]) ? $sortOrder['title'][$pageTags['sortorder_manufacturer']] . ' ' . HEADER_TAGS_SEPARATOR_KEYWORD . ' ' . $the_manufacturer['htc_keywords_tag'] : $the_manufacturer['htc_keywords_tag']; } } } return $sortOrder; Dont know for the category option and the other problem i found its when i use two file with the same ending example: vitamins.php and top_quality_vitamins.php the second file have is page_title ,page_description, page_keyword and page_logo fill in the data base but they are using title , description, keyword and logo text of the first one ... strange i have change the name of my second file, everythings work fine! Just want to notice that Thanks
×