Jack_mcs Posted November 30, 2009 Author Share Posted November 30, 2009 I noticed the Title tags, generated from the product_info.php file, repeat the name of the category a second time and also contains two hyphens: Category Name - Category Name - - Product Name I checked the product_info.php file and didn't see where anything was duplicated. It is caused by the options in page control. Maybe the category and default category are both checked - something like that. 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...
WebDev22 Posted November 30, 2009 Share Posted November 30, 2009 It is caused by the options in page control. Maybe the category and default category are both checked - something like that. Product and Root are both selected. Quote Link to comment Share on other sites More sharing options...
WebDev22 Posted November 30, 2009 Share Posted November 30, 2009 Product and Root are both selected. I found it. It was pulling from Manufacturer. Quote Link to comment Share on other sites More sharing options...
qwertyjjj Posted November 30, 2009 Share Posted November 30, 2009 I found it. It was pulling from Manufacturer. On one of my pages under Categories, it now displays the title tags and meta information. However, I also have the cPath listed. So the page title is cPath_21 | Page title Is there a way to remove this? Quote Link to comment Share on other sites More sharing options...
Jack_mcs Posted November 30, 2009 Author Share Posted November 30, 2009 On one of my pages under Categories, it now displays the title tags and meta information. However, I also have the cPath listed. So the page title is cPath_21 | Page title Is there a way to remove this? It only loads the data provided. If it is loading the cPath, that must be set in the database. Look at the category edit page for that category to find the problem. 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...
qwertyjjj Posted November 30, 2009 Share Posted November 30, 2009 It only loads the data provided. If it is loading the cPath, that must be set in the database. Look at the category edit page for that category to find the problem. No, it's bizarre. I can't find anything with cPath_21 in the db. Here is my index.php code: <!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN"> <html <?php echo HTML_PARAMS; ?>> <head> <? ob_start(); ?> <?php /*** Begin Header Tags SEO ***/ if ( file_exists(DIR_WS_INCLUDES . 'header_tags.php') ) { require(DIR_WS_INCLUDES . 'header_tags.php'); } else { ?> <meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>"> <title><?php echo TITLE; ?></title> <?php } /*** End Header Tags SEO ***/ ?> <meta name="verify-v1" content="TohvsgzhkdU5HZ14DRCMu/ns2UoEcp8x7LPTI/iYZ9A=" /> <? $preventDuplicates->checkTarget(ob_get_clean()); echo $preventDuplicates->finalMeta . "\n"; ?> <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"> It's like it's slisting the oscommerce cpath somehow and then it adds all the relevant title text from SEO afterwards. Quote Link to comment Share on other sites More sharing options...
Jack_mcs Posted November 30, 2009 Author Share Posted November 30, 2009 No, it's bizarre. I can't find anything with cPath_21 in the db. Here is my index.php code: The contribution comes with a setup index file. Try that, and the other included files, to see if the problem is fixed. 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...
simonis Posted November 30, 2009 Share Posted November 30, 2009 hi, is it a problem to place an <img src="" > in the field 'Header Tags Categories Description', i tried and it's possible but this get in the way of proper functionality of HT SEO? kind regards Quote Link to comment Share on other sites More sharing options...
qwertyjjj Posted November 30, 2009 Share Posted November 30, 2009 The contribution comes with a setup index file. Try that, and the other included files, to see if the problem is fixed. Don't think I can as I have too much ad hoc code in the page, which has been changed. If it,s not in the db, is there anyway these variables in headertags could cause it? $header_tags_array or canonical. The same cPath_21 is contained in the meta name and meta description source of the outputted HTML. I have a checkbox called root ticked in the SEO admin page - could that be it? Quote Link to comment Share on other sites More sharing options...
Jack_mcs Posted November 30, 2009 Author Share Posted November 30, 2009 (edited) is it a problem to place an <img src="" > in the field 'Header Tags Categories Description', i tried and it's possible but this get in the way of proper functionality of HT SEO? It won't serve any purpose and will dilute the useable text. The search engines strip html code from those tags. Otherwise, you would see a lot of porn site links on google with images not everyone would want to view. :o Edited November 30, 2009 by Jack_mcs 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 30, 2009 Author Share Posted November 30, 2009 Don't think I can as I have too much ad hoc code in the page, which has been changed. It doesn't matter. Using the loaded one just means your site won't display correctly but for a 10 second test, that won't matter much. Although, today may not be the best of days to try that. Or you can rename the included one to index_text.php and access it that way. 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...
mballoun Posted November 30, 2009 Share Posted November 30, 2009 I don't have an answer for the first problem. I would need to look at the code for that. For the second, the breadcrumb is controlled by the code in the application_top file. Be sure that code has been changed. I solved my original problem by replacing $_GET with $HTTP_GET_VARS everywhere in includes/header_tags.php. I don't know why $_GET wasn't working, because my version of PHP is later than 4.1.0. Jack, do you think there will be any negative consequences of my switch to $HTTP_GET_VARS, or should that work okay? Quote Link to comment Share on other sites More sharing options...
Jack_mcs Posted November 30, 2009 Author Share Posted November 30, 2009 I solved my original problem by replacing $_GET with $HTTP_GET_VARS everywhere in includes/header_tags.php. I don't know why $_GET wasn't working, because my version of PHP is later than 4.1.0. Jack, do you think there will be any negative consequences of my switch to $HTTP_GET_VARS, or should that work okay? They are bsically the same but $HTTP_GET_VARS is less secure and will eventually not work at all. You might want to ask your host what the problem is. 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...
mballoun Posted November 30, 2009 Share Posted November 30, 2009 They are bsically the same but $HTTP_GET_VARS is less secure and will eventually not work at all. You might want to ask your host what the problem is. Ok. Thanks for all your help. This is a great contribution! Quote Link to comment Share on other sites More sharing options...
qwertyjjj Posted November 30, 2009 Share Posted November 30, 2009 It doesn't matter. Using the loaded one just means your site won't display correctly but for a 10 second test, that won't matter much. Although, today may not be the best of days to try that. Or you can rename the included one to index_text.php and access it that way. Aha. Your original index.php works (default) I found a ob_start in my code just before the title and this is a security add on for oscommerce that looks to clean URLs for any hacker code, etc. I commented out the ob_start and it works fine. However, the ob_start obviously has to be there for a reason. require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_DEFAULT); ?> <!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN"> <html <?php echo HTML_PARAMS; ?>> <head> <? //ob_start(); ?> <?php /*** Begin Header Tags SEO ***/ if ( file_exists(DIR_WS_INCLUDES . 'header_tags.php') ) { require(DIR_WS_INCLUDES . 'header_tags.php'); } else { ?> <meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>"> <title><?php echo TITLE; ?></title> <?php } /*** End Header Tags SEO ***/ ?> <meta name="verify-v1" content="TohvsgzhkdU5HZ14DRCMu/ns2UoEcp8x7LPTI/iYZ9A=" /> <? $preventDuplicates->checkTarget(ob_get_clean()); echo $preventDuplicates->finalMeta . "\n"; ?> <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'); ?> Quote Link to comment Share on other sites More sharing options...
Guest Posted November 30, 2009 Share Posted November 30, 2009 jack: would you please advise where I can find the instruction to download the add-ons and how to install it ? thanks [email protected] Quote Link to comment Share on other sites More sharing options...
simonis Posted November 30, 2009 Share Posted November 30, 2009 It won't serve any purpose and will dilute the useable text. The search engines strip html code from those tags. Otherwise, you would see a lot of porn site links on google with images not everyone would want to view. :o my purpose was to have an image to give nicer presentation when a category is selected; normally you would see just heading and subcategory (with images) or just products when there are no subcat's; but i want an image to place banner or promote some eyecatcher product inside one of the subcat any suggestion as contribution Quote Link to comment Share on other sites More sharing options...
Jack_mcs Posted December 1, 2009 Author Share Posted December 1, 2009 would you please advise where I can find the instruction to download the add-ons and how to install it ? There is a link on page 1. 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 December 1, 2009 Author Share Posted December 1, 2009 my purpose was to have an image to give nicer presentation when a category is selected; normally you would see just heading and subcategory (with images) or just products when there are no subcat's; but i want an image to place banner or promote some eyecatcher product inside one of the subcat any suggestion as contribution I'm sorry. I misread your question. I thought you were asking about the meta description tag. For the categories description, you can use whatever html code you want. In fact, if you have the TinyMCE editor installed, you can enable it for the categories, making it easier to add such things. 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...
nafri Posted December 1, 2009 Share Posted December 1, 2009 hi,, i got a strange issue with my website.A while ago i installed header_tags_seo and google_xml_sitemap on my website.Lately i noticed that both of these contribs are not showing up under configuration in admin.I had a look at the configuration group table and there are no entries regarding these two contribs. But in configuration table there are entries relevant to these two contribs.I then removed the entries and reinstalled the database entries for these two conribs and it all worked okay.That was yesterday . Today i cant see any entry for header_tags_seo and google_xml_sitemap under configuration_group.When i look at the database there is no entry for these two contribs under configuration_group but the values are still present under configuration.I dont know whats going on here.How come only these group entries are being deleted. Has anybody come across this before. kind regards nafri Quote Link to comment Share on other sites More sharing options...
qwertyjjj Posted December 1, 2009 Share Posted December 1, 2009 Aha. Your original index.php works (default) I found a ob_start in my code just before the title and this is a security add on for oscommerce that looks to clean URLs for any hacker code, etc. I commented out the ob_start and it works fine. However, the ob_start obviously has to be there for a reason. require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_DEFAULT); ?> <!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN"> <html <?php echo HTML_PARAMS; ?>> <head> <? //ob_start(); ?> <?php /*** Begin Header Tags SEO ***/ if ( file_exists(DIR_WS_INCLUDES . 'header_tags.php') ) { require(DIR_WS_INCLUDES . 'header_tags.php'); } else { ?> <meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>"> <title><?php echo TITLE; ?></title> <?php } /*** End Header Tags SEO ***/ ?> <meta name="verify-v1" content="TohvsgzhkdU5HZ14DRCMu/ns2UoEcp8x7LPTI/iYZ9A=" /> <? $preventDuplicates->checkTarget(ob_get_clean()); echo $preventDuplicates->finalMeta . "\n"; ?> <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'); ?> ANy ideas how to make Headers SEO work with Security Pro? http://addons.oscommerce.com/info/5752 The ob_start in index.php causes a problem Quote Link to comment Share on other sites More sharing options...
Jack_mcs Posted December 1, 2009 Author Share Posted December 1, 2009 i got a strange issue with my website.A while ago i installed header_tags_seo and google_xml_sitemap on my website.Lately i noticed that both of these contribs are not showing up under configuration in admin.I had a look at the configuration group table and there are no entries regarding these two contribs. It sounds like you have an older version of Ultimate SEO installed, which would cause that problem. Be sure you are using version 2.2d_5. 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...
gomino Posted December 2, 2009 Share Posted December 2, 2009 Hi, I would like to add to the title of the advanced search results, the word that I have looked for. Is there an easy way for this? Thanks. Quote Link to comment Share on other sites More sharing options...
Jack_mcs Posted December 2, 2009 Author Share Posted December 2, 2009 I would like to add to the title of the advanced search results, the word that I have looked for. Is there an easy way for this? I'm sory but I don't understand the question. If you are asking how to change the title of the advanced search page, you just edit it in page control. If you are talking about changing the search results, that isn't a question for this thread. 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...
gomino Posted December 2, 2009 Share Posted December 2, 2009 Hi, I would like to add to the title of the advanced search results, the word that I have looked for. Is there an easy way for this? Thanks. I did not use Header Tags, in advanced_search_results.php, I set $title = $keywords . ' - Advanced search results - Your site name'; Shouldn't this be done by header tags seo? 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.
Note: Your post will require moderator approval before it will be visible.