Jack_mcs Posted June 15, 2011 Author Share Posted June 15, 2011 Hi Jack and thanks for all your work on your contributions. I am installing header tags seo on osc V2.3.1. I have successfully installed the database and have transfered the relevant files from the catalog folder. I am now doing stop 1 in the file changes which is to find in includes/template_top.php: <meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>"> <title><?php echo TITLE; ?></title> change to: <?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 ***/ ?> my problem is that I do not have that code written as above, I have similar code which is: <meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>" /> <title><?php echo tep_output_string_protected($oscTemplate->getTitle()); ?></title> I have not amended includes/template_top.php for any other contribution so can you advise on what is happening here? The instructions are incorrect. The original code you have is correct for 2.3 and should be replaced with those from the instructions. 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...
adhwebcr Posted June 15, 2011 Share Posted June 15, 2011 No, that's not how it works. In page control for index.php, click on the category box if you want the category pages to use the entries in the database. Setting up the checkboxes is explained in one of the doc files that come with the contribution. Had a look and the products tickbox was already ticked for index.php and product_info.php but was still not showing. I've uninstalled and reinstalled it but still no difference. If i put in a default tag it shows it but none of the ones from the database are coming through. I now have this on the test: Title and Meta Tag results for index.php explain English From Site: Title -> Meta Description -> Meta Keywords -> From Settings: Title -> Replace me in Page Control under index.php Meta Description -> Replace me in Page Control under index.php Meta Keywords -> Replace me in Page Control under index.php Results of scan: index.php is missing Header Tags code or it is not installed correctly. Verify that Fill Tags has been ran and that the root checkbox or the default checkboxes have been checked in Page Control. Fill tags have been run and i can see the database has been filled out and the root, product and category checkbox's are ticked. Which files deals with getting the results from the database? Quote Link to comment Share on other sites More sharing options...
offie Posted June 15, 2011 Share Posted June 15, 2011 The instructions are incorrect. The original code you have is correct for 2.3 and should be replaced with those from the instructions. Thanks for your super fast reply. Michael Quote Link to comment Share on other sites More sharing options...
yansfung Posted June 15, 2011 Share Posted June 15, 2011 Thanks Jack for your reply! It seems you got "big head" that many issues approach you. I am going to try with your suggestion later. It is a very good add-on! Cheers! I'm sorry but I don't understand the question. But - - in the title or tags means you have some option enabled but don't have data entered for it. Quote YaNotCook !! Link to comment Share on other sites More sharing options...
adhwebcr Posted June 15, 2011 Share Posted June 15, 2011 No, that's not how it works. In page control for index.php, click on the category box if you want the category pages to use the entries in the database. Setting up the checkboxes is explained in one of the doc files that come with the contribution. Hi Jack, On further investigation it looks like there was a conflict with a SEO URLS's add-on that had been installed, can you recommend a SEO URL module that works with your module? Quote Link to comment Share on other sites More sharing options...
Jack_mcs Posted June 15, 2011 Author Share Posted June 15, 2011 Hi Jack, On further investigation it looks like there was a conflict with a SEO URLS's add-on that had been installed, can you recommend a SEO URL module that works with your module? I recommend Ultimate SEO V2.2.d. It is 100% compatible with all of the SEO contributions you will need in your shop to provide the best results. See my signature. 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...
adhwebcr Posted June 15, 2011 Share Posted June 15, 2011 I recommend Ultimate SEO V2.2.d. It is 100% compatible with all of the SEO contributions you will need in your shop to provide the best results. See my signature. Looking at this i realised i had already tried that one but it didn't work so i went to Ultimate Seo Urls 5 PRO which does work, but seems to interfer with this module. I'll look at it again and see if i can take 5 off and install 2.2d again. Quote Link to comment Share on other sites More sharing options...
Jack_mcs Posted June 15, 2011 Author Share Posted June 15, 2011 Looking at this i realised i had already tried that one but it didn't work so i went to Ultimate Seo Urls 5 PRO which does work, but seems to interfer with this module. I'll look at it again and see if i can take 5 off and install 2.2d again. Ultimate SEO V2.2d works in any shop so I can't imagine what problem you had. You can get SEO 5 to work but it requires a setting change, as I recall. 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...
Guest Posted June 16, 2011 Share Posted June 16, 2011 ... I am installing header tags seo on osc V2.3.1. ... Any hints? I am about to install on oscV2.3.1 too Quote Link to comment Share on other sites More sharing options...
adhwebcr Posted June 16, 2011 Share Posted June 16, 2011 Ultimate SEO V2.2d works in any shop so I can't imagine what problem you had. You can get SEO 5 to work but it requires a setting change, as I recall. Don't suppose you can remember what that setting charge is do you? Quote Link to comment Share on other sites More sharing options...
rosiee007 Posted June 17, 2011 Share Posted June 17, 2011 Hi Jack, Thanks for the great work you are doing here. I’m having a few problems in getting the module to work. I have installed it on 2 sites: 1. http://www.sexmedicinonline (osCommerce Online Merchant v2.3 and HeaderTags_SEO_V_3.2.5) 2. http://www.yourshaver.dk (osCommerce 2.2-MS2 and HeaderTags_SEO_V_3.1.8) When I installed Header Tags SEO to both sites, I got "Replace me in Page Control under index.php," on home page, then I completed all the steps as given in the install instructions. The problem is that unique title tags and meta tags do not display on the category pages and product pages. Both sites are multilingual. If you check the Danish product pages like at http://www.yourshaver.dk/gillette-mach3-p-29.html?language=da you will see the title tag there, but if you click on the English version, nothing comes up (and this Danish title is not the one which I added through the admin panel, it is just the product name). The category pages show nothing at all for any language: http://www.yourshaver.dk/gillette-mach3-turbo-c-22.html?language=en For the first site, if you go to the Danish product pages at http://www.sexmedicinonline.com/viagra-p-4.html?language=da nothing comes in the title, but if you go to the English version of this site http://www.sexmedicinonline.com/viagra-tabs-p-4.html?language=en the product name shows in the title, but nothing comes up for the other 3 languages. Again, the title which shows on English version is not the unique title which was added through the admin panel for these product pages. This site has no category page. I think I’m doing the same mistake on both sites, that’s why they are both giving me similar problems. Please help. Quote Link to comment Share on other sites More sharing options...
Jack_mcs Posted June 17, 2011 Author Share Posted June 17, 2011 Hi Jack, Thanks for the great work you are doing here. I’m having a few problems in getting the module to work. I have installed it on 2 sites: 1. http://www.sexmedicinonline (osCommerce Online Merchant v2.3 and HeaderTags_SEO_V_3.2.5) 2. http://www.yourshaver.dk (osCommerce 2.2-MS2 and HeaderTags_SEO_V_3.1.8) When I installed Header Tags SEO to both sites, I got "Replace me in Page Control under index.php," on home page, then I completed all the steps as given in the install instructions. I think I’m doing the same mistake on both sites, that’s why they are both giving me similar problems. Did you run fill tags? The test routine? Click the category box in page control for index.php? 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...
rosiee007 Posted June 17, 2011 Share Posted June 17, 2011 (edited) Did you run fill tags? The test routine? Click the category box in page control for index.php? For the shaving site, Test run was giving a Database/File Mismatch Error While updating the file includes/header_tags.php I ran into the permissions problem, so I changed the permissions to 777 as you mentioned earlier in this thread. Now when I run Add Missing Pages, nothing shows on the admin panel page under Page Control ‘Add Missing Pages’. My apologies if I am not doing the right thing. EDIT: Please ignore my message above, I am adding the missing pages through PHPMyAdmin.. will get back again if there is still a problem. Thanks for your help Jack. Edited June 17, 2011 by rosiee007 Quote Link to comment Share on other sites More sharing options...
Jack_mcs Posted June 17, 2011 Author Share Posted June 17, 2011 For the shaving site, Test run was giving a Database/File Mismatch Error While updating the file includes/header_tags.php I ran into the permissions problem, so I changed the permissions to 777 as you mentioned earlier in this thread. Now when I run Add Missing Pages, nothing shows on the admin panel page under Page Control ‘Add Missing Pages’. My apologies if I am not doing the right thing. EDIT: Please ignore my message above, I am adding the missing pages through PHPMyAdmin.. will get back again if there is still a problem. Thanks for your help Jack. To be clear, I don't think I ever said to set permissions to 777. They should be set to whatever settings works for your images directory, which may be 777. Also, there's no need to make changes via phpmyadmin. Just replace the includes/header_tags.php file and go to page control. Unless you changed the setting for adding new pages, it will add them as needed. 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...
rosiee007 Posted June 17, 2011 Share Posted June 17, 2011 To be clear, I don't think I ever said to set permissions to 777. They should be set to whatever settings works for your images directory, which may be 777. Also, there's no need to make changes via phpmyadmin. Just replace the includes/header_tags.php file and go to page control. Unless you changed the setting for adding new pages, it will add them as needed. Jack!! :) The Title tags are now showing on the category and product pages.. I did it for the shaving site first: http://www.yourshaver.dk/gillette-power-c-27.html I corrected the error showing in Test run and then checked the category and product box in page control for index.php and they started to work!! :) Will do the same for the other site now. Thanks for all your help. I'll let you know if there is any other problem. Quote Link to comment Share on other sites More sharing options...
Ptothe2 Posted June 20, 2011 Share Posted June 20, 2011 Hello! I'm desperately trying to get this to work, but I get this error when I try to install it: 060 - Duplicate column name 'categories_htc_title_tag' ALTER TABLE categories_description ADD categories_htc_title_tag VARCHAR(80) NULL; [TEP STOP] And get this if I try to uninstall it: 1091 - Can't DROP 'products_head_title_tag'; check that column/key exists ALTER TABLE products_description DROP products_head_title_tag [TEP STOP] Any ideas on what I can try? Quote Link to comment Share on other sites More sharing options...
Jack_mcs Posted June 20, 2011 Author Share Posted June 20, 2011 And get this if I try to uninstall it: 1091 - Can't DROP 'products_head_title_tag'; check that column/key exists ALTER TABLE products_description DROP products_head_title_tag [TEP STOP] Any ideas on what I can try? Try using the headertags_seo_install and uninstall files. Run the uninstall first. It's fine if it gets an error. Then run the install file. 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...
Ptothe2 Posted June 20, 2011 Share Posted June 20, 2011 (edited) Yeah, unfortunately I get the errors no matter what. I use the uninstall.php file and then run the install.php file. After I do the install, i get redirected to the site with no CSS styling. I then refresh and I get the error still, no success message: 1060 - Duplicate column name 'categories_htc_title_tag' ALTER TABLE categories_description ADD categories_htc_title_tag VARCHAR(80) NULL; [TEP STOP] Edited June 20, 2011 by Ptothe2 Quote Link to comment Share on other sites More sharing options...
Jack_mcs Posted June 20, 2011 Author Share Posted June 20, 2011 Yeah, unfortunately I get the errors no matter what. I use the uninstall.php file and then run the install.php file. After I do the install, i get redirected to the site with no CSS styling. I then refresh and I get the error still, no success message: 1060 - Duplicate column name 'categories_htc_title_tag' ALTER TABLE categories_description ADD categories_htc_title_tag VARCHAR(80) NULL; [TEP STOP] Run the uninstall. Run the install. STOP. There's no need to refresh. Click on your home link if you want to get to the home page. 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...
rosiee007 Posted June 20, 2011 Share Posted June 20, 2011 Hi Jack, I’m back again, this time for the other site. I followed the steps which I followed before for yourshaver.dk but I cannot get the Title tags to display on sexmedicinonline.com When I run Test, I get the following: Test Results languages in the Header Tags table are: 1 ( English ). languages in the Header Tags table are: 2 ( Danish ). languages in the Header Tags table are: 3 ( German ). languages in the Header Tags table are: 4 ( Swedish ). I have a fifth language too, Norwegian which has 5 as its ID, but it is not showing on the Test page. If I check the site, I can see the Title tags for English language on all the products, but I cannot see them on the other languages. Thanks for your time. Quote Link to comment Share on other sites More sharing options...
Ptothe2 Posted June 20, 2011 Share Posted June 20, 2011 Thanks for your quick replies! Not getting any success messages, so that's what is throwing me off. I'll try again without a refresh. I should see something added to the admin panel if it worked, right? Quote Link to comment Share on other sites More sharing options...
Jack_mcs Posted June 20, 2011 Author Share Posted June 20, 2011 A new version has been uploaded with the following changes. - Added cache handling code to add a pseudo page code - Added missing stylesheet.css file to the 2.3 files - Changed code in includes/functions/header_tags.php to catch an occassional error - Changed code in admin/categories.php for fckeditor fix as supplied by member goring_gap - Changed names in includes/boxes/headertags.php (pre 2.3 only) since they were causing conflicts with some shops - Changed headertags_seo_install.php so that languages are properly handled on installation - Corrected the install instructions for changes to the manufacturers file - Fixed code in fill tags to handle languages properly - Removed duplicate header tags files from the shop-specific catalog directories - Updated admin/categories.php and admin/includes/languages/english/categories.php from 2.3 to 2.3.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 June 20, 2011 Author Share Posted June 20, 2011 rosiee007 and Ptothe2: Please download the latest version and use the headertags_seo_install.php file from it. The previous sql files would not handle languages correctly. This may not fix the problems you are having but it will eliminate one of the possibilities. 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...
Ptothe2 Posted June 21, 2011 Share Posted June 21, 2011 (edited) Thanks Jack, I really wish I could say that the update fixed my problem, but unfortunately I can't! I just don't get it. If it worked, I should be able to see it in the admin panel, right? I don't get any success message. There's nothing about Header Tags SEO in the admin panel after I run the install.php file. Well crap! Should I try to import the sql file instead of using the php file? Would that make a difference? Edited June 21, 2011 by Ptothe2 Quote Link to comment Share on other sites More sharing options...
Jack_mcs Posted June 21, 2011 Author Share Posted June 21, 2011 Thanks Jack, I really wish I could say that the update fixed my problem, but unfortunately I can't! I just don't get it. If it worked, I should be able to see it in the admin panel, right? I don't get any success message. There's nothing about Header Tags SEO in the admin panel after I run the install.php file. Well crap! Should I try to import the sql file instead of using the php file? Would that make a difference? No, the install file just makes the database changes. You have to change teh files for it to show in admin. 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...
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.