Jack_mcs Posted April 8, 2015 Author Share Posted April 8, 2015 It means there is a mistake with the change you made to the includes/modules/product_listing.php file. With so many variations of that file, it is difficult to say exactly what it is. Please post the file, with the changes in it, here and I will take a look. Quote 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 Link to comment Share on other sites More sharing options...
revamp Posted April 18, 2015 Share Posted April 18, 2015 Hello Jack, When I started with osCommerce 2.2 I had installed your addon and I love it. Now I have osCommerce 2.3.4 Bootstrap from Gary Burton and after I have installed your Header Tags SEO I get a warning when I hit Page Control: Page not added - file name is invalid - opensearch.php exclude Nothing happens when I hit exclude ? I'm not sure what to do: delete the file from Header Tags or? Quote Link to comment Share on other sites More sharing options...
Jack_mcs Posted April 19, 2015 Author Share Posted April 19, 2015 That just means the file is not setup to work with Header Tags SEO. Sometimes a file should be but not that one so nothing needs to be done with it. Clicking on the exclude link should tell Header Tags to ignore it and remove it from the display in Page Control. The only reason I can think that that may not work is if your server doesn't allow automatic creation of files. You can try creating a file named headertags_seo_excludes.txt and place it into the admin/includes/ directory. Then try using the exclude link. If it works, that is what it was. If not, I don't know what it might be. I did test it here in a BS shop and it worked as expected. Quote 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 Link to comment Share on other sites More sharing options...
revamp Posted April 19, 2015 Share Posted April 19, 2015 I have made a header_tags_seo_excludes.txt (I have put in opensearch.php) but it didn't help...I think I will reïnstall the admin part. At a closer look to headertags_seo_exclude.php I see that the name must be headertags_seo_excludes.txt...and that did the trick. Thanks Jack. Quote Link to comment Share on other sites More sharing options...
revamp Posted April 20, 2015 Share Posted April 20, 2015 Hello Jack, I discovered a bug/fault in product-info.php: 118 or about: you have: <div id="piGal" data-imgcount="<?php echo $photoset_layout; ?>"> It should be: <div class="piGal pull-right" data-imgcount="<?php echo $photoset_layout; ?>"> Also in include/modules/comntent/header/templates: logo .php: You have: 3: <div><div id="storeLogo"> it should be: <div id="storeLogo"> Which version of oscommerce bootstrap you used? I use this: https://github.com/gburton/Responsive-osCommerce Quote Link to comment Share on other sites More sharing options...
revamp Posted April 20, 2015 Share Posted April 20, 2015 Also, question in regard of Gary, is it possible to put this addon in a module, so no core changes needed? Quote Link to comment Share on other sites More sharing options...
revamp Posted April 20, 2015 Share Posted April 20, 2015 I forgot to mention that you seem to have a different prodict-info.php than the bootstrap version... 117 or about: <div id="piGal" data-imgcount="<?php echo $photoset_layout; ?>"> Should be: <div class="piGal pull-right" data-imgcount="<?php echo $photoset_layout; ?>"> Quote Link to comment Share on other sites More sharing options...
Jack_mcs Posted April 21, 2015 Author Share Posted April 21, 2015 There's no way for me to provide current pages for every version that comes along. Well, there is if I want to just work on this addon and nothing else. Since the BS version isn't really a supported oscommerce version and can change daily, I just don't have the time to try to keep up with it. Hopefully posts like yours will other others with their installations. Quote 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 Link to comment Share on other sites More sharing options...
Nepto Posted April 22, 2015 Share Posted April 22, 2015 (edited) Hi, Does anyone have an idea on what might be causing a "404 Not found"? "The requested URL /test-category-c-30.html was not found on this server." "The requested URL /test-product-p-43.html was not found on this server." Running the addon in admin seems to work perfectly fine and no errors are thrown so I'm quite confused. Thanks. ////////////////////////////// EDIT. Sorry for taking up your time. Looks like there were some mistakes in my htaccess file. Edited April 22, 2015 by Nepto Quote Link to comment Share on other sites More sharing options...
giulmas Posted April 27, 2015 Share Posted April 27, 2015 Hi, I would add HeaderTags SEO V. 3.3.3.1 in an existing site, to improve its SEO. I'm following the useful guide step by step, but I've found an instruction that I can't follow without php mistakes! :wacko: This is the passage I'm talking about: in the product_reviews_info.php (...) FIND (around line 47): require(DIR_WS_INCLUDES . 'template_top.php');ADD BENEATH:<?php /*** Begin Header Tags SEO ***/ <a name="<?php echo $header_tags_array['title']; ?>"></a> $review['products_name'] = $header_tags_array['title_alt']; if (tep_not_null($review['products_model'])) { $products_name = $review['products_name'] . '<br><span class="smallText">[' . $review['products_model'] . ']</span>'; } else { $products_name = $review['products_name']; } /*** End Header Tags SEO ***/<?php /*** End Header Tags SEO ***/ ?> When I try to add beneath with copy and paste method I get many php errors... Could you help me, please? thanks, cheers Quote Link to comment Share on other sites More sharing options...
Jack_mcs Posted April 27, 2015 Author Share Posted April 27, 2015 There is an included file already edited. It may not match your version so you may not be able to use it directly but you can use a program like Winmerge to compare the two. Quote 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 Link to comment Share on other sites More sharing options...
giulmas Posted April 27, 2015 Share Posted April 27, 2015 Hi, thanks for your answer: I'm afraid there are issues because of the theme installed (dresscode)... I don't know how to edit some files already edited in many different ways compared to the original OSC... :( Quote Link to comment Share on other sites More sharing options...
Jack_mcs Posted April 27, 2015 Author Share Posted April 27, 2015 Yes, that is a problem with templates. Not just with this addon but any that edits the shops files. There's no way around that in a support thread though due to the vast number of possibilities. If you can't figure it out and still want this addon installed, you will need to pay someone to do it. Quote 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 Link to comment Share on other sites More sharing options...
thiartj Posted May 5, 2015 Share Posted May 5, 2015 Good day can anyone please assist with the error below ? It is on a stock installed OSCOmmerce 2.3.4 Installation after the Header Tags SEO V 3.3.3 was installed. I did doublecheck sections to be modified 3 times to ensure no errors while changing the product_reviews_info.php, I removed the path to file in copy below. Parse error: syntax error, unexpected '<' in product_reviews_info.php on line 45 This is where the code below has been inserted after require(DIR_WS_INCLUDES . 'template_top.php'); and <?php /*** Begin Header Tags SEO ***/ is on line 45 ADD BENEATH: <?php /*** Begin Header Tags SEO ***/ <a name="<?php echo $header_tags_array['title']; ?>"></a> $review['products_name'] = $header_tags_array['title_alt']; if (tep_not_null($review['products_model'])) { $products_name = $review['products_name'] . '<br><span class="smallText">[' . $review['products_model'] . ']</span>'; } else { $products_name = $review['products_name']; } /*** End Header Tags SEO ***/ <?php /*** End Header Tags SEO ***/ ?> Quote Link to comment Share on other sites More sharing options...
Jack_mcs Posted May 5, 2015 Author Share Posted May 5, 2015 It goes after require(DIR_WS_INCLUDES . 'template_top.php'); ?> It looks like you may have inserted it in between the two lines. Quote 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 Link to comment Share on other sites More sharing options...
toyzonline Posted May 13, 2015 Share Posted May 13, 2015 So after having this add-on installed for a while and finally deciding to make full use of it I have just realised something: When we enter something into the 'Product Page Sub Text' field it actually appears twice on the bottom of the products page. Is this meant to happen? I only ask as we were going to utilise this field to promote our newsletter for example: http://www.raunchyrags.co.uk/shop/function-pinks-p-29.html (not safe for work) Which if this is an error as we believe leads to the next issue: Are we able to format this text as standard or re we best just sticking to using an HTML input into the text field of the add-on? Cheers Amigos :thumbsup: (he says trying to speak cool today...lol) Quote Complete Newbie On The Learn - Not A Programmer But Learning As I Go Link to comment Share on other sites More sharing options...
Jack_mcs Posted May 13, 2015 Author Share Posted May 13, 2015 The text should only appear once. Please double check the code on the product page to make sure you didn't insert it twice. If you search for $product_info['products_head_sub_text'], it should only show up once. You can treat it as any text field in the shop with regards to adding html. But if the html is common, like always making the text red, then I would think making the one code change to the product_info file would be easier than in each description. Quote 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 Link to comment Share on other sites More sharing options...
toyzonline Posted May 13, 2015 Share Posted May 13, 2015 The text should only appear once. Please double check the code on the product page to make sure you didn't insert it twice. If you search for $product_info['products_head_sub_text'], it should only show up once. You can treat it as any text field in the shop with regards to adding html. But if the html is common, like always making the text red, then I would think making the one code change to the product_info file would be easier than in each description. I have checked the product_info.php and found that code 4 times in total but only as per the install instructions: FIND (around line 200) <?php echo tep_draw_button(IMAGE_BUTTON_REVIEWS . (($reviews['count'] > 0) ? ' (' . $reviews['count'] . ')' : ''), 'comment', tep_href_link(FILENAME_PRODUCT_REVIEWS, tep_get_all_get_params())); ?> </div> ADD BENEATH: <!--- BEGIN Header Tags SEO SUB TEXT --> <?php if (tep_not_null($product_info['products_head_sub_text'])) { echo '<div class="contentText" style="margin-top:5px;">' . $product_info['products_head_sub_text'] . '</div>'; } ?> <!--- END Header Tags SUB TEXT --> ============================================= FIND (around line 214) include(DIR_WS_MODULES . FILENAME_ALSO_PURCHASED_PRODUCTS); } ?> ADD BENEATH: <?php /*** Begin Header Tags SEO ***/ if (tep_not_null($product_info['products_head_sub_text'])) { echo '<div class="hts_sub_text" style="padding:10px 0;">' . $product_info['products_head_sub_text'] . '</div>'; } if (HEADER_TAGS_DISPLAY_CURRENTLY_VIEWING == 'true') { echo '<div id="hts_viewing">' .TEXT_VIEWING; $header_tags_array['title'] = (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 '</div>'; } if (HEADER_TAGS_DISPLAY_SOCIAL_BOOKMARKS == 'true') { echo '<div style="float:right; margin-top:5px; margin-right:4px;">'; include(DIR_WS_MODULES . 'header_tags_social_bookmarks.php'); echo '</div>'; } /*** End Header Tags SEO ***/ ?> So mine reads: <!--- BEGIN Header Tags SEO SUB TEXT --> <?php if (tep_not_null($product_info['products_head_sub_text'])) { echo '<div class="contentText" style="margin-top:5px;">' . $product_info['products_head_sub_text'] . '</div>'; } ?> <!--- END Header Tags SUB TEXT --> <?php if ((USE_CACHE == 'true') && empty($SID)) { echo tep_cache_also_purchased(3600); } else { include(DIR_WS_MODULES . FILENAME_ALSO_PURCHASED_PRODUCTS); } ?> <?php /*** Begin Header Tags SEO ***/ if (tep_not_null($product_info['products_head_sub_text'])) { echo '<div class="hts_sub_text" style="padding:10px 0;">' . $product_info['products_head_sub_text'] . '</div>'; } if (HEADER_TAGS_DISPLAY_CURRENTLY_VIEWING == 'true') { echo '<div id="hts_viewing">' .TEXT_VIEWING; $header_tags_array['title'] = (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 '</div>'; } if (HEADER_TAGS_DISPLAY_SOCIAL_BOOKMARKS == 'true') { echo '<div style="float:right; margin-top:5px; margin-right:4px;">'; include(DIR_WS_MODULES . 'header_tags_social_bookmarks.php'); echo '</div>'; } /*** End Header Tags SEO ***/ Quote Complete Newbie On The Learn - Not A Programmer But Learning As I Go Link to comment Share on other sites More sharing options...
Jack_mcs Posted May 13, 2015 Author Share Posted May 13, 2015 Yes, you are correct. The instructions are wrong. You will need to remove one of the following, depending upon where you want the sub text to appear. I apologize for the bother this caused. if (tep_not_null($product_info['products_head_sub_text'])) { echo '<div class="hts_sub_text" style="padding:10px 0;">' . $product_info['products_head_sub_text'] . '</div>'; } Quote 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 Link to comment Share on other sites More sharing options...
toyzonline Posted May 13, 2015 Share Posted May 13, 2015 Yes, you are correct. The instructions are wrong. You will need to remove one of the following, depending upon where you want the sub text to appear. I apologize for the bother this caused. if (tep_not_null($product_info['products_head_sub_text'])) { echo '<div class="hts_sub_text" style="padding:10px 0;">' . $product_info['products_head_sub_text'] . '</div>'; } Ok Jack I think it is time for you to either laugh at me or block me......... Just thinking about it and like I said I was using the sub text field to place a text image at the bottom of the page......but it was putting it twice at the bottom of the page, from the code below (which has been fixed) how would I get the second instance of the text back but at the top of the product info page above the product title? Also despite trying standard <center>, span alignment & <p> alignment I cant get the text centralised without the entire page going scew-wiff (if they are are words). Cheers & Sorry To Be A Pain Ricardo Quote Complete Newbie On The Learn - Not A Programmer But Learning As I Go Link to comment Share on other sites More sharing options...
Jack_mcs Posted May 13, 2015 Author Share Posted May 13, 2015 There's not a single answer for that since product_info files are not standard. But in the latest BS version, you would place the code I said to delete above this code <div class="page-header"> <h1 class="pull-right" itemprop="offers" itemscope itemtype="http://schema.org/Offer"><?php echo $products_price; ?></h1> <h1><?php echo $products_name; ?></h1> </div> I haven't tried it but that should get you closer to what you want. Quote 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 Link to comment Share on other sites More sharing options...
mr_absinthe Posted May 15, 2015 Share Posted May 15, 2015 (edited) Hi Jack, having some trouble in admin with pseudo pages... I have a page in root called featured_products.php that is missing tags. This page is not available in drop down in admin / Page Control. A have therefore followed instructions, ran Add Missing Pages, entered featured_products.php in the box, hit update and... nothing, that page did not appear...? Any idea please? Is there any simple (no files editing) way how to add individual page if Add Missing Pages is not helping? Edited May 15, 2015 by mr_absinthe Quote Absinthe Original Liquor Store Link to comment Share on other sites More sharing options...
mr_absinthe Posted May 15, 2015 Share Posted May 15, 2015 OK sorted, I was using wrong file that was not edited. I'm sorry, all is OK. :thumbsup: Quote Absinthe Original Liquor Store Link to comment Share on other sites More sharing options...
mr_absinthe Posted May 18, 2015 Share Posted May 18, 2015 Still, I'm unable to add a page.This page is not available in drop down in admin / Page Control. I have double checked that the page is correctly listed in filenames.php, it has correct code inserted for header tags and still, it will not show. Where else can I have aa look? It is affiliate_faq.php if that helps. Quote Absinthe Original Liquor Store Link to comment Share on other sites More sharing options...
Jack_mcs Posted May 18, 2015 Author Share Posted May 18, 2015 The pseudo page option is only for addons that use one file to handle multiple pages like Article Manager or Information Pages. For standard pages, like in the affiliate addon, you just have to insert the header tags code in the head section of the file if it is a pre-2.3 shop. Once the code is in the file, the page should show up in Page Control without you needing to do anything unless you turned the option to load automatically off. In that case clicking on add new pages will add it. Quote 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 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.