Spiceupyour 1 Posted June 16, 2014 (edited) Thanks for every thing you guys!! This is a great Free Contribution thanks to jack. I will like to share some info that was not clear or missing in the instruction's for others to take advantage off 1. you have to under Admin > Configuration > Header Tags SEO > Find, Displays the page title at the very top of the page and turn it off {false] this will solve your problem of duplicate title and more. 2. if you are using this contribution with the latest version of Oscommerce 2.3.4 that you have to make a small change to one of the new files before uploading. Catalog\includes\modules > [New files] File name header_tags_social_bookmarks.php Find Line 69 $url = '<a rel="nofollow" target="_blank" href="' . $url . '&title=' . $TITLE . '"><img style="vertical-align:middle;display:inline;border-style:none" title="' . ucfirst($db['groupname']) . '" alt="' . ucfirst($db['groupname']) . '" src="' . DIR_WS_IMAGES . 'socialbookmarks/' . $db['groupname'] .'-'.$db['data'] . '.png' . '" width="'.$width.'" height="'.$height.'" /></a>'; replace with $url = '<a rel="nofollow" target="_blank" href="' . $url . '&title=' . $TITLE . '"><img style="vertical-align:middle;display:inline;border-style:none" title="' . ucfirst($db['groupname']) . '" alt="' . ucfirst($db['groupname']) . '" src="' . DIR_WS_IMAGES . 'social_bookmarks/' . $db['groupname'] .'-'.$db['data'] . '.png' . '" width="'.$width.'" height="'.$height.'" /></a>'; this this because the directory name for social bookmarks has change from Catalog\includes\Images\socialbookmarks to Catalog\includes\Images\social_bookmarks [ _ has been added] Edited June 16, 2014 by Spiceupyour Share this post Link to post Share on other sites
Jack_mcs 1,020 Posted June 16, 2014 @@Spiceupyour 1) - That is an option and doesn't cause "duplicate title and more," though I'm not sure what more means. If you don't want the text displayed at the top of the page, then turn the option off. 2 - Header Tags SEO uses the directory named socialbookmarks. The change you made broke your installation. Support Links: Need Help? See this thread and provide the information requested. Is your version of osC up to date? You'll find the latest osC version (the community-supported responsive version) here. How to Upgrade to the latest version Recommended SEO Addons Share this post Link to post Share on other sites
Spiceupyour 1 Posted June 16, 2014 (edited) I am sorry I did not mean to offend you in any way, I had to change the directory name socialbookmarks to directory name social_bookmarks, because this was the default name in my new Fresh install of oscommerce V 2.3.4. I was just trying to help the next guy that add your contribution to V2.3.4, once again I am sorry if you took offence Edited June 16, 2014 by Spiceupyour Share this post Link to post Share on other sites
Jack_mcs 1,020 Posted June 16, 2014 No offense taken at all. I'm sorry if my reply implied that. The name social_bookmarks is what oscommerce uses for the name of the social icons while socialbookmarks is what Header Tags SEO uses. You can change the name in the code if you like but it is not necessary. Just be sure to upload the images to the correct location, whichever you decide to use. But doing it your way can cause problems with future releases, or at least more work for you, so I don't suggest making that change. Support Links: Need Help? See this thread and provide the information requested. Is your version of osC up to date? You'll find the latest osC version (the community-supported responsive version) here. How to Upgrade to the latest version Recommended SEO Addons Share this post Link to post Share on other sites
mr_absinthe 0 Posted June 16, 2014 Hi Jack, can you please tell me what exactly should Header Tags Category Title Alt do? I was kind of expecting it to change the name of category displayed on product_info - category page, similar to Title Tag - Alternate on the product page. However despite the fact that I can see categories_htc_title_tag_alt entry in the database, I don't see that code anywhere being entered or altered on any of the edited pages... apart from db_query. Can you please point me the right direction? o:) Absinthe Original Liquor Store Share this post Link to post Share on other sites
Jack_mcs 1,020 Posted June 16, 2014 @mr_absinthe The category title alt is the title used on the category page, if it is set. Support Links: Need Help? See this thread and provide the information requested. Is your version of osC up to date? You'll find the latest osC version (the community-supported responsive version) here. How to Upgrade to the latest version Recommended SEO Addons Share this post Link to post Share on other sites
mr_absinthe 0 Posted June 17, 2014 Even if it is set, it doesn't do anything... It still displays category name I'm afraid. Absinthe Original Liquor Store Share this post Link to post Share on other sites
Spiceupyour 1 Posted June 17, 2014 No offense taken at all. I'm sorry if my reply implied that. The name social_bookmarks is what oscommerce uses for the name of the social icons while socialbookmarks is what Header Tags SEO uses. You can change the name in the code if you like but it is not necessary. Just be sure to upload the images to the correct location, whichever you decide to use. But doing it your way can cause problems with future releases, or at least more work for you, so I don't suggest making that change. You are right again, my mistake that I uploaded the pics to the existing folder, i should have just uploaded the whole folder included in your package to images directory, I told you I am new at this but learning something new everyday :) Share this post Link to post Share on other sites
Jack_mcs 1,020 Posted June 17, 2014 @mr_absinthe The category title alt is for the title on the category page. Your first post said, "...name of category displayed on product_info..." which is not what it is for. Are you sure you are looking at the category page and not the product page as you stated? Support Links: Need Help? See this thread and provide the information requested. Is your version of osC up to date? You'll find the latest osC version (the community-supported responsive version) here. How to Upgrade to the latest version Recommended SEO Addons Share this post Link to post Share on other sites
mr_absinthe 0 Posted June 17, 2014 I believe so... is it the category page on the attached image? If it is, the arrow shows the place where the category title alt should be? Absinthe Original Liquor Store Share this post Link to post Share on other sites
Jack_mcs 1,020 Posted June 17, 2014 Yes, that's correct. If you have edited that category and have text in the alt box, then it should display on the page. This assumes you have enabled the category check box in Page Control for index.php and have made the changes to the index.php file. Does the web browser title for that page show what you have set in admin? Support Links: Need Help? See this thread and provide the information requested. Is your version of osC up to date? You'll find the latest osC version (the community-supported responsive version) here. How to Upgrade to the latest version Recommended SEO Addons Share this post Link to post Share on other sites
mr_absinthe 0 Posted June 18, 2014 This is what I have done: 1/ enabled the category check box in Page Control for index.php (Include: Category: checked 1) + I have enabled Product, NO Manufacturer, Root or Model 2/ made all the changes to the index.php file (but didn't see categories_htc_title_tag_alt anywhere in the code if that matters 3/ entered text under Header Tags Category Title Alt for English language 4/ cleared Header Tags cache 5/ browser shows Header Tags Category Title just fine 6/ page shows category Category Name Absinthe Original Liquor Store Share this post Link to post Share on other sites
Jack_mcs 1,020 Posted June 18, 2014 The alt tag for the categories is loaded in the index.php file. Please try uploading the one in the package and see if it works. You can rename it so it doesn't affect your shop. Support Links: Need Help? See this thread and provide the information requested. Is your version of osC up to date? You'll find the latest osC version (the community-supported responsive version) here. How to Upgrade to the latest version Recommended SEO Addons Share this post Link to post Share on other sites
mr_absinthe 0 Posted June 18, 2014 OK, the alt tag for the categories is loading fine when I use the index.php from the package... now I need to find the place in my heavily edited index.php file where the code might be missing or incorrectly edited. Can you please point me? Absinthe Original Liquor Store Share this post Link to post Share on other sites
Jack_mcs 1,020 Posted June 18, 2014 Just search the working file for _alt. Support Links: Need Help? See this thread and provide the information requested. Is your version of osC up to date? You'll find the latest osC version (the community-supported responsive version) here. How to Upgrade to the latest version Recommended SEO Addons Share this post Link to post Share on other sites
mr_absinthe 0 Posted June 18, 2014 Thank you Jack, it looks like I've missed one part of code - I've actually kept old bit of code from controller there and didn't noticed that it has changed. It all seems to be working fine now. Great job you've done with these addons! Absinthe Original Liquor Store Share this post Link to post Share on other sites
Tom14 0 Posted June 18, 2014 Hi Jack. As I stated earlier I have a litte problem in the admin section. I have now identified the problem in the header_tags_fill_tags because I got everytime the message: No products has been filled. When I use the file from V3.3.0 where we have both languages (All and the native one..in this case German) I can fill only the tags when I dot the All language. By German nothing happens. As I upgraded to V3.3.2 I have only the choice for German and of course nothing happens when I dot German as before. I think there anything wrong with the language ID? Or what is your assumption and do have you a solution for me? Br Thomas Share this post Link to post Share on other sites
Jack_mcs 1,020 Posted June 18, 2014 Great job you've done with these addons! Thank you. I appreciate the thought. :) Support Links: Need Help? See this thread and provide the information requested. Is your version of osC up to date? You'll find the latest osC version (the community-supported responsive version) here. How to Upgrade to the latest version Recommended SEO Addons Share this post Link to post Share on other sites
Jack_mcs 1,020 Posted June 18, 2014 @@Tom14 Try running the test routine to see if it shows a problem with the languages. Support Links: Need Help? See this thread and provide the information requested. Is your version of osC up to date? You'll find the latest osC version (the community-supported responsive version) here. How to Upgrade to the latest version Recommended SEO Addons Share this post Link to post Share on other sites
Tom14 0 Posted June 19, 2014 Jack, I think there is no problem. When I run the test routine e. g. the following information is displayed: languages in the Header Tags table are: 2 ( German ). Share this post Link to post Share on other sites
Jack_mcs 1,020 Posted June 19, 2014 @@Tom14 In the admin/header_tags_fill_tags.php file, find if ($langCnt == 1) $languageID = $languages[0]['id']; and change it to if ($langCnt == 1) $languageID = $languages_id; Please let me know if that fixes it. Support Links: Need Help? See this thread and provide the information requested. Is your version of osC up to date? You'll find the latest osC version (the community-supported responsive version) here. How to Upgrade to the latest version Recommended SEO Addons Share this post Link to post Share on other sites
Tom14 0 Posted June 20, 2014 Jack, I changed the line but it is as before. None of these tags are filled. Share this post Link to post Share on other sites
Jack_mcs 1,020 Posted June 20, 2014 Try removing that whole line (the one I said to change). Support Links: Need Help? See this thread and provide the information requested. Is your version of osC up to date? You'll find the latest osC version (the community-supported responsive version) here. How to Upgrade to the latest version Recommended SEO Addons Share this post Link to post Share on other sites
Tom14 0 Posted June 20, 2014 I removed the line just as you said. It's still the same... :( Share this post Link to post Share on other sites
Jack_mcs 1,020 Posted June 20, 2014 Then I can't do much more in this this support thread. It would take hands-on troubleshooting to see what the problem is. You can use the previous fill tags file and it will work. You lose a few improvements to that file doing it that way but nothing of significant importance. Support Links: Need Help? See this thread and provide the information requested. Is your version of osC up to date? You'll find the latest osC version (the community-supported responsive version) here. How to Upgrade to the latest version Recommended SEO Addons Share this post Link to post Share on other sites