puppy sam Posted November 28, 2008 Share Posted November 28, 2008 A new version has been uploaded with the following changes: -> Added code to includes/functions/header_tags.php to fill in missing title and tags if none selected. This is a sort of automatic use default option. -> Added a few more files to the exclude list in admin/includes/functions/header_tags.php. -> Fixed coding mistake in IsTemplate function that caused it to always be true. -> Fixed Test function that checks languages. -> Fixed Test function to properly handle checking files if a template system is installed. -> Changed mysql code to work with all stirct mysql setting. Jack Hi, Jack, can you check your upload, I cannot find the latest version. Thanks. Quote Link to comment Share on other sites More sharing options...
Jack_mcs Posted November 28, 2008 Author Share Posted November 28, 2008 Because the size of the package is over 300 KB, it has to be approved before it will show up. Jack Quote Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. All of My Addons Get the latest versions of my addons Recommended SEO Addons Link to comment Share on other sites More sharing options...
pchem Posted November 29, 2008 Share Posted November 29, 2008 I am using 2.2rc2a that is only lightly modified. I have the Ultimate_SEO_URLSv21d_UPDATED-23-NOV-2008 contribution added. I just I added the HeaderTags_SEO_V_3.1.0 contribution. Under mysite.com/admin I am experiencing the following Fatal error: Call to undefined function tep_href_link() in /home/content/p/r/o/mysite/html/admin/includes/boxes/header_tags_seo.php on line 21 Line 21 from header_tags_seo.php is in bold below. <?php $heading = array(); $contents = array(); $heading[] = array('text' => BOX_HEADING_HEADER_TAGS_SEO, [b] 'link' => tep_href_link(FILENAME_HEADER_TAGS_SEO, 'selected_box=headertags'));[/b] if ($selected_box == 'headertags') { $contents[] = array('text' => '<a href="' . tep_href_link(FILENAME_HEADER_TAGS_SEO, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_HEADER_TAGS_ADD_A_PAGE . '</a><br>' . '<a href="' . tep_href_link(FILENAME_HEADER_TAGS_FILL_TAGS, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_HEADER_TAGS_FILL_TAGS . '</a><br>' . '<a href="' . tep_href_link(FILENAME_HEADER_TAGS_TEST, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_HEADER_TAGS_TEST . '</a>'); I have not seen errors in my code, and I even tried to change the permissions for header_tags_seo.php to 755 and 777 and that did not help. While probably not connected, the bread crumb shows up as "Home » Products » » » " and I think it can be corrected once I am able to get into the admin. Any suggestions? Quote Link to comment Share on other sites More sharing options...
maetsches Posted November 29, 2008 Share Posted November 29, 2008 Hi, I have a problem with Header Tags SEo 3.0.9 and STS 4.5.8. I have installes the Header Tags contribution but there are no meta tags an my site. Should I add some code in my STS template or should STS get the tags from the index.php file? Thank you for your help Quote Link to comment Share on other sites More sharing options...
AdianC Posted November 29, 2008 Share Posted November 29, 2008 (edited) Hi Guys, I try to install Header Tags SEO , I have a darn template RC2a and I try to install this Contrib.Install DB,OK. I Start edit the Index.PHP and I can't find <td class="pageHeading"><?php echo HEADING_TITLE; ?></td> It looks like I do not have it. I will put here the whole code for my index.php. If some one is kind enough to enlight me ....what I need to do to get this install...I will apreciate.[ <?php /* $Id: index.php,v 1.1 2003/06/11 17:37:59 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions [url="http://www.oscommerce.com"]http://www.oscommerce.com[/url] Copyright © 2003 osCommerce Released under the GNU General Public License */ require('includes/application_top.php'); // the following cPath references come from application_top.php $category_depth = 'top'; if (isset($cPath) && tep_not_null($cPath)) { $categories_products_query = tep_db_query("select count(*) as total from " . TABLE_PRODUCTS_TO_CATEGORIES . " where categories_id = '" . (int)$current_category_id . "'"); $cateqories_products = tep_db_fetch_array($categories_products_query); if ($cateqories_products['total'] > 0) { $category_depth = 'products'; // display products } else { $category_parent_query = tep_db_query("select count(*) as total from " . TABLE_CATEGORIES . " where parent_id = '" . (int)$current_category_id . "'"); $category_parent = tep_db_fetch_array($category_parent_query); if ($category_parent['total'] > 0) { $category_depth = 'nested'; // navigate through the categories } else { $category_depth = 'products'; // category has no products, but display the 'no products' message } } } require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_DEFAULT); ?> <!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; ?>"> <?php // Dynamic Meta Tags BOF if (isset($products_id)) { $product_info = tep_db_query("select p.products_id, pd.products_name, pd.products_description from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd where p.products_id = '" . $HTTP_GET_VARS ['products_id'] . "' and pd.products_id = '" . $HTTP_GET_VARS['products_id'] . "' and pd.language_id = '" . $languages_id . "'"); $product_info_values = tep_db_fetch_array($product_info); $meta_description = strip_tags($product_info_values['products_description']); $meta_description = substr($meta_description, 0, 250); echo '<title>' . $product_info_values['products_name'] . ' | ' . TITLE . '</title>'; echo '<meta name="description" content="' . $meta_description . '">'; echo '<meta name="keywords" content="' . str_replace(" ", ", ", $product_info_values['products_name']) . '">'; } // Dynamic Meta Tags EOF ?> <base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>"> <link rel="stylesheet" type="text/css" href="stylesheet.css"> </head> <body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0"> <!-- header //--> <?php require(DIR_WS_INCLUDES . 'header.php'); ?> <!-- header_eof //--> <!-- body //--> <table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td valign="top" class="col_left"> <!-- left_navigation //--> <?php require(DIR_WS_INCLUDES . 'column_left.php'); ?> <!-- left_navigation_eof //--> </td> <!-- body_text //--> <?php if ($category_depth == 'nested') { $category_query = tep_db_query("select cd.categories_name, c.categories_image from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where c.categories_id = '" . (int)$current_category_id . "' and cd.categories_id = '" . (int)$current_category_id . "' and cd.language_id = '" . (int)$languages_id . "'"); $category = tep_db_fetch_array($category_query); ?> <td width="100%" class="col_center"> <? tep_draw_heading_top();?> <? new contentBoxHeading_ProdNew($info_box_contents);?> <? tep_draw_heading_top_3();?> <table border="0" cellspacing="0" cellpadding="0" align="center" class="box_width_cont product"> <tr> <?php if (isset($cPath) && strpos('_', $cPath)) { // check to see if there are deeper categories within the current category $category_links = array_reverse($cPath_array); for($i=0, $n=sizeof($category_links); $i<$n; $i++) { $categories_query = tep_db_query("select count(*) as total from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where c.parent_id = '" . (int)$category_links[$i] . "' and c.categories_id = cd.categories_id and cd.language_id = '" . (int)$languages_id . "'"); $categories = tep_db_fetch_array($categories_query); if ($categories['total'] < 1) { // do nothing, go through the loop } else { $categories_query = tep_db_query("select c.categories_id, cd.categories_name, c.categories_image, c.parent_id from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where c.parent_id = '" . (int)$category_links[$i] . "' and c.categories_id = cd.categories_id and cd.language_id = '" . (int)$languages_id . "' order by sort_order, cd.categories_name"); break; // we've found the deepest category the customer is in } } } else { $categories_query = tep_db_query("select c.categories_id, cd.categories_name, c.categories_image, c.parent_id from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where c.parent_id = '" . (int)$current_category_id . "' and c.categories_id = cd.categories_id and cd.language_id = '" . (int)$languages_id . "' order by sort_order, cd.categories_name"); } $number_of_categories = tep_db_num_rows($categories_query); $rows = 0; while ($categories = tep_db_fetch_array($categories_query)) { $rows++; $cPath_new = tep_get_path($categories['categories_id']); $p_pic_sub = '<a href="' . tep_href_link(FILENAME_DEFAULT, $cPath_new) . '">' . tep_image(DIR_WS_IMAGES . $categories['categories_image'], $categories['categories_name'], SUBCATEGORY_IMAGE_WIDTH, SUBCATEGORY_IMAGE_HEIGHT) . '</a>'; $p_name_sub = '<a href="' . tep_href_link(FILENAME_DEFAULT, $cPath_new) . '">' . $categories['categories_name'] . '</a>'; $width = (int)(100 / MAX_DISPLAY_CATEGORIES_PER_ROW) . '%'; echo ' <td align="center" width="' . $width . '"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="vam" style="height:50px " align="center"><span>'.$p_name_sub.'</span></td> </tr> </table>'.tep_draw_prod_pic_top().''.$p_pic_sub.''.tep_draw_prod_pic_bottom().' </td> ' . "\n"; if ($col!=(MAX_DISPLAY_CATEGORIES_PER_ROW-1)){ echo ' <td class="bg_line_y">'.tep_draw_separator('spacer.gif', '1', '1').'</td> '; } else{ if ((($rows / MAX_DISPLAY_CATEGORIES_PER_ROW) == floor($rows / MAX_DISPLAY_CATEGORIES_PER_ROW)) && ($rows != $number_of_categories)) { echo ' </tr><tr><td colspan="'.(MAX_DISPLAY_CATEGORIES_PER_ROW + MAX_DISPLAY_CATEGORIES_PER_ROW -1).'">'.tep_draw_separator('spacer.gif', '1', '10').'</td></tr>' . "\n"; echo ' <tr>' . "\n"; } } if ($col==MAX_DISPLAY_CATEGORIES_PER_ROW-1){ $col=0; }else{ $col++; } } // needed for the new products module shown below $new_products_category_id = $current_category_id; ?> </table> <?php tep_draw_separate(); ?> <? tep_draw_heading_bottom_3();?> <? tep_draw_heading_bottom(); ?> <?php tep_draw_separate(); ?> <!-- ///////// --> <? tep_draw_heading_top(); ?> <? new contentBoxHeading_WHATS_NEW($info_box_contents, true, false);?> <? tep_draw_heading_top_3();?> <?php include(DIR_WS_MODULES . FILENAME_NEW_PRODUCTS); ?> <? tep_draw_heading_bottom_3();?> <? tep_draw_heading_bottom();?> </td> <?php } elseif ($category_depth == 'products' || isset($HTTP_GET_VARS['manufacturers_id'])) { // create column list $define_list = array('PRODUCT_LIST_MODEL' => PRODUCT_LIST_MODEL, 'PRODUCT_LIST_NAME' => PRODUCT_LIST_NAME, 'PRODUCT_LIST_MANUFACTURER' => PRODUCT_LIST_MANUFACTURER, 'PRODUCT_LIST_PRICE' => PRODUCT_LIST_PRICE, 'PRODUCT_LIST_QUANTITY' => PRODUCT_LIST_QUANTITY, 'PRODUCT_LIST_WEIGHT' => PRODUCT_LIST_WEIGHT, 'PRODUCT_LIST_IMAGE' => PRODUCT_LIST_IMAGE, 'PRODUCT_LIST_BUY_NOW' => PRODUCT_LIST_BUY_NOW); asort($define_list); $column_list = array(); reset($define_list); while (list($key, $value) = each($define_list)) { if ($value > 0) $column_list[] = $key; } $select_column_list = ''; for ($i=0, $n=sizeof($column_list); $i<$n; $i++) { switch ($column_list[$i]) { case 'PRODUCT_LIST_MODEL': $select_column_list .= 'p.products_model, '; break; case 'PRODUCT_LIST_NAME': $select_column_list .= 'pd.products_name, '; break; case 'PRODUCT_LIST_MANUFACTURER': $select_column_list .= 'm.manufacturers_name, '; break; case 'PRODUCT_LIST_QUANTITY': $select_column_list .= 'p.products_quantity, '; break; case 'PRODUCT_LIST_IMAGE': $select_column_list .= 'p.products_image, '; break; case 'PRODUCT_LIST_WEIGHT': $select_column_list .= 'p.products_weight, '; break; } } // show the products of a specified manufacturer if (isset($HTTP_GET_VARS['manufacturers_id'])) { if (isset($HTTP_GET_VARS['filter_id']) && tep_not_null($HTTP_GET_VARS['filter_id'])) { // We are asked to show only a specific category $listing_sql = "select " . $select_column_list . " p.products_id, p.manufacturers_id, p.products_price, p.products_tax_class_id, IF(s.status, s.specials_new_products_price, NULL) as specials_new_products_price, IF(s.status, s.specials_new_products_price, p.products_price) as final_price from " . TABLE_PRODUCTS . " p left join " . TABLE_SPECIALS . " s on p.products_id = s.products_id, " . TABLE_PRODUCTS_DESCRIPTION . " pd, " . TABLE_MANUFACTURERS . " m, " . TABLE_PRODUCTS_TO_CATEGORIES . " p2c where p.products_status = '1' and p.manufacturers_id = m.manufacturers_id and m.manufacturers_id = '" . (int)$HTTP_GET_VARS['manufacturers_id'] . "' and p.products_id = p2c.products_id and pd.products_id = p2c.products_id and pd.language_id = '" . (int)$languages_id . "' and p2c.categories_id = '" . (int)$HTTP_GET_VARS['filter_id'] . "'"; } else { // We show them all $listing_sql = "select " . $select_column_list . " p.products_id, p.manufacturers_id, p.products_price, p.products_tax_class_id, IF(s.status, s.specials_new_products_price, NULL) as specials_new_products_price, IF(s.status, s.specials_new_products_price, p.products_price) as final_price from " . TABLE_PRODUCTS . " p left join " . TABLE_SPECIALS . " s on p.products_id = s.products_id, " . TABLE_PRODUCTS_DESCRIPTION . " pd, " . TABLE_MANUFACTURERS . " m where p.products_status = '1' and pd.products_id = p.products_id and pd.language_id = '" . (int)$languages_id . "' and p.manufacturers_id = m.manufacturers_id and m.manufacturers_id = '" . (int)$HTTP_GET_VARS['manufacturers_id'] . "'"; } } else { // show the products in a given categorie if (isset($HTTP_GET_VARS['filter_id']) && tep_not_null($HTTP_GET_VARS['filter_id'])) { // We are asked to show only specific catgeory $listing_sql = "select " . $select_column_list . " p.products_id, p.manufacturers_id, p.products_price, p.products_tax_class_id, IF(s.status, s.specials_new_products_price, NULL) as specials_new_products_price, IF(s.status, s.specials_new_products_price, p.products_price) as final_price from " . TABLE_PRODUCTS . " p left join " . TABLE_SPECIALS . " s on p.products_id = s.products_id, " . TABLE_PRODUCTS_DESCRIPTION . " pd, " . TABLE_MANUFACTURERS . " m, " . TABLE_PRODUCTS_TO_CATEGORIES . " p2c where p.products_status = '1' and p.manufacturers_id = m.manufacturers_id and m.manufacturers_id = '" . (int)$HTTP_GET_VARS['filter_id'] . "' and p.products_id = p2c.products_id and pd.products_id = p2c.products_id and pd.language_id = '" . (int)$languages_id . "' and p2c.categories_id = '" . (int)$current_category_id . "'"; } else { // We show them all $listing_sql = "select " . $select_column_list . " p.products_id, p.manufacturers_id, p.products_price, p.products_tax_class_id, IF(s.status, s.specials_new_products_price, NULL) as specials_new_products_price, IF(s.status, s.specials_new_products_price, p.products_price) as final_price from " . TABLE_PRODUCTS_DESCRIPTION . " pd, " . TABLE_PRODUCTS . " p left join " . TABLE_MANUFACTURERS . " m on p.manufacturers_id = m.manufacturers_id left join " . TABLE_SPECIALS . " s on p.products_id = s.products_id, " . TABLE_PRODUCTS_TO_CATEGORIES . " p2c where p.products_status = '1' and p.products_id = p2c.products_id and pd.products_id = p2c.products_id and pd.language_id = '" . (int)$languages_id . "' and p2c.categories_id = '" . (int)$current_category_id . "'"; } } if ( (!isset($HTTP_GET_VARS['sort'])) || (!ereg('^[1-8][ad]$', $HTTP_GET_VARS['sort'])) || (substr($HTTP_GET_VARS['sort'], 0, 1) > sizeof($column_list)) ) { for ($i=0, $n=sizeof($column_list); $i<$n; $i++) { if ($column_list[$i] == 'PRODUCT_LIST_NAME') { $HTTP_GET_VARS['sort'] = $i+1 . 'a'; $listing_sql .= " order by pd.products_name"; break; } } } else { $sort_col = substr($HTTP_GET_VARS['sort'], 0 , 1); $sort_order = substr($HTTP_GET_VARS['sort'], 1); switch ($column_list[$sort_col-1]) { case 'PRODUCT_LIST_MODEL': $listing_sql .= " order by p.products_model " . ($sort_order == 'd' ? 'desc' : '') . ", pd.products_name"; break; case 'PRODUCT_LIST_NAME': $listing_sql .= " order by pd.products_name " . ($sort_order == 'd' ? 'desc' : ''); break; case 'PRODUCT_LIST_MANUFACTURER': $listing_sql .= " order by m.manufacturers_name " . ($sort_order == 'd' ? 'desc' : '') . ", pd.products_name"; break; case 'PRODUCT_LIST_QUANTITY': $listing_sql .= " order by p.products_quantity " . ($sort_order == 'd' ? 'desc' : '') . ", pd.products_name"; break; case 'PRODUCT_LIST_IMAGE': $listing_sql .= " order by pd.products_name"; break; case 'PRODUCT_LIST_WEIGHT': $listing_sql .= " order by p.products_weight " . ($sort_order == 'd' ? 'desc' : '') . ", pd.products_name"; break; case 'PRODUCT_LIST_PRICE': $listing_sql .= " order by final_price " . ($sort_order == 'd' ? 'desc' : '') . ", pd.products_name"; break; } } ?> <td width="100%" class="col_center"> <? tep_draw_heading_top();?> <?php // optional Product List Filter /* if (PRODUCT_LIST_FILTER > 0) { if (isset($HTTP_GET_VARS['manufacturers_id'])) { $filterlist_sql = "select distinct c.categories_id as id, cd.categories_name as name from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_TO_CATEGORIES . " p2c, " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where p.products_status = '1' and p.products_id = p2c.products_id and p2c.categories_id = c.categories_id and p2c.categories_id = cd.categories_id and cd.language_id = '" . (int)$languages_id . "' and p.manufacturers_id = '" . (int)$HTTP_GET_VARS['manufacturers_id'] . "' order by cd.categories_name"; } else { $filterlist_sql= "select distinct m.manufacturers_id as id, m.manufacturers_name as name from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_TO_CATEGORIES . " p2c, " . TABLE_MANUFACTURERS . " m where p.products_status = '1' and p.manufacturers_id = m.manufacturers_id and p.products_id = p2c.products_id and p2c.categories_id = '" . (int)$current_category_id . "' order by m.manufacturers_name"; } $filterlist_query = tep_db_query($filterlist_sql); if (tep_db_num_rows($filterlist_query) > 1) { echo ' <td align="center" class="main">' . tep_draw_form('filter', FILENAME_DEFAULT, 'get') . TEXT_SHOW . ' '; if (isset($HTTP_GET_VARS['manufacturers_id'])) { echo tep_draw_hidden_field('manufacturers_id', $HTTP_GET_VARS['manufacturers_id']); $options = array(array('id' => '', 'text' => TEXT_ALL_CATEGORIES)); } else { echo tep_draw_hidden_field('cPath', $cPath); $options = array(array('id' => '', 'text' => TEXT_ALL_MANUFACTURERS)); } echo tep_draw_hidden_field('sort', $HTTP_GET_VARS['sort']); while ($filterlist = tep_db_fetch_array($filterlist_query)) { $options[] = array('id' => $filterlist['id'], 'text' => $filterlist['name']); } echo tep_draw_pull_down_menu('filter_id', $options, (isset($HTTP_GET_VARS['filter_id']) ? $HTTP_GET_VARS['filter_id'] : ''), 'onchange="this.form.submit()"'); echo tep_hide_session_id() . '</form></td>' . "\n"; } } */ // Get the right image for the top-right $image = DIR_WS_IMAGES . 'table_background_list.gif'; if (isset($HTTP_GET_VARS['manufacturers_id'])) { $image = tep_db_query("select manufacturers_image from " . TABLE_MANUFACTURERS . " where manufacturers_id = '" . (int)$HTTP_GET_VARS['manufacturers_id'] . "'"); $image = tep_db_fetch_array($image); $image = $image['manufacturers_image']; } elseif ($current_category_id) { $image = tep_db_query("select categories_image from " . TABLE_CATEGORIES . " where categories_id = '" . (int)$current_category_id . "'"); $image = tep_db_fetch_array($image); $image = $image['categories_image']; } ?> <?php include(DIR_WS_MODULES . FILENAME_PRODUCT_LISTING); ?> <? tep_draw_heading_bottom_3();?> <? tep_draw_heading_bottom();?> </td> <td width="100%" class="col_center"><?php } else { // default page ?> <td width="100%" class="col_center"> <?php /* require(DIR_WS_BOXES . 'panel_top.php'); */ ?> <? tep_draw_heading_top();?> <? /* new contentBoxHeading_ProdNew($info_box_contents); */ ?> <? tep_draw_heading_top_3();?> <!--- Am Ascuns New Product si Upcoming Products----> <?php /*include(DIR_WS_MODULES . FILENAME_NEW_PRODUCTS); */ ?> <?php /*include(DIR_WS_MODULES . FILENAME_UPCOMING_PRODUCTS); */ ?> <img src="http://www.dianaciulei.com/images/gemstones.jpg " alt="gemstones" width="474"> <tr class="diana">Welcome to Diana Jewelry <hr > <tr class="welcome"> <P> Handmade Jewelry by Diana, offers unique and one of a kind handcrafted jewelry. <br> One of the largest collection,over 300 pieces of beaded jewelry that is skillfully crafted and hand maded by her. Her collection is truly unique. Each piece is individually designed and handcrafted by Diana Ciulei. <br> Diana's handmade jewelry is inspired by nature's simple beauty. Her designs are modern and contemporary but still capture all the grace and artistry of traditional jewelry designs. <br><br></P> <P>Quality Handmade Gemstone Jewelry <br> Handmade jewelry by Diana uses only the finest quality materials, including culture pearls, genuine gemstone, semi-precious stone, Swarovski Cristal, Murano glass, sterling silver and 14Kt gold plated elements from reputable jewelry and gemstone suppliers. <br></P> <p>If you are looking for a unique gemstone necklace, handcrafted earrings to accent a dress for the special occasion, unusual gifts for that special person in your life or your own personalized jewelry, you have come to the right place for unique costume jewelry with exceptional craftsmanship. <br> For more details about Gemstones go <a href="http://www.wikipedia.org/">HERE</a> or <a href="http://www.google.com/"><img src="http://www.google.com/logos/Logo_25blk.gif" border="0" alt="Google" align="middle" /></a> and find all about the Power Of Gemstones.</p><hr></tr> <? tep_draw_heading_bottom_3();?> <? tep_draw_heading_bottom();?> </td> <?php } ?> <!-- body_text_eof //--> <td class="col_right"> <!-- right_navigation //--> <?php require(DIR_WS_INCLUDES . 'column_right.php'); ?> <!-- right_navigation_eof //--> </td> </tr> </table> <!-- body_eof //--> <!-- footer //--> <?php require(DIR_WS_INCLUDES . 'footer.php'); ?> <!-- footer_eof //--></body> </html> <?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?> Edited November 29, 2008 by AdianC Quote Link to comment Share on other sites More sharing options...
Jack_mcs Posted November 29, 2008 Author Share Posted November 29, 2008 I am using 2.2rc2a that is only lightly modified. I have the Ultimate_SEO_URLSv21d_UPDATED-23-NOV-2008 contribution added. I just I added the HeaderTags_SEO_V_3.1.0 contribution. Under mysite.com/admin I am experiencing the following Fatal error: Call to undefined function tep_href_link() in /home/content/p/r/o/mysite/html/admin/includes/boxes/header_tags_seo.php on line 21 I have not seen errors in my code, and I even tried to change the permissions for header_tags_seo.php to 755 and 777 and that did not help. While probably not connected, the bread crumb shows up as "Home » Products » » » " and I think it can be corrected once I am able to get into the admin. Any suggestions? That's an oscommerce function so if it can't be found and the rest of your shop is working, the problem must be with how Header Tags is installed or maybe some php incompatibility with your version. There's not much I can do to help with this though. You will need to try to isolate the problem by swapping things around. For example, if you make a copy of the admin/includes/boxes/customers .php file and rename it header_tags.php, it should work, although customers would be displayed. If it works, then the problem is elsewhere. If not, then the problem is in that section of code. Jack Quote Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. All of My Addons Get the latest versions of my addons Recommended SEO Addons Link to comment Share on other sites More sharing options...
Jack_mcs Posted November 29, 2008 Author Share Posted November 29, 2008 Hi, I have a problem with Header Tags SEo 3.0.9 and STS 4.5.8. I have installes the Header Tags contribution but there are no meta tags an my site. Should I add some code in my STS template or should STS get the tags from the index.php file? Thank you for your help The instructions explain how to setup the files for STS. If it still fails, try updating to 3.1.0 and run the test script to see what it says. Jack Quote Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. All of My Addons Get the latest versions of my addons Recommended SEO Addons Link to comment Share on other sites More sharing options...
maetsches Posted November 29, 2008 Share Posted November 29, 2008 I have the uploaded the file in the STS folder. MOre I don't have to do ?? The test script says : Missing Code in File The Header Tags head code for the index.php file cannot be found. The Header Tags head code for the product_info.php file cannot be found. The Header Tags head code for the product_reviews.php file cannot be found. The Header Tags head code for the product_reviews_info.php file cannot be found. The Header Tags head code for the product_reviews_write.php file cannot be found. The Header Tags head code for the specials.php file cannot be found. Quote Link to comment Share on other sites More sharing options...
Jack_mcs Posted November 29, 2008 Author Share Posted November 29, 2008 I have the uploaded the file in the STS folder. MOre I don't have to do ?? The test script says : Missing Code in File The Header Tags head code for the index.php file cannot be found. The Header Tags head code for the product_info.php file cannot be found. The Header Tags head code for the product_reviews.php file cannot be found. The Header Tags head code for the product_reviews_info.php file cannot be found. The Header Tags head code for the product_reviews_write.php file cannot be found. The Header Tags head code for the specials.php file cannot be found. As mentioned, you need to install v 3.1.0. The test script in 3.0.9 won't provide the proper results. Jack Quote Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. All of My Addons Get the latest versions of my addons Recommended SEO Addons Link to comment Share on other sites More sharing options...
maetsches Posted November 29, 2008 Share Posted November 29, 2008 I have installed V 3.1.0 and the test script gets the mentioned results. or what do you mean? Quote Link to comment Share on other sites More sharing options...
Jack_mcs Posted November 29, 2008 Author Share Posted November 29, 2008 I have installed V 3.1.0 and the test script gets the mentioned results. or what do you mean? Then you don't have STS enabled or installed correctly because the Header Tags code is showing results for a standard installation. Jack Quote Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. All of My Addons Get the latest versions of my addons Recommended SEO Addons Link to comment Share on other sites More sharing options...
amitxox Posted November 29, 2008 Share Posted November 29, 2008 Guys, Can you suggest some sites which might be running Header Tags SEO so I can see how it should look like and how the titles and tags change with the product or category information. Thanks Amit Jack.. I did add sort numbers and they had no effect.. not until I changed the code from this (in catalog/includes/header_tags.php) did it finally work as it should.. with still a slight hiccup in the admin section with respect to sort orders (below) // ALL OTHER PAGES NOT DEFINED ABOVE default: $header_tags_array['title'] = tep_db_prepare_input($defaultTags['default_title']); $header_tags_array['desc'] = tep_db_prepare_input($defaultTags['default_description']); $header_tags_array['keywords'] = tep_db_prepare_input($defaultTags['default_keywords']); break; } to this // ALL OTHER PAGES NOT DEFINED ABOVE default: $pageTags_query = tep_db_query("select * from " . TABLE_HEADERTAGS . " where page_name like '" . basename($PHP_SELF) . "' and language_id = '" . (int)$languages_id . "'"); $pageTags = tep_db_fetch_array($pageTags_query); $sortOrder['title'][0] = $pageTags['page_title']; $sortOrder['description'][0] = $pageTags['page_description']; $sortOrder['keywords'][0] = $pageTags['page_keywords']; $sortOrder['logo'][0] = $pageTags['page_logo']; if ($pageTags['append_default_title'] && tep_not_null($tmpTags['def_title'])) $sortOrder['title'][$pageTags['sortorder_title']] = $tmpTags['def_title']; if ($pageTags['append_default_description'] && tep_not_null($tmpTags['def_desc'])) $sortOrder['description'][$pageTags['sortorder_description']] = $tmpTags['def_desc']; if ($pageTags['append_default_keywords'] && tep_not_null($tmpTags['def_keywords'])) $sortOrder['keywords'][$pageTags['sortorder_keywords']] = $tmpTags['def_keywords']; if ($pageTags['append_default_logo'] && tep_not_null($tmpTags['def_logo_text'])) $sortOrder['logo'][$pageTags['sortorder_logo']] = $tmpTags['def_logo_text']; FillHeaderTagsArray($header_tags_array, $sortOrder); break; } As for the sort orders.. I get these errors.. Error Duplicate sort orders are not allowed -> buy.php Error Duplicate sort orders are not allowed -> buy.php Error Duplicate sort orders are not allowed -> buy.php I put in a sort order of 2 for the title and sort order of 2 for description.. I dont see why this is a problem.. However, with the change in code above.. specific page titles are now being appended by the default page titles.. this wasnt happening before.. Quote Link to comment Share on other sites More sharing options...
Guest Posted November 30, 2008 Share Posted November 30, 2008 Hello Jack, thank you very much for all the hard work you have put into this excellent add on. I've managed to get everything up and running and pages coded to the best of my ability! I have come accross 2 problems which I cant find the answer to. First one is reducing the text size for descriptions and titles e.t.c which I add into Header Tags Seo admin side, as it seems the size is around 20 and I could do with reducing to about 11. I have seen you mention H1 and H2 in the style sheet but I cant find anything that seems to work. Could you point me in the right direction please? Second is when you click through my site (http://www.alternativesecurity.org.uk/catalog/index.php) and get to a product section the following text is shown: /*** Begin Header Tags SEO ***/ if (isset($HTTP_GET_VARS['manufacturers_id'])) $db_query = tep_db_query("select manufacturers_htc_title_tag as htc_title, manufacturers_htc_description as htc_description from " . TABLE_MANUFACTURERS_INFO . " where languages_id = '" . (int)$languages_id . "' and manufacturers_id = '" . (int)$HTTP_GET_VARS['manufacturers_id'] . "'"); else $db_query = tep_db_query("select categories_htc_title_tag as htc_title, categories_htc_description as htc_description from " . TABLE_CATEGORIES_DESCRIPTION . " where categories_id = '" . (int)$current_category_id . "' and language_id = '" . (int)$languages_id . "'"); $htc = tep_db_fetch_array($db_query); ?> I cant find what I have done but it shows in every product section on the site. If there is any help you could offer then I would very much appreciate it. Thanks, Dave. Quote Link to comment Share on other sites More sharing options...
Jack_mcs Posted November 30, 2008 Author Share Posted November 30, 2008 The sizes are controlled by the h1 and h2 classes as you mention. If the changes are installed as directed, I can't think of why the won't work. For the other problem, that is because you didn't copy, copied the code outside of or overwrote a php delimiter (<?php and ?>). You'll need to compare the changes in the instructions with those made to the file having the error. Jack Quote Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. All of My Addons Get the latest versions of my addons Recommended SEO Addons Link to comment Share on other sites More sharing options...
amitxox Posted November 30, 2008 Share Posted November 30, 2008 Jack Any sites with header tags working. I wanted to show my programmer some examples. Let me know. Amit The sizes are controlled by the h1 and h2 classes as you mention. If the changes are installed as directed, I can't think of why the won't work. For the other problem, that is because you didn't copy, copied the code outside of or overwrote a php delimiter (<?php and ?>). You'll need to compare the changes in the instructions with those made to the file having the error. Jack Quote Link to comment Share on other sites More sharing options...
howit Posted November 30, 2008 Share Posted November 30, 2008 I've noticed something that may be bad, i'm not sure if this a syntax error, talking about the meta keywords... let me explain. I've got default keywords: Eg: 1, 2, 3 and i'm customizing contact_us.php for example... so I put there contact us as keyword, and choose to add the default aswell, this happens: contact us , 1, 2, 3 (extra space between the ",") Quote Link to comment Share on other sites More sharing options...
Guest Posted November 30, 2008 Share Posted November 30, 2008 The sizes are controlled by the h1 and h2 classes as you mention. If the changes are installed as directed, I can't think of why the won't work. For the other problem, that is because you didn't copy, copied the code outside of or overwrote a php delimiter (<?php and ?>). You'll need to compare the changes in the instructions with those made to the file having the error. Jack Thanks Jack, I think my trouble is I dont know where the H1 and H2 settings are to change. Could yu direct me where I need to look. Cant find anything referring to H1 or H2 in stylesheet.css Thanks, Dave. Quote Link to comment Share on other sites More sharing options...
Jack_mcs Posted November 30, 2008 Author Share Posted November 30, 2008 I've noticed something that may be bad, i'm not sure if this a syntax error, talking about the meta keywords... let me explain. I've got default keywords: Eg: 1, 2, 3 and i'm customizing contact_us.php for example... so I put there contact us as keyword, and choose to add the default aswell, this happens: contact us , 1, 2, 3 (extra space between the ",") There may be a space after the contact us text in Page Control. I thought I put in code to strip that but maybe not. Jack Quote Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. All of My Addons Get the latest versions of my addons Recommended SEO Addons Link to comment Share on other sites More sharing options...
theinkjetmarket Posted November 30, 2008 Share Posted November 30, 2008 Thanks Jack, I think my trouble is I dont know where the H1 and H2 settings are to change. Could yu direct me where I need to look. Cant find anything referring to H1 or H2 in stylesheet.css Thanks, Dave. Hi Dave During the installation of Header Tags SEO you should have added the following code to the Style sheets in your catalog directory: /*** Begin Header Tags SEO ***/ h1 { font-family: Verdana, Arial, sans-serif; font-size: 20px; font-weight: bold; margin-bottom: 0; padding-bottom: 0; color: #000; } h2 { font-family: Verdana, Arial, sans-serif; font-size: 10px; font-weight: normal; margin-bottom: 0; padding-bottom: 0; color: #000; } /*** End Header Tags SEO ***/ I have just changed my own font sizes an it works fine. Regards Garry Quote Link to comment Share on other sites More sharing options...
jhande Posted December 1, 2008 Share Posted December 1, 2008 I'm back again Jack. Before I make a mess of my database and meta tags again I was wondering if you could guide me as to what I should do? Still using version 3.0 The meta tags are working great on my product_info.php and index.php pages. index.php <meta name="Description" content="Shop online for all your modeling needs. Plastic model kits, model railroading, bead and jewelry, tools, paints and supplies." /> <meta name="Keywords" content="models, modeling, railroad, beads, jewelry, paint, tools" /> product_info.php <meta name="Description" content="Build a highly detailed Stock or Lowrider version - RMX/85-2040" /> <meta name="Keywords" content="Revell, 1960 Chevrolet, Impala, RMX/85-2040" /> The problem; The information from the index.php gets added to the Categories with an extra space between the last word and the comma, before what I want. Example <meta name="Description" content="Shop online for all your modeling needs. Plastic model kits, model railroading, bead and jewelry, tools, paints and supplies. - 1960 - 1969" /> <meta name="Keywords" content="models, modeling, railroad, beads, jewelry, paint, tools , 1960 - 1969" /> The red text is added and I don't want it, the blue text is what I want. How can I adjust that without making a mess of things again? Also is their a way for the main category to show prior to the sub-category? Such as - <meta name="Description" content="Car and Truck Models - 1960 - 1969" /> Sorry to bother you again. I've recovered from a previous problem clicking settings in the Page Control and don't want to go through that nightmare again LOL. And yes, I just backed up my database. :P Quote - :: Jim :: - - My Toolbox ~ Adobe Web Bundle, XAMPP & WinMerge | Install ~ osC v2.3.3.4 - Link to comment Share on other sites More sharing options...
Jack_mcs Posted December 1, 2008 Author Share Posted December 1, 2008 If your version has the Root checkbox, then it sounds like that is checked. Otherwise, I've no idea - too many changes since version 3.0. Jack Quote Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. All of My Addons Get the latest versions of my addons Recommended SEO Addons Link to comment Share on other sites More sharing options...
jhande Posted December 1, 2008 Share Posted December 1, 2008 No Root checkbox. Is it possible to upgrade to the newer version without losing all my info? What would be the best way to upgrade? Thanks Jack. ;) Quote - :: Jim :: - - My Toolbox ~ Adobe Web Bundle, XAMPP & WinMerge | Install ~ osC v2.3.3.4 - Link to comment Share on other sites More sharing options...
Jack_mcs Posted December 1, 2008 Author Share Posted December 1, 2008 Yes, it is possible. You have to make the individual database changes though. There's only one or two, as I recall, but you have to read throug the update docs to find them. For the files, they can just be uploaded without causing any problems. Jack Quote Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. All of My Addons Get the latest versions of my addons Recommended SEO Addons Link to comment Share on other sites More sharing options...
jhande Posted December 1, 2008 Share Posted December 1, 2008 Thank you Jack. I appreciate the help again. I'll set off on updating soon. ;) Thanks again! Quote - :: Jim :: - - My Toolbox ~ Adobe Web Bundle, XAMPP & WinMerge | Install ~ osC v2.3.3.4 - Link to comment Share on other sites More sharing options...
Guest Posted December 1, 2008 Share Posted December 1, 2008 Hi Jack, I'm try to use the "Add a Pseudo Page" function, but i cant get it to work with information pages. I did the add missing page and information.php is there I then did add information.php?info_id=6 in the pseudo box and hit update. There arent any errors, and the page refreshes but isnt appearing in the select a file option. Checked the database and cant see it anywhere in there either I also use SEO urls and have rewriting enabled, the url that shows in browser is about-us-i-6.html I am using HeaderTags_SEO_V_3.1.0 and every thing else is workign perfectly. Have I done something wrong, or can you point me in right direction Thanks Dean Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.