mokx2280 0 Posted June 3, 2013 I've been manually doing this but I came across a problem Step 19 from 3.2.6 to 3.2.7 says to FIND: <?php /*** Begin Header Tags SEO ***/ ?> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> <tr> <td class="smallText" align="center"><?php echo TEXT_VIEWING; ?> <?php echo '<a title="' . $header_tags_array['title'] . '" href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $product_info['products_id'], 'NONSSL') . '"/# ' . $header_tags_array['title'] . '">' . $header_tags_array['title']; ?></a></td> </tr> <?php /*** End Header Tags SEO ***/ ?> REPLACE WITH: <?php /*** Begin Header Tags SEO ***/ echo '<tr><td>' . tep_draw_separator('pixel_trans.gif', '100%', '10') . '</td></tr>'; if (tep_not_null($product_info['products_head_sub_text'])) { echo '<tr><td><table border="0" cellpadding="0"><tr><td class="main"><div style="padding: 10px; 10px;">' . $product_info['products_head_sub_text'] . '</div></td></tr></table></td></tr>'; echo '<tr><td>' . tep_draw_separator('pixel_trans.gif', '100%', '10') . '</td></tr>'; } if (HEADER_TAGS_DISPLAY_CURRENTLY_VIEWING == 'true') { echo '<tr><td>' . tep_draw_separator('pixel_trans.gif', '100%', '10') . '</td></tr>'; echo '<tr><td align="center"><table border="0" cellpadding="0"><tr><td class="smallText" align="center">' .TEXT_VIEWING . ' '; if (! tep_not_null($header_tags_array['title'])) $header_tags_array['title'] = $product_info['products_name']; echo '<a title="' . $header_tags_array['title'] . '" href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $product_info['products_id'], 'NONSSL') . '"/# ' . $header_tags_array['title'] . '">' . $header_tags_array['title'] . '</a>'; echo '</td></tr></table></td></tr>'; echo '<tr><td>' . tep_draw_separator('pixel_trans.gif', '100%', '10') . '</td></tr>'; } /*** End Header Tags SEO ***/ ?> but the code I found was <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> <tr> <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox"> <tr class="infoBoxContents"> <td><table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> <td align="right"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image_button('button_continue.gif', IMAGE_BUTTON_CONTINUE) . '</a>'; ?></td> <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> </tr> </table></td> </tr> </table></td> </tr> Can someone please help me figure out what code I should keep/ what code necessary. Please and thank you Share this post Link to post Share on other sites
Jack_mcs 1,139 Posted June 3, 2013 The update is saying to replace existing Header Tags SEO code with the new code. You can see the begin and end statements in the code block being replaced. The code block you posted doesn't have those begin and end statements so you've got the wrong block of code or that change was never installed. The better way to make the changes to the files is to use the latest version. Either compare your files with it using a compare program like Winmerge or by following the manual instructions. The update file is just for the database and may or may not work for your database since it only works with later versions. I think starting with 3.2.3 but it might be an earlier version. Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. Get the latest versions of my addons Recommended SEO Addons Share this post Link to post Share on other sites
yahalimu 43 Posted June 5, 2013 Hi, again don't know if this has been covered before. All working well now except I get no categories description unless it has products. i.e. When clicking the main category I have 5 sub-categories and no description. On the sub categories I get the description as it has products. If I enter a single product into a main category I do get the description. Is this normal behaviour or do I need to look at the install code? I really need a description on the main categories. Iain Share this post Link to post Share on other sites
Jack_mcs 1,139 Posted June 5, 2013 There's nothing in the code to prevent the descriptions from showing if the category doesn't have any products. Perhaps you have some other addon that is changing how the basic oscommerce code works? Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. Get the latest versions of my addons Recommended SEO Addons Share this post Link to post Share on other sites
yahalimu 43 Posted June 7, 2013 OK Thanks, I remember now I struggled to get it going as I have 2.3.3 and the code had moved all over the place. A 2.3 version is what I need probably but I'll battle on.. Share this post Link to post Share on other sites
Jack_mcs 1,139 Posted June 7, 2013 There shouldn't be any problems installing it in 2.3.3. I'm not aware of any differences that would cause problems and have installed it into a 2.3.3 shop. Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. Get the latest versions of my addons Recommended SEO Addons Share this post Link to post Share on other sites
yahalimu 43 Posted June 7, 2013 (edited) Aha, its the dynamic template system then. The Index has been split into 2 category files (categories & categories nested), I had assumed this the 2.3 structure but obviously not. Makes it more difficult but hey, never been beaten yet! Just takes more time to work the code out, sometimes MUCH more time lol. Thanks for your input, you must be, by now, the premier developer for OsCommerce, you seem to have written almost all my contributions! See you on GoogleBase forum.! Iain. Edited June 7, 2013 by yahalimu Share this post Link to post Share on other sites
Jack_mcs 1,139 Posted June 8, 2013 Ahh, OK. Yes, that is a template. I've seen a few shops like that. The code is the same, mostly, but you have to do it per file. I'm glad you find my addons useful. :) Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. Get the latest versions of my addons Recommended SEO Addons Share this post Link to post Share on other sites
yahalimu 43 Posted June 8, 2013 No Worries. I've narrowed down the culprit. echo '<h2 style="text-decoration:none;">' . $category['categories_htc_description'] . '</h2>'; isn't outputting because its not been populated. Before this I have $category_query = tep_db_query("select cd.categories_name, c.categories_image, cd.categories_htc_title_tag, cd.categories_htc_description 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 . "'"); but it obviously isn't the correct query. Share this post Link to post Share on other sites
yahalimu 43 Posted June 8, 2013 OK, I've sussed it, all sorted. Was missing the final $category = tep_db_fetch_array($category_query); stuck that in, seems to work ok. Apologies for the bandwidth. Share this post Link to post Share on other sites
surrfman 2 Posted June 11, 2013 Modified my header.php file to get the account, cart and checkout buttons up out of the breadcrumb and up into the upper left of the header, placing the search function in their former location. To do this required placing a .gif image with the phone number on the header, with a store_logo.png image on the left; gives the same appearance, but unless done this way, the functions would not float on top as desired. My store_logo.png measures 407 x 102 pixels, with the .gif image at 951 x 131 pixels. Problem is when the "header tags SEO" statement is in the file, it breaks the grid system. Have tried to change some of the specified positions and sizes, but no joy! Here is the current header.php file: <?php /* $Id$ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2010 osCommerce Released under the GNU General Public License */ if ($messageStack->size('header') > 0) { echo '<div class="grid_24">' . $messageStack->output('header') . '</div>'; } ?> <div id="header" class="grid_24"> <?php /*** Begin Header Tags SEO ***/ ?> <div> <div id="storeLogo"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image(DIR_WS_IMAGES . 'store_logo.png', (tep_not_null($header_tags_array['logo_text']) ? $header_tags_array['logo_text'] : STORE_NAME)) . '</a>'; ?></div> <?php if (HEADER_TAGS_DISPLAY_PAGE_TOP_TITLE == 'true') { ?> <div style="position:absolute; top:-5px; left:30%; color:#777; font-size:10px; text-align:center"><?php echo $header_tags_array['title']; ?></div> <?php } ?> </div> <?php /*** End Header Tags SEO ***/ ?> </div> <div id="storeLogo"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image(DIR_WS_IMAGES . 'store_logo.png', STORE_NAME) . '</a>'; ?></div> <div id="headerLongcuts"> <?php echo '<a class="headerNavigation" href="' . tep_href_link(FILENAME_SHOPPING_CART) . '"alt="" >'.($cart->count_contents() > 0 ? ' (' . $cart->count_contents() . ')' : '') . HEADER_TITLE_CART_CONTENTS . '</a> ' . '<a class="headerNavigation" href="' . tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL') . '" alt="">' . HEADER_TITLE_CHECKOUT . '</a> '; /*if (tep_session_is_registered('customer_id') && (!isset($HTTP_GET_VARS['guest']) && !isset($HTTP_POST_VARS['guest'])) && !$order->customer['is_dummy_account'])*/ { echo '<a class="headerNavigation" href="' . tep_href_link(FILENAME_ACCOUNT, '', 'SSL') . '"alt="">' . HEADER_TITLE_MY_ACCOUNT . '</a> ' ; } if (tep_session_is_registered('customer_id')) { echo '<a class="headerNavigation" href="' . tep_href_link(FILENAME_LOGOFF, '', 'SSL') . '"alt="" >' . HEADER_TITLE_LOGOFF . '</a> ' ; } ?> </div> <script type="text/javascript"> $("#headerShortcuts").buttonset(); </script> </div> <div class="grid_24 ui-widget infoBoxContainer"> <div class="ui-widget-header infoBoxHeading"><?php echo ' ' . $breadcrumb->trail(' » '); ?></div> </div> <div id="searchbox"> <?php echo tep_draw_form('search', tep_href_link(FILENAME_ADVANCED_SEARCH_RESULT, '', 'NONSSL', false), 'get') . tep_draw_hidden_field('search_in_description','1') . tep_draw_input_field('keywords', '', 'size="10" maxlength="100" style="width: ' . (140) . 'px"') . ' ' . tep_hide_session_id() .'<input type="submit" name="Submit" value="Search">' . '</form>'; ?> </div> <?php if (isset($HTTP_GET_VARS['error_message']) && tep_not_null($HTTP_GET_VARS['error_message'])) { ?> <table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr class="headerError"> <td class="headerError"><?php echo htmlspecialchars(stripslashes(urldecode($HTTP_GET_VARS['error_message']))); ?></td> </tr> </table> <?php } if (isset($HTTP_GET_VARS['info_message']) && tep_not_null($HTTP_GET_VARS['info_message'])) { ?> <table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr class="headerInfo"> <td class="headerInfo"><?php echo htmlspecialchars(stripslashes(urldecode($HTTP_GET_VARS['info_message']))); ?></td> </tr> </table> <?php } ?> Has to be something simple... I don't understand it? Appreciate any help possible, Timmy C Share this post Link to post Share on other sites
dhooper 1 Posted June 19, 2013 (edited) @@Jack_msc I don't know what I did (I've done quite a bit in the last couple of weeks) but I am now receiving this error when trying to access "Create Account" and "Login" Fatal error: Call to undefined function filename_information() in /home/essent8/public_html/includes/header_tags.php on line 499 Line 499 says if ($defaultTags['meta_noydir']) echo ' <meta name="slurp" content="noydir" >' . "\n"; This is one file I've never touched, so it must be referring to something else I've done. Edited June 19, 2013 by dhooper Diana Share this post Link to post Share on other sites
dhooper 1 Posted June 19, 2013 I found the problem! B) I had edited the "information.php" file and renamed the original one "information(original).php" Somehow, my editing software must have updated the header_tags file to reflect the new name instead of staying with the same filename. :D Diana Share this post Link to post Share on other sites
dhooper 1 Posted June 19, 2013 I'm going through and checking all the titles for pages on my site, but there are a few missing (basically, all the account and checkout files). Could you tell me what setting I am missing? I went to admin - header tags seo - page control - but the pages are not listed even after running Missing Pages I have Ultimate SEO Urls as well. I went to admin - configuration - seo urls - enable use Header Tags as name - true Diana Share this post Link to post Share on other sites
Jack_mcs 1,139 Posted June 19, 2013 The checkout, and other such, pages are blocked in the code. It doesn't serve any purpose for them to have special titles and tags since the search engines can't see them. Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. Get the latest versions of my addons Recommended SEO Addons Share this post Link to post Share on other sites
Gornik 0 Posted June 20, 2013 Hi, Jack. I'm trying to figure out how to set charset=UTF-8. I would like to change fault characters in the title. I use my local language. Any suggestion? Thanks, Regards Share this post Link to post Share on other sites
Gornik 0 Posted June 20, 2013 I solved the issue. Put title, kyewords... to index page. Regards, Matjaz Share this post Link to post Share on other sites
europaul 0 Posted June 20, 2013 (edited) Hello ! Im getting this errors in the module: Found Missing Tags: Categories table has 2 items with missing meta tag information. Permissions settings for the includes/header_tags.php file appear to be incorrect. Change to 775 Via ftp i changed to 775 but the error is still there :mellow: Any ideas ? TXS !!!! Edited June 20, 2013 by europaul Share this post Link to post Share on other sites
Jack_mcs 1,139 Posted June 20, 2013 For the first, click on the error and it will take you to the category edit page so you can see the problem. For the second, your server may not be setup to work with those permissions or it may not allow you to change the permissions via ftp. Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. Get the latest versions of my addons Recommended SEO Addons Share this post Link to post Share on other sites
shafa1827 0 Posted June 24, 2013 Hi, Your addon is just awesome. I had no problems installing. But i have transferred my meta tags and desc to the database and it shows in admin. how do i make changes so that it shows up in the catalog? Please help me! Share this post Link to post Share on other sites
Jack_mcs 1,139 Posted June 24, 2013 I'm glad to hear you like it. If the tag data is showing in admin and not on the shop side, then you've either made a mistake with the installation or the settings are not correct in Page Control for that page. You can try running the test routine to see if it detects any problems. You can also use the included files to help locate the problem. Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. Get the latest versions of my addons Recommended SEO Addons Share this post Link to post Share on other sites
shafa1827 0 Posted June 24, 2013 Hi, Thanks for the reply... The test routine do not detect any problem related to this. Furthermore, installation works. I installed the earlier version of this in my old site and backed up the database. I transferred the data from there to here. So, Can this be causing the problem? I am using osc 2.3.3 while my old shop was 2.2 Share this post Link to post Share on other sites
Jack_mcs 1,139 Posted June 24, 2013 The database changes are the same for either version of shop but there are differences between versions of Header Tags SEO so you need to be sure you've ran the update file with the reset options option. If it is a very old version you are copying, then manual changes will be needed, as described in the update files. Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. Get the latest versions of my addons Recommended SEO Addons Share this post Link to post Share on other sites
discxpress 54 Posted June 25, 2013 (edited) Hello Jack, I installed the Latest version for OSC version 2.3.3 and my CSS buttons are missing. I hope all controls to .css buttons are in the stylesheet.css. Please tell me what other files to check. Here's a page to look at:http://btownmedia.com/product_info.php?products_id=21 Thanks Edited June 25, 2013 by discxpress Share this post Link to post Share on other sites
♥joli1811 171 Posted June 25, 2013 Hi Lecarl, you seem to be missing these files <script type="text/javascript" src="ext/jquery/jquery-1.4.2.min.js"></script> <script type="text/javascript" src="ext/jquery/ui/jquery-ui-1.8.6.min.js"></script> To improve is to change; to be perfect is to change often. Share this post Link to post Share on other sites