restomusclecar Posted January 14, 2009 Share Posted January 14, 2009 (edited) Hi Ken Have you looked at Google Duplicate Content Manager and if so, do you have any recommendations for installing with Independent SEO Header Tags For Novices v4.00 and how to install it? Hello, I found this thread after an earlier post. Im a bit confused. Currently I have the full version installed and working great on the products pages and categories but in index.php or home or top the meta tags for content and description are "" everything else works great. can someone please help. I have tried to fix this with no luck. It seems it cannot find any data or something. url to site is www.restomusclecar.com Edited January 14, 2009 by restomusclecar Quote Link to comment Share on other sites More sharing options...
GemRock Posted January 14, 2009 Author Share Posted January 14, 2009 Have you download the revised installation file by following the link in my signature? and you must download the contribution by following the same link. Note also that the contribution itself does not have the installation instructins so you must download it separately. Sorry for the inconvenience. If you have done all above and done it correctly, then your home page should use the names of your categories to fill in the keywords tag, and some text, which you must change as you see fit, for the description tag. All failed, then post the first 50 lines or so of your index.php (anything before </head> tag) Ken Hello,I found this thread after an earlier post. Im a bit confused. Currently I have the full version installed and working great on the products pages and categories but in index.php or home or top the meta tags for content and description are "" everything else works great. can someone please help. I have tried to fix this with no luck. It seems it cannot find any data or something. url to site is www.restomusclecar.com Quote commercial support - unProtected channel, not to be confused with the forum with same name - open to everyone who need some professional help: either PM/email me, or go to my website (URL can be found in my profile). over 20 years of computer programming experience. Link to comment Share on other sites More sharing options...
GemRock Posted January 14, 2009 Author Share Posted January 14, 2009 Hi KenHave you looked at Google Duplicate Content Manager and if so, do you have any recommendations for installing with Independent SEO Header Tags For Novices v4.00 and how to install it? Sorry, Coopco. I only realised you posted this question after reading restomuscleca's post. My answer is NO. I dont see there is any need for the so called duplicate content 'manager', and I dont believe there is such things as duplicate contents if you submitted google sitemaps to SEs, google in this case. from google webmaster tools, you may see some duplicate title tag, or keyword tag or desc tag but that's the mistakes you made and you can simply chnage them so that there is no same title, keywords etc. I dont really know what people are talking about by duplicate content? even google advises people should be happy & relax if you are deliberately creating duplicate contents to get advantage then you should be fine. if you do want to get rid of 'duplicate contents' caused by what google terms as 'parameter urls' ie, those with, eg, a question mark ? in it, index.php?currency=blabla, googles recommedation is to use robots.txt to tell google to block indexing those urls. i tend to think there is people who are trying to find ways to optimise sites but at the same time add loads of useless functions/scripts to it, which is kind of strange. But that's my own opinion albeit i believe it is true based on my observation of real world examples. Ken Quote commercial support - unProtected channel, not to be confused with the forum with same name - open to everyone who need some professional help: either PM/email me, or go to my website (URL can be found in my profile). over 20 years of computer programming experience. Link to comment Share on other sites More sharing options...
restomusclecar Posted January 14, 2009 Share Posted January 14, 2009 Downloaded the most current version of instructions. And tada!!!! I filled in my default text and it works. It appears the only diiference is in the index.php file I changed the other reference to <title> to <title><?php echo (strlen($title_tag) > 1) ? $title_tag . ' - ' . TITLE : $title_home_default . ' - ' . TITLE; ?></title> <meta name="description" content="<?php echo (strlen(strip_tags($desc_tag)) < 5)? $desc_home_default : strip_tags($desc_tag); ?>"> <meta name="keywords" content="<?php echo (strlen(strip_tags($keywords_tag)) < 5) ? $kws_home_default : strip_tags($keywords_tag); ?>"> and then I replaced the } else { $category_depth = 'products'; // category has no products, but display the 'no products' message } } } with the proper coding supplied in your instructions. The only problem I see now is the keywords on the product page has no commas on the keywords. source below <!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN"> <html dir="LTR" lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <title>1965-1966 Mustang Original Dash Speaker - Mustang 65-66 Mustang Audio and Electronics - Resto Muscle Car Parts for your Classic Mustang and Camaro</title> <meta name="description" content="1965-1966 Mustang Original Dash SpeakerMustang 65-66 Mustang Audio and Electronics"> <meta name="keywords" content="1965-1966 Mustang Original Dash SpeakerMustang, 65-66 Mustang, Audio and Electronics"> <base href="http://www.restomusclecar.com/"> <link rel="stylesheet" type="text/css" href="stylesheet.css"> <script language="javascript"><!-- function popupWindow(url) { window.open(url,'popupWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,res izable=yes,copyhistory=no,width=100,height=100,screenX=150,screenY=150,top=150,le ft=150') } //--></script> </head> <body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0"> <!-- header //--> <table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr class="header"> <td valign="middle"><a href="http://www.restomusclecar.com/index.php"><img'>http://www.restomusclecar.com/index.php"><img src="images/store_logo.png" border="0" alt="Resto Muscle Car Parts for your Classic Mustang and Camaro" title=" Resto Muscle Car Parts for your Classic Mustang and Camaro " width="800" height="100"></a></td> <td align="right" valign="bottom"><a href="http://www.restomusclecar.com/account.php"><img'>http://www.restomusclecar.com/account.php"><img src="images/header_account.gif" border="0" alt="My Account" title=" My Account " width="30" height="30"></a> <a href="http://www.restomusclecar.com/shopping_cart.php"><img'>http://www.restomusclecar.com/shopping_cart.php"><img src="images/header_cart.gif" border="0" alt="Cart Contents" title=" Cart Contents " width="30" height="30"></a> <a href="http://www.restomusclecar.com/checkout_shipping.php"><img'>http://www.restomusclecar.com/checkout_shipping.php"><img src="images/header_checkout.gif" border="0" alt="Checkout" title=" Checkout " width="30" height="30"></a> </td> </tr> </table> <table border="0" width="100%" cellspacing="0" cellpadding="1"> <tr class="headerNavigation"> <td class="headerNavigation"> <a href="http://www.restomusclecar.com" class="headerNavigation">Top</a> » <a href="http://www.restomusclecar.com/index.php" class="headerNavigation">Catalog</a> » <a href="http://www.restomusclecar.com/mustang-c-21.html" class="headerNavigation">Mustang</a> » <a href="http://www.restomusclecar.com/mustang-6566-mustang-c-21_25.html" class="headerNavigation">65-66 Mustang</a> » <a href="http://www.restomusclecar.com/6566-mustang-audio-electronics-c-21_25_54.html" class="headerNavigation">Audio and Electronics</a> » <a href="http://www.restomusclecar.com/19651966-mustang-original-dash-speaker-p-151.html" class="headerNavigation">C5AZ-18808-A</a></td> <td align="right" class="headerNavigation"><a href="http://www.restomusclecar.com/account.php" class="headerNavigation">My Account</a> | <a href="http://www.restomusclecar.com/shopping_cart.php" class="headerNavigation">Cart Contents</a> | <a href="http://www.restomusclecar.com/checkout_shipping.php" class="headerNavigation">Checkout</a> </td> </tr> </table> <!-- header_eof //--> <!-- body //--> <table border="0" width="100%" cellspacing="3" cellpadding="3"> <tr> <td width="125" valign="top"><table border="0" width="125" cellspacing="0" cellpadding="2"> <!-- left_navigation //--> <!-- categories //--> <tr> <td> <table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td height="14" class="infoBoxHeading"><img src="images/infobox/corner_left.gif" border="0" alt="" width="11" height="14"></td> <td width="100%" height="14" class="infoBoxHeading">Categories</td> <td height="14" class="infoBoxHeading" nowrap><img src="images/pixel_trans.gif" border="0" alt="" width="11" height="14"></td> </tr> </table> <table border="0" width="100%" cellspacing="0" cellpadding="1" class="infoBox"> <tr> <td><table border="0" width="100%" cellspacing="0" cellpadding="3" class="infoBoxContents"> <tr> <td><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="1"></td> </tr> <tr> <td class="boxText"><a href="http://www.restomusclecar.com/mustang-c-21.html"><img src="images/pointer_blue.gif" border="0" alt="" width="8" height="7"><b>Mustang</b></a> (330)<br> <a href="http://www.restomusclecar.com/mustang-6566-mustang-c-21_25.html"><img src="images/pointer_blue.gif" border="0" alt="" width="8" height="7"><b>65-66 Mustang</b></a> (102)<br> <a href="http://www.restomusclecar.com/6566-mustang-audio-electronics-c-21_25_54.html"><img src="images/pointer_blue_light.gif" border="0" alt="" width="8" height="7"><b><span class="errorText">Audio and Electronics</span></b></a> (11)<br> <a href="http://www.restomusclecar.com/6566-mustang-brakes-c-21_25_56.html"><img src="images/pointer_blue_light.gif" border="0" alt="" width="8" height="7">Brakes</a> (9)<br> <a href="http://www.restomusclecar.com/6566-mustang-bumpers-c-21_25_58.html"><img src="images/pointer_blue_light.gif" border="0" alt="" width="8" height="7">Bumpers</a> (16)<br> <a href="http://www.restomusclecar.com/6566-mustang-convertible-c-21_25_65.html"><img src="images/pointer_blue.gif" border="0" alt="" width="8" height="7">Convertible</a> (27)<br> <a href="http://www.restomusclecar.com/6566-mustang-cooling-system-c-21_25_88.html"><img src="images/pointer_blue_light.gif" border="0" alt="" width="8" height="7">Cooling System</a> (2)<br> <a href="http://www.restomusclecar.com/6566-mustang-engine-c-21_25_26.html"><img src="images/pointer_blue.gif" border="0" alt="" width="8" height="7">Engine</a> (25)<br> <a href="http://www.restomusclecar.com/6566-mustang-interior-parts-upholstery-c-21_25_76.html"><img src="images/pointer_blue.gif" border="0" alt="" width="8" height="7">Interior Parts & Upholstery</a> (12)<br> <a href="http://www.restomusclecar.com/mustang-6768-mustang-c-21_22.html"><img src="images/pointer_blue.gif" border="0" alt="" width="8" height="7">67-68 Mustang</a> (148)<br> <a href="http://www.restomusclecar.com/mustang-6970-mustang-c-21_23.html"><img src="images/pointer_blue.gif" border="0" alt="" width="8" height="7">69-70 Mustang</a> (27)<br> <a href="http://www.restomusclecar.com/mustang-8693-mustang-c-21_45.html"><img src="images/pointer_blue.gif" border="0" alt="" width="8" height="7">86-93 Mustang</a> (7)<br> <a href="http://www.restomusclecar.com/mustang-20052007-mustang-c-21_47.html"><img src="images/pointer_blue.gif" border="0" alt="" width="8" height="7">2005-2007 Mustang</a> (1)<br> <a href="http://www.restomusclecar.com/mustang-accessories-c-21_24.html"><img src="images/pointer_blue.gif" border="0" alt="" width="8" height="7">Accessories</a> (45)<br></td> </tr> <tr> <td align="left" class="boxText"><font size=-2><b><a href="http://www.restomusclecar.com/specials.php">Specials</a></b></font></td> </tr> <tr> <td align="left" class="boxText"><font size=-2><b><a href="http://www.restomusclecar.com/products_new.php">Newest Products</a></b></font></td> </tr> <tr> <td align="left" class="boxText"><form action="http://www.restomusclecar.com/index.php" method="get"><b>Goto...<br><select name="cPath" onchange="this.form.submit();" style="width: 100%"><option value="">Please Select</option><option value="21">Mustang</option><option value="21_25"> 65-66 Mustang</option><option value="21_25_54" SELECTED> Audio and Electronics</option><option value="21_25_56"> Brakes</option><option value="21_25_58"> Bumpers</option><option value="21_25_65"> Convertible</option><option value="21_25_65_62"> Boots</option><option value="21_25_65_68"> Electrical</option><option value="21_25_65_71"> Hydraulics</option><option value="21_25_65_74"> Latches and Components</option><option value="21_25_88"> Cooling System</option><option value="21_25_26"> Engine</option><option value="21_25_26_33"> Air Cleaners</option><option value="21_25_26_36"> Alternator Components</option><option value="21_25_26_40"> Distributor and Timing</option><option value="21_25_26_42"> Engine Block Components</option><option value="21_25_26_50"> Oil Related</option><option value="21_25_76"> Interior Parts & Upholstery</option><option value="21_25_76_79"> Carpet, Floormats, Underlayment</option><option value="21_22"> 67-68 Mustang</option><option value="21_22_53"> Audio and electronics</option><option value="21_22_57"> Brakes</option><option value="21_22_59"> Bumpers</option><option value="21_22_66"> Convertible</option><option value="21_22_66_63"> Boots</option><option value="21_22_66_67"> Electrical</option><option value="21_22_66_72"> Hydraulics</option><option value="21_22_66_75"> Latches and Components</option><option value="21_22_87"> Cooling System</option><option value="21_22_95"> Electrical</option><option value="21_22_34"> Engine</option><option value="21_22_34_35"> Air Cleaners</option><option value="21_22_34_37"> Alternator Components</option><option value="21_22_34_41"> Distributor and Timing</option><option value="21_22_34_43"> Engine Block Components</option><option value="21_22_34_91"> Headers and Exhaust</option><option value="21_22_34_51"> Oil Related</option><option value="21_22_92"> Fuel</option><option value="21_22_92_93"> Fuel cell</option><option value="21_22_78"> Interior Parts and Upholstery</option><option value="21_22_78_85"> Accessories</option><option value="21_22_78_77"> Carpet, Floormats, Underlayment</option><option value="21_22_97"> Molding</option><option value="21_22_96"> Sheetmetal</option><option value="21_22_86"> Steering</option><option value="21_22_82"> Suspension</option><option value="21_22_82_83"> Front Suspension</option><option value="21_22_82_84"> Rear Suspension</option><option value="21_22_98"> Windows</option><option value="21_23"> 69-70 Mustang</option><option value="21_23_55"> Audio and Eleactronics</option><option value="21_23_60"> Bumpers</option><option value="21_23_69"> Convertible</option><option value="21_23_69_70"> Electrical</option><option value="21_23_69_73"> Hydraulics</option><option value="21_23_89"> Cooling System</option><option value="21_23_38"> Engine</option><option value="21_23_38_39"> Alternator Components</option><option value="21_23_38_44"> Engine Block Components</option><option value="21_23_38_52"> Oil Related</option><option value="21_23_80"> Interior Parts and Upholstery</option><option value="21_23_80_81"> Carpet,Floormats,Underlayment</option><option value="21_45"> 86-93 Mustang</option><option value="21_45_61"> Bumpers</option><option value="21_45_90"> Cooling System</option><option value="21_45_46"> Engine</option><option value="21_45_46_94"> Headers and exhaust</option><option value="21_47"> 2005-2007 Mustang</option><option value="21_47_48"> Engine</option><option value="21_47_48_49"> Oil Related</option><option value="21_24"> Accessories</option><option value="21_24_29"> Fun Stuff</option><option value="21_24_31"> Hats</option><option value="21_24_30"> Pedal Cars</option><option value="21_24_32"> Shirts and sweathirts</option></select></form></td> </tr> <tr> <td><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="1"></td> </tr> </table> </td> </tr> </table> </td> </tr> <!-- categories_eof //--><!-- manufacturers //--> <tr> <td> <table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td height="14" class="infoBoxHeading"><img src="images/infobox/corner_right_left.gif" border="0" alt="" width="11" height="14"></td> <td width="100%" height="14" class="infoBoxHeading">Manufacturers</td> <td height="14" class="infoBoxHeading" nowrap><img src="images/pixel_trans.gif" border="0" alt="" width="11" height="14"></td> </tr> </table> <table border="0" width="100%" cellspacing="0" cellpadding="1" class="infoBox"> <tr> <td><table border="0" width="100%" cellspacing="0" cellpadding="3" class="infoBoxContents"> <tr> <td><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="1"></td> </tr> <tr> <td class="boxText"><form name="manufacturers" action="http://www.restomusclecar.com/index.php" method="get"><select name="manufacturers_id" onChange="this.form.submit();" size="1" style="width: 100%"><option value="" SELECTED>Please Select</option><option value="16">Dynacorn</option><option value="12">Griffin Radiato..</option><option value="14">JBA Headers</option><option value="13">Painless Perfor..</option><option value="15">Ricks Hotrod Sh..</option><option value="10">Scott Drake</option><option value="11">Total Control</option></select></form></td> </tr> <tr> <td><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="1"></td> </tr> </table> </td> </tr> </table> </td> </tr> <!-- manufacturers_eof //--> <!-- whats_new //--> <tr> <td> <table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td height="14" class="infoBoxHeading"><img src="images/infobox/corner_right_left.gif" border="0" alt="" width="11" height="14"></td> <td width="100%" height="14" class="infoBoxHeading">What's New?</td> <td height="14" class="infoBoxHeading" nowrap><a href="http://www.restomusclecar.com/products_new.php"><img src="images/infobox/arrow_right.gif" border="0" alt="more" title=" more " width="12" height="10"></a><img src="images/pixel_trans.gif" border="0" alt="" width="11" height="14"></td> </tr> </table> <table border="0" width="100%" cellspacing="0" cellpadding="1" class="infoBox"> <tr> <td><table border="0" width="100%" cellspacing="0" cellpadding="3" class="infoBoxContents"> <tr> <td><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="1"></td> </tr> <tr> <td align="center" class="boxText"><a href="http://www.restomusclecar.com/firewall-196768-mustang-fastback-coupe-p-320.html"><img src="images/3631ZA.jpg" border="0" alt="FIREWALL 1967-68 MUSTANG FASTBACK & COUPE" title=" FIREWALL 1967-68 MUSTANG FASTBACK & COUPE " width="100" height="80"></a><br><a href="http://www.restomusclecar.com/firewall-196768-mustang-fastback-coupe-p-320.html">FIREWALL 1967-68 MUSTANG FASTBACK & COUPE</a><br>$219.95</td> </tr> <tr> <td><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="1"></td> </tr> </table> </td> </tr> </table> </td> </tr> <!-- whats_new_eof //--> <!-- left_navigation_eof //--> </table></td> <!-- body_text //--> <td width="100%" valign="top"><form name="cart_quantity" action="http://www.restomusclecar.com/19651966-mustang-original-dash-speaker-p-151.html?action=add_product" method="post"><table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td><table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td class="pageHeading" valign="top">1965-1966 Mustang Original Dash Speaker<br><span class="smallText">[C5AZ-18808-A]</span></td> <td class="pageHeading" align="right" valign="top">$12.95</td> </tr> </table></td> </tr> <tr> <td><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="10"></td> </tr> <tr> <td class="main"> <table border="0" cellspacing="0" cellpadding="2" align="right"> <tr> <td align="center" class="smallText"> <script language="javascript"><!-- document.write('<a href="java script:popupWindow(\'http://www.restomusclecar.com/19651966-mustang-original-dash-speaker-pi-151.html\')"><img src="images/C5AZ-18808-A.jpg" border="0" alt="1965-1966 Mustang Original Dash Speaker" title=" 1965-1966 Mustang Original Dash Speaker " width="100" height="80" hspace="5" vspace="5"><br>Click to enlarge</a>'); //--></script> <noscript> <a href="http://www.restomusclecar.com/images/C5AZ-18808-A.jpg" target="_blank"><img src="images/C5AZ-18808-A.jpg" border="0" alt="1965-1966 Mustang Original Dash Speaker" title=" 1965-1966 Mustang Original Dash Speaker " width="100" height="80" hspace="5" vspace="5"><br>Click to enlarge</a></noscript> </td> </tr> </table> <p>Single mono speakers for original application.</p> </td> </tr> <tr> <td><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="10"></td> </tr> <tr> <td align="center" class="smallText">This product was added to our catalog on Saturday 03 January, 2009.</td> </tr> <tr> <td><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="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"><img src="images/pixel_trans.gif" border="0" alt="" width="10" height="1"></td> <td class="main"><a href="http://www.restomusclecar.com/19651966-mustang-original-dash-speaker-pr-151.html"><img src="includes/languages/english/images/buttons/button_reviews.gif" border="0" alt="Reviews" title=" Reviews " width="100" height="22"></a></td> <td class="main" align="right"><input type="hidden" name="products_id" value="151"><input type="image" src="includes/languages/english/images/buttons/button_in_cart.gif" border="0" alt="Add to Cart" title=" Add to Cart "></td> <td width="10"><img src="images/pixel_trans.gif" border="0" alt="" width="10" height="1"></td> </tr> </table></td> </tr> </table></td> </tr> <tr> <td><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="10"></td> </tr> <tr> <td> </td> </tr> </table></form></td> <!-- body_text_eof //--> <td width="125" valign="top"><table border="0" width="125" cellspacing="0" cellpadding="2"> <!-- right_navigation //--> <!-- shopping_cart //--> <tr> <td> <table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td height="14" class="infoBoxHeading"><img src="images/infobox/corner_right_left.gif" border="0" alt="" width="11" height="14"></td> <td width="100%" height="14" class="infoBoxHeading">Shopping Cart</td> <td height="14" class="infoBoxHeading" nowrap><a href="http://www.restomusclecar.com/shopping_cart.php"><img'>http://www.restomusclecar.com/shopping_cart.php"><img src="images/infobox/arrow_right.gif" border="0" alt="more" title=" more " width="12" height="10"></a><img src="images/infobox/corner_right.gif" border="0" alt="" width="11" height="14"></td> </tr> </table> <table border="0" width="100%" cellspacing="0" cellpadding="1" class="infoBox"> <tr> <td><table border="0" width="100%" cellspacing="0" cellpadding="3" class="infoBoxContents"> <tr> <td><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="1"></td> </tr> <tr> <td class="boxText">0 items</td> </tr> <tr> <td><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="1"></td> </tr> </table> </td> </tr> </table> </td> </tr> <!-- shopping_cart_eof //--> <!-- manufacturer_info //--> <tr> <td> <table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td height="14" class="infoBoxHeading"><img src="images/infobox/corner_right_left.gif" border="0" alt="" width="11" height="14"></td> <td width="100%" height="14" class="infoBoxHeading">Manufacturer Info</td> <td height="14" class="infoBoxHeading" nowrap><img src="images/pixel_trans.gif" border="0" alt="" width="11" height="14"></td> </tr> </table> <table border="0" width="100%" cellspacing="0" cellpadding="1" class="infoBox"> <tr> <td><table border="0" width="100%" cellspacing="0" cellpadding="3" class="infoBoxContents"> <tr> <td><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="1"></td> </tr> <tr> <td class="boxText"><table border="0" width="100%" cellspacing="0" cellpadding="0"><tr><td align="center" class="infoBoxContents" colspan="2"><img src="images/swaparea.png" border="0" alt="Scott Drake" title=" Scott Drake " width="170" height="114"></td></tr><tr><td valign="top" class="infoBoxContents">- </td><td valign="top" class="infoBoxContents"><a href="http://www.restomusclecar.com/scott-drake-m-10.html">Other products</a></td></tr></table></td> </tr> <tr> <td><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="1"></td> </tr> </table> </td> </tr> </table> </td> </tr> <!-- manufacturer_info_eof //--> <!-- notifications //--> <tr> <td> <table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td height="14" class="infoBoxHeading"><img src="images/infobox/corner_right_left.gif" border="0" alt="" width="11" height="14"></td> <td width="100%" height="14" class="infoBoxHeading">Notifications</td> <td height="14" class="infoBoxHeading" nowrap><a href="http://www.restomusclecar.com/account_notifications.php"><img src="images/infobox/arrow_right.gif" border="0" alt="more" title=" more " width="12" height="10"></a><img src="images/pixel_trans.gif" border="0" alt="" width="11" height="14"></td> </tr> </table> <table border="0" width="100%" cellspacing="0" cellpadding="1" class="infoBox"> <tr> <td><table border="0" width="100%" cellspacing="0" cellpadding="3" class="infoBoxContents"> <tr> <td><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="1"></td> </tr> <tr> <td class="boxText"><table border="0" cellspacing="0" cellpadding="2"><tr><td class="infoBoxContents"><a href="http://www.restomusclecar.com/19651966-mustang-original-dash-speaker-p-151.html?action=notify"><img src="images/box_products_notifications.gif" border="0" alt="Notifications" title=" Notifications " width="50" height="50"></a></td><td class="infoBoxContents"><a href="http://www.restomusclecar.com/19651966-mustang-original-dash-speaker-p-151.html?action=notify">Notify me of updates to <b>1965-1966 Mustang Original Dash Speaker</b></a></td></tr></table></td> </tr> <tr> <td><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="1"></td> </tr> </table> </td> </tr> </table> </td> </tr> <!-- notifications_eof //--> <!-- tell_a_friend //--> <tr> <td> <table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td height="14" class="infoBoxHeading"><img src="images/infobox/corner_right_left.gif" border="0" alt="" width="11" height="14"></td> <td width="100%" height="14" class="infoBoxHeading">Tell A Friend</td> <td height="14" class="infoBoxHeading" nowrap><img src="images/pixel_trans.gif" border="0" alt="" width="11" height="14"></td> </tr> </table> <table border="0" width="100%" cellspacing="0" cellpadding="1" class="infoBox"> <tr> <td><table border="0" width="100%" cellspacing="0" cellpadding="3" class="infoBoxContents"> <tr> <td><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="1"></td> </tr> <tr> <td align="center" class="boxText"><form name="tell_a_friend" action="http://www.restomusclecar.com/tell_a_friend.php" method="get"><input type="text" name="to_email_address" size="10"> <input type="image" src="includes/languages/english/images/buttons/button_tell_a_friend.gif" border="0" alt="Tell A Friend" title=" Tell A Friend "><input type="hidden" name="products_id" value="151"><br>Tell someone you know about this product.</form></td> </tr> <tr> <td><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="1"></td> </tr> </table> </td> </tr> </table> </td> </tr> <!-- tell_a_friend_eof //--> <!-- reviews //--> <tr> <td> <table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td height="14" class="infoBoxHeading"><img src="images/infobox/corner_right_left.gif" border="0" alt="" width="11" height="14"></td> <td width="100%" height="14" class="infoBoxHeading">Reviews</td> <td height="14" class="infoBoxHeading" nowrap><a href="http://www.restomusclecar.com/reviews.php"><img src="images/infobox/arrow_right.gif" border="0" alt="more" title=" more " width="12" height="10"></a><img src="images/pixel_trans.gif" border="0" alt="" width="11" height="14"></td> </tr> </table> <table border="0" width="100%" cellspacing="0" cellpadding="1" class="infoBox"> <tr> <td><table border="0" width="100%" cellspacing="0" cellpadding="3" class="infoBoxContents"> <tr> <td><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="1"></td> </tr> <tr> <td class="boxText"><table border="0" cellspacing="0" cellpadding="2"><tr><td class="infoBoxContents"><a href="http://www.restomusclecar.com/product_reviews_write.php?products_id=151"><img src="images/box_write_review.gif" border="0" alt="Write Review" title=" Write Review " width="50" height="50"></a></td><td class="infoBoxContents"><a href="http://www.restomusclecar.com/product_reviews_write.php?products_id=151">Write a review on this product!</a></td></tr></table></td> </tr> <tr> <td><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="1"></td> </tr> </table> </td> </tr> </table> </td> </tr> <!-- reviews_eof //--> <!-- search //--> <tr> <td> <table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td height="14" class="infoBoxHeading"><img src="images/infobox/corner_right_left.gif" border="0" alt="" width="11" height="14"></td> <td width="100%" height="14" class="infoBoxHeading">Quick Find</td> <td height="14" class="infoBoxHeading" nowrap><img src="images/pixel_trans.gif" border="0" alt="" width="11" height="14"></td> </tr> </table> <table border="0" width="100%" cellspacing="0" cellpadding="1" class="infoBox"> <tr> <td><table border="0" width="100%" cellspacing="0" cellpadding="3" class="infoBoxContents"> <tr> <td><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="1"></td> </tr> <tr> <td align="center" class="boxText"><form name="quick_find" action="http://www.restomusclecar.com/advanced_search_result.php" method="get"><input type="text" name="keywords" size="10" maxlength="30" style="width: 95px"> <input type="image" src="includes/languages/english/images/buttons/button_quick_find.gif" border="0" alt="Quick Find" title=" Quick Find "><br>Use keywords to find the product you are looking for.<br><a href="http://www.restomusclecar.com/advanced_search.php"><b>Advanced Search</b></a></form></td> </tr> <tr> <td><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="1"></td> </tr> </table> </td> </tr> </table> </td> </tr> <!-- search_eof //--> <!-- information //--> <tr> <td> <table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td height="14" class="infoBoxHeading"><img src="images/infobox/corner_right_left.gif" border="0" alt="" width="11" height="14"></td> <td width="100%" height="14" class="infoBoxHeading">Information</td> <td height="14" class="infoBoxHeading" nowrap><img src="images/pixel_trans.gif" border="0" alt="" width="11" height="14"></td> </tr> </table> <table border="0" width="100%" cellspacing="0" cellpadding="1" class="infoBox"> <tr> <td><table border="0" width="100%" cellspacing="0" cellpadding="3" class="infoBoxContents"> <tr> <td><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="1"></td> </tr> <tr> <td class="boxText"><a href="http://www.restomusclecar.com/shipping.php">Shipping & Returns</a><br><a href="http://www.restomusclecar.com/privacy.php">Privacy Notice</a><br><a href="http://www.restomusclecar.com/conditions.php">Conditions of Use</a><br><a href="http://www.restomusclecar.com/contact_us.php">Contact Us</a></td> </tr> <tr> <td><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="1"></td> </tr> </table> </td> </tr> </table> </td> </tr> <!-- information_eof //--> <!-- right_navigation_eof //--> </table></td> </tr> </table> <!-- body_eof //--> <!-- footer //--> <table border="0" width="100%" cellspacing="0" cellpadding="1"> <tr class="footer"> <td class="footer"> Wednesday 14 January, 2009 </td> <td align="right" class="footer"> 6963 requests since Thursday 01 January, 2009 </td> </tr> </table> <br> <table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> </tr> </table> <br> <table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td align="center"><font color="white"><h1>Resto Muscle Car Restoration Parts Classic Mustang Parts Resto Parts Mustang Classic Parts Resto Parts Classic Car Parts Resto Mustang Resto Muscle Car</font></h1></td></tr><td align="center" class="smallText">All logos, trademarks ,and images on this site are property of Resto Muscle Car 2009.©</td> </tr> </table> <!-- footer_eof //--> <br> </body> </html> any help would be greatly appreciated Quote Link to comment Share on other sites More sharing options...
GemRock Posted January 14, 2009 Author Share Posted January 14, 2009 1. next time do not post page source. anyone can see your page source from your site if needs be. and in this case, it does not help at all, and not the whole source code of a file either - no one would read it as it is very difficult to read outside a proper php editor; 2. instead, you only need to post anything between [head] and [/head] section from the file concerned. Ken Quote commercial support - unProtected channel, not to be confused with the forum with same name - open to everyone who need some professional help: either PM/email me, or go to my website (URL can be found in my profile). over 20 years of computer programming experience. Link to comment Share on other sites More sharing options...
restomusclecar Posted January 14, 2009 Share Posted January 14, 2009 1. next time do not post page source. anyone can see your page source from your site if needs be. and in this case, it does not help at all, and not the whole source code of a file either - no one would read it as it is very difficult to read outside a proper php editor;2. instead, you only need to post anything between [head] and [/head] section from the file concerned. Ken Sorry Like I said im new. I went over the version 2 install and changed the file in product_info and it works now but no commas at all in keywords content. Any suggestions? Quote Link to comment Share on other sites More sharing options...
GemRock Posted January 14, 2009 Author Share Posted January 14, 2009 my suggestion is "post anything between [head] and [/head] section from the file concerned", which is a repeat request. Ken Quote commercial support - unProtected channel, not to be confused with the forum with same name - open to everyone who need some professional help: either PM/email me, or go to my website (URL can be found in my profile). over 20 years of computer programming experience. Link to comment Share on other sites More sharing options...
restomusclecar Posted January 14, 2009 Share Posted January 14, 2009 my suggestion is "post anything between [head] and [/head] section from the file concerned", which is a repeat request. Ken below is the source of a product page. Notice the keyword content has no commas. Ken thank you for your patience. <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <title>MOLDING WINSHIELD SET 65-68 MUSTANG CP/FB - Mustang, 67-68 Mustang, Molding - Resto Muscle Car Parts for your Classic Mustang and Camaro</title> <meta name="description" content="MOLDING WINSHIELD SET 65-68 MUSTANG CP/FB 5 PC SET"> <meta name="keywords" content="MOLDING WINSHIELD SET 65-68 MUSTANG CP/FB"> <base href="http://www.restomusclecar.com/"> <link rel="stylesheet" type="text/css" href="stylesheet.css"> <script language="javascript"><!-- function popupWindow(url) { window.open(url,'popupWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,res izable=yes,copyhistory=no,width=100,height=100,screenX=150,screenY=150,top=150,le ft=150') } //--></script> </head> Quote Link to comment Share on other sites More sharing options...
GemRock Posted January 14, 2009 Author Share Posted January 14, 2009 sorry but no that's not the bit. you'd post the [head] - [/head] part of the product_info.php. page source will not help in any way or shape. Ken Quote commercial support - unProtected channel, not to be confused with the forum with same name - open to everyone who need some professional help: either PM/email me, or go to my website (URL can be found in my profile). over 20 years of computer programming experience. Link to comment Share on other sites More sharing options...
restomusclecar Posted January 14, 2009 Share Posted January 14, 2009 sorry but no that's not the bit. you'd post the [head] - [/head] part of the product_info.php. page source will not help in any way or shape. Ken Gosh again Im sorry here is the product_info code source <head> <meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>"> <title><?php echo ((strlen($categories['categories_name']) > 1) || (strlen($manufacturers['manufacturers_name']) > 1)) ? $header_tags['products_name'] . ' - ' . $breadcrumb_tags->trail_tags(', ') . ' - ' . TITLE : TITLE; ?> </title> <meta name="description" content="<?php echo $header_tags['desc_tag']; ?>"> <meta name="keywords" content="<?php echo $header_tags[keywords_tag]; ?>"> <base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>"> <link rel="stylesheet" type="text/css" href="stylesheet.css"> <script language="javascript"><!-- function popupWindow(url) { window.open(url,'popupWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,res izable=yes,copyhistory=no,width=100,height=100,screenX=150,screenY=150,top=150,le ft=150') } //--></script> </head> Quote Link to comment Share on other sites More sharing options...
GemRock Posted January 14, 2009 Author Share Posted January 14, 2009 i can see youve done it correctly. reason why there is no comma is because by default it uses the product name as keywords, and since there is no comma in your product name so neither does the keyword tag. there is no other way than that you enter your custom keywords for each product/category at admin - header_tags_edit.php/header_tags_category_edit.php. for your store, i think probably two hrs work would finish it. it is still quite easy. you could also preview your edit/entry by clicking on the product/category name from the same page at admin. Good Luck! Ken Quote commercial support - unProtected channel, not to be confused with the forum with same name - open to everyone who need some professional help: either PM/email me, or go to my website (URL can be found in my profile). over 20 years of computer programming experience. Link to comment Share on other sites More sharing options...
GemRock Posted January 14, 2009 Author Share Posted January 14, 2009 btw when you customize your title/keyword/desc tags, do not enter the same text for different pages/products. be creative. do not just copy & paste from top row to the last row! Ken Quote commercial support - unProtected channel, not to be confused with the forum with same name - open to everyone who need some professional help: either PM/email me, or go to my website (URL can be found in my profile). over 20 years of computer programming experience. Link to comment Share on other sites More sharing options...
restomusclecar Posted January 14, 2009 Share Posted January 14, 2009 btw when you customize your title/keyword/desc tags, do not enter the same text for different pages/products. be creative. do not just copy & paste from top row to the last row! Ken Being lazy :rolleyes: Do i honestly need to insert commas? Is it that important? P.S. Thank you for your time today. You are greatly appreciated. Quote Link to comment Share on other sites More sharing options...
GemRock Posted January 14, 2009 Author Share Posted January 14, 2009 google for one would ignore the keyword tag but use the desc tag to tell what the page is about. so do your resaerch and make up your mind. Quote commercial support - unProtected channel, not to be confused with the forum with same name - open to everyone who need some professional help: either PM/email me, or go to my website (URL can be found in my profile). over 20 years of computer programming experience. Link to comment Share on other sites More sharing options...
Guest Posted January 15, 2009 Share Posted January 15, 2009 Sorry, Coopco. I only realised you posted this question after reading restomuscleca's post.My answer is NO. I dont see there is any need for the so called duplicate content 'manager', and I dont believe there is such things as duplicate contents if you submitted google sitemaps to SEs, google in this case. from google webmaster tools, you may see some duplicate title tag, or keyword tag or desc tag but that's the mistakes you made and you can simply chnage them so that there is no same title, keywords etc. I dont really know what people are talking about by duplicate content? even google advises people should be happy & relax if you are deliberately creating duplicate contents to get advantage then you should be fine. if you do want to get rid of 'duplicate contents' caused by what google terms as 'parameter urls' ie, those with, eg, a question mark ? in it, index.php?currency=blabla, googles recommedation is to use robots.txt to tell google to block indexing those urls. i tend to think there is people who are trying to find ways to optimise sites but at the same time add loads of useless functions/scripts to it, which is kind of strange. But that's my own opinion albeit i believe it is true based on my observation of real world examples. Ken OK Ken, thank for the detailed answer. Just a note: I use the all products addon and have found that header tags were not being done on that page (at least not by header tags for novices), so I have manually placed the code in the allprod.php file. Quote Link to comment Share on other sites More sharing options...
GemRock Posted January 15, 2009 Author Share Posted January 15, 2009 OK Ken, thank for the detailed answer. Just a note: I use the all products addon and have found that header tags were not being done on that page (at least not by header tags for novices), so I have manually placed the code in the allprod.php file. sorry but I dont think i understand the allproducts thing: if you have submited (and you should) google sitemaps, which would include all your products, then why you bother about that? I think you should instead block google to index, or politely, tell google not to index, that file by all means - thats a complete duplicate, IMO. the more time google has to spend on your site, the fewer urls it could index. i guess it would tell itself that times up, lets go! there's still zillion sites to crawl! if cant finish by dawn, will have a hard time back at Mountain View...etc Ken Ken Quote commercial support - unProtected channel, not to be confused with the forum with same name - open to everyone who need some professional help: either PM/email me, or go to my website (URL can be found in my profile). over 20 years of computer programming experience. Link to comment Share on other sites More sharing options...
gameuniverse Posted January 15, 2009 Share Posted January 15, 2009 Hi there I tried installing this contribution and ran into serious problems when halfway through second stage due to big differences between my index page and the page being quoted in the installation instructions. Should I just reset my index to a standard template to fix this or are there more than one index versions floating around? Regards Brent Quote Link to comment Share on other sites More sharing options...
gameuniverse Posted January 15, 2009 Share Posted January 15, 2009 Hi there Ok I have got past the installation phase - I did that very carefully, however when I go to Admin/Catalog to view "Product Meta Tags or Category Meta Tags" section, I get the following error message: Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, webmaster@gameuniverse.co.nz and inform them of the time the error occurred, and anything you might have done that may have caused the error. More information about this error may be available in the server error log. Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request. Apache/2.2.10 (Unix) mod_ssl/2.2.10 OpenSSL/0.9.8i DAV/2 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 Server at gameuniverse.co.nz Port 80 How do I fix this so can edit individual categories and products? Kind regards Brent Quote Link to comment Share on other sites More sharing options...
GemRock Posted January 15, 2009 Author Share Posted January 15, 2009 this is a very general error msg and does not help at all. you should state what you have done at the admin RE this contrib and what/where actually you click, and more crucially, what shows in the browser address bar (you can hide the admin folder name in the url if you dont want to publish it) by posting it here. if everything mentioned seems fine then perhaps post the first 10 lines or so of your configure.php (the one at admin). Ken Quote commercial support - unProtected channel, not to be confused with the forum with same name - open to everyone who need some professional help: either PM/email me, or go to my website (URL can be found in my profile). over 20 years of computer programming experience. Link to comment Share on other sites More sharing options...
gameuniverse Posted January 16, 2009 Share Posted January 16, 2009 Dear Ken Thanks for your reply My website homepage URL is www.gameuniverse.co.nz When you click on a button the following message comes up Address Not Found gameuniverse.co.nzdir_ws_adminproduct_info.php could not be found. Please check the name and try again. The browser could not find the host server for the provided address. * Did you make a mistake when typing the domain? (e.g. "ww.mozilla.org" instead of "www.mozilla.org") * Are you certain this domain address exists? Its registration may have expired. * Are you unable to browse other sites? Check your network connection and DNS server settings. * Is your computer or network protected by a firewall or proxy? Incorrect settings can interfere with Web browsing. I am really in over my head on this so any help is greatly appreciated. Another problem lies in the Catalog/Product Metatags and Catalog/Category Metatags. When I try open this section in admin panel the following message is given: Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, webmaster@gameuniverse.co.nz and inform them of the time the error occurred, and anything you might have done that may have caused the error. More information about this error may be available in the server error log. Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request. Apache/2.2.10 (Unix) mod_ssl/2.2.10 OpenSSL/0.9.8i DAV/2 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 Server at gameuniverse.co.nz Port 80 Here are the first part of configuration.php file in admin folder: <?php/* $Id: configuration.php 1739 2007-12-20 00:52:16Z hpdl $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2003 osCommerce Released under the GNU General Public License */ require('includes/application_top.php'); $action = (isset($HTTP_GET_VARS['action']) ? $HTTP_GET_VARS['action'] : ''); if (tep_not_null($action)) { switch ($action) { case 'save': $configuration_value = tep_db_prepare_input($HTTP_POST_VARS['configuration_value']); $cID = tep_db_prepare_input($HTTP_GET_VARS['cID']); tep_db_query("update " . TABLE_CONFIGURATION . " set configuration_value = '" . tep_db_input($configuration_value) . "', last_modified = now() where configuration_id = '" . (int)$cID . "'"); tep_redirect(tep_href_link(FILENAME_CONFIGURATION, 'gID=' . $HTTP_GET_VARS['gID'] . '&cID=' . $cID)); break; } } $gID = (isset($HTTP_GET_VARS['gID'])) ? $HTTP_GET_VARS['gID'] : 1; $cfg_group_query = tep_db_query("select configuration_group_title from " . TABLE_CONFIGURATION_GROUP . " where configuration_group_id = '" . (int)$gID . "'"); $cfg_group = tep_db_fetch_array($cfg_group_query); ?> <!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN"> <html <?php echo HTML_PARAMS; ?>> <head> <meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>"> <title><?php echo TITLE; ?></title> <link rel="stylesheet" type="text/css" href="includes/stylesheet.css"> <script language="javascript" src="includes/general.js"></script> </head> and here is the head section of my index.php if it helps: <?php/* $Id: index.php,v 1.1 2003/06/11 17:37:59 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2003 osCommerce Released under the GNU General Public License */ require('includes/application_top.php'); // the following cPath references come from application_top.php $category_depth = 'top'; if (isset($cPath) && tep_not_null($cPath)) { $categories_products_query = tep_db_query("select count(*) as total from " . TABLE_PRODUCTS_TO_CATEGORIES . " where categories_id = '" . (int)$current_category_id . "'"); $cateqories_products = tep_db_fetch_array($categories_products_query); if ($cateqories_products['total'] > 0) { $category_depth = 'products'; // display products } else { $category_parent_query = tep_db_query("select count(*) as total from " . TABLE_CATEGORIES . " where parent_id = '" . (int)$current_category_id . "'"); $category_parent = tep_db_fetch_array($category_parent_query); if ($category_parent['total'] > 0) { $category_depth = 'nested'; // navigate through the categories } else { $category_depth = 'products'; // category has no products, but display the 'no products' message } } //get current category tags when a category is selected $cat_tags_query = tep_db_query("SELECT categories_name, title_tag, desc_tag, keywords_tag FROM " . TABLE_CATEGORIES_DESCRIPTION . " where categories_id = '" . (int)$current_category_id . "' AND language_id = '" . (int)$languages_id . "'"); $cat_tags = tep_db_fetch_array($cat_tags_query); $categories_name = $cat_tags['categories_name']; $title_tag = $cat_tags['title_tag']; $desc_tag = $cat_tags['desc_tag']; $keywords_tag = $cat_tags['keywords_tag']; //set default $kws_home_default = $categories_name; $desc_home_default = $categories_name; $title_home_default = $categories_name; } else { //no category is selected: randomly select category names as keywords $cat_names_query = tep_db_query("SELECT categories_name FROM " . TABLE_CATEGORIES_DESCRIPTION . " WHERE language_id = '" . (int)$languages_id . "'" . " ORDER BY RAND()"); $kws_home_default = ""; $num_rows = tep_db_num_rows($cat_names_query); if ($num_rows > 20){ $i = rand(1,$num_rows); for ($count = $i; $count < $i + 20; $count++) { $cat_names = tep_db_fetch_array($cat_names_query); $kws_home_default .= $cat_names['categories_name'] . ', '; } } else { while ($cat_names = tep_db_fetch_array($cat_names_query)){ $kws_home_default .= $cat_names['categories_name'] . ', '; } } //default title tag for the index (home) page $title_home_default = "PC Games Universe"; //default keywords for the index (home) page $kws_home_default .= STORE_NAME; //default Description for the index (home) page $desc_home_default = "PC Games, Game, Games, Computer"; } require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_DEFAULT); ?> <!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN"> <html <?php echo HTML_PARAMS; ?>> <head> <link rel="shortcut icon" href="http://www.gameuniverse.co.nz/favicon.ico"> <meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>"> <title><?php echo (strlen($title_tag) > 1) ? $title_tag . ' - ' . TITLE : $title_home_default . ' - ' . TITLE; ?></title> <meta name="description" content="<?php echo (strlen(strip_tags($desc_tag)) < 5)? $desc_home_default : strip_tags($desc_tag); ?>"> <meta name="keywords" content="<?php echo (strlen(strip_tags($keywords_tag)) < 5) ? $kws_home_default : strip_tags($keywords_tag); ?>"> <base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>"> <link rel="stylesheet" type="text/css" href="stylesheet.css"> </head> If you try to surf around my site you will get an idea of the problems I am having. I appreciate your help. Have a good day! Kind regards Brent this is a very general error msg and does not help at all. you should state what you have done at the admin RE this contrib and what/where actually you click, and more crucially, what shows in the browser address bar (you can hide the admin folder name in the url if you dont want to publish it) by posting it here. if everything mentioned seems fine then perhaps post the first 10 lines or so of your configure.php (the one at admin). Ken Quote Link to comment Share on other sites More sharing options...
gameuniverse Posted January 16, 2009 Share Posted January 16, 2009 Ken In the URL addressbar is: http://gameuniverse.co.nz/admin/header_tags_edit.php and http://gameuniverse.co.nz/admin/header_tag...tegory_edit.php Thanks Brent Quote Link to comment Share on other sites More sharing options...
GemRock Posted January 16, 2009 Author Share Posted January 16, 2009 i think you may have misplaced the two configure.php files, ie, the one that should have been in the admin side now is in fact at the catalog side, and vice versa. it is very easy and obvious to tell from the url: in no way you would have the dir_ws_admin in the url when browsing your shop. you only need 5 minutes of carefully checking to solve the problem. there is a BIG difference between configure.php and configuration.php, and i did not mentioned the latter, so why you post that file for what? so be careful. i know you are new to this but being new could also be careful.am I right? Ken Quote commercial support - unProtected channel, not to be confused with the forum with same name - open to everyone who need some professional help: either PM/email me, or go to my website (URL can be found in my profile). over 20 years of computer programming experience. Link to comment Share on other sites More sharing options...
GemRock Posted January 16, 2009 Author Share Posted January 16, 2009 further to my post above, if you follow the new instruction to install the contribution then there is no need to touch the configure.php files at all. so your shop's current problem is not caused by my contribution. Ken Quote commercial support - unProtected channel, not to be confused with the forum with same name - open to everyone who need some professional help: either PM/email me, or go to my website (URL can be found in my profile). over 20 years of computer programming experience. Link to comment Share on other sites More sharing options...
gameuniverse Posted January 16, 2009 Share Posted January 16, 2009 further to my post above, if you follow the new instruction to install the contribution then there is no need to touch the configure.php files at all. so your shop's current problem is not caused by my contribution. Ken Dear Ken There is a includes/configure.php <?php/* osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2003 osCommerce Released under the GNU General Public License */ // Define the webserver and path parameters // * DIR_FS_* = Filesystem directories (local/physical) // * DIR_WS_* = Webserver directories (virtual/URL) define('HTTP_SERVER', 'http://gameuniverse.co.nz'); // eg, http://localhost - should not be empty for productive servers define('HTTPS_SERVER', 'https://gameuniverse.co.nz'); // eg, https://localhost - should not be empty for productive servers define('ENABLE_SSL', false); // secure webserver for checkout procedure? define('HTTP_COOKIE_DOMAIN', 'gameuniverse.co.nz'); define('HTTPS_COOKIE_DOMAIN', 'gameuniverse.co.nz'); define('HTTP_COOKIE_PATH', '/'); define('HTTPS_COOKIE_PATH', '/'); define('DIR_WS_HTTP_CATALOG', '/'); define('DIR_WS_HTTPS_CATALOG', '/'); define('DIR_WS_IMAGES', 'images/'); define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/'); define('DIR_WS_INCLUDES', 'includes/'); define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/'); define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/'); define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/'); define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/'); define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/'); define('DIR_WS_DOWNLOAD_PUBLIC', 'pub/'); define('DIR_FS_CATALOG', '/home/merchant/public_html/'); define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/'); define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/'); And an admin/includes/configure.php <?php define('HTTP_SERVER', 'http://gameuniverse.co.nz'); define('HTTP_CATALOG_SERVER', 'http://gameuniverse.co.nz'); define('HTTPS_CATALOG_SERVER', 'https://gameuniverse.co.nz'); define('ENABLE_SSL_CATALOG', false); define('DIR_FS_DOCUMENT_ROOT', '/home/merchant/public_html/'); define('DIR_WS_ADMIN', '/admin/'); define('DIR_FS_ADMIN', '/home/merchant/public_html/admin/'); define('DIR_WS_CATALOG', '/'); define('DIR_FS_CATALOG', '/home/merchant/public_html/'); define('DIR_WS_IMAGES', 'images/'); define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/'); define('DIR_WS_CATALOG_IMAGES', DIR_WS_CATALOG . 'images/'); define('DIR_WS_INCLUDES', 'includes/'); define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/'); define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/'); define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/'); define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/'); define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/'); define('DIR_WS_CATALOG_LANGUAGES', DIR_WS_CATALOG . 'includes/languages/'); define('DIR_FS_CATALOG_LANGUAGES', DIR_FS_CATALOG . 'includes/languages/'); define('DIR_FS_CATALOG_IMAGES', DIR_FS_CATALOG . 'images/'); define('DIR_FS_CATALOG_MODULES', DIR_FS_CATALOG . 'includes/modules/'); define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/'); define('DB_SERVER', 'localhost'); Also, does this look right to you? includes/application_top.php <?php/* $Id: application_top.php,v 1.280 2003/07/12 09:38:07 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2003 osCommerce Released under the GNU General Public License */ // start the timer for the page parse time log define('PAGE_PARSE_START_TIME', microtime()); // set the level of error reporting error_reporting(E_ALL & ~E_NOTICE); // check if register_globals is enabled. // since this is a temporary measure this message is hardcoded. The requirement will be removed before 2.2 is finalized. if (function_exists('ini_get')) { ini_get('register_globals') or exit('FATAL ERROR: register_globals is disabled in php.ini, please enable it!'); } // Set the local configuration parameters - mainly for developers if (file_exists('includes/local/configure.php')) include('includes/local/configure.php'); // include server parameters require('includes/configure.php'); if (strlen(DB_SERVER) < 1) { if (is_dir('install')) { header('Location: install/index.php'); } } // define the project version define('PROJECT_VERSION', 'osCommerce 2.2-MS2'); // set the type of request (secure or not) $request_type = (getenv('HTTPS') == 'on') ? 'SSL' : 'NONSSL'; // set php_self in the local scope if (!isset($PHP_SELF)) $PHP_SELF = $HTTP_SERVER_VARS['PHP_SELF']; if ($request_type == 'NONSSL') { define('DIR_WS_CATALOG', DIR_WS_HTTP_CATALOG); } else { define('DIR_WS_CATALOG', DIR_WS_HTTPS_CATALOG); } // include the list of project filenames require(DIR_WS_INCLUDES . 'filenames.php'); // include the list of project database tables require(DIR_WS_INCLUDES . 'database_tables.php'); // customization for the design layout define('BOX_WIDTH', 125); // how wide the boxes should be in pixels (default: 125) // include the database functions require(DIR_WS_FUNCTIONS . 'database.php'); // make a connection to the database... now tep_db_connect() or die('Unable to connect to database server!'); // set the application parameters $configuration_query = tep_db_query('select configuration_key as cfgKey, configuration_value as cfgValue from ' . TABLE_CONFIGURATION); while ($configuration = tep_db_fetch_array($configuration_query)) { define($configuration['cfgKey'], $configuration['cfgValue']); } // if gzip_compression is enabled, start to buffer the output if ( (GZIP_COMPRESSION == 'true') && ($ext_zlib_loaded = extension_loaded('zlib')) && (PHP_VERSION >= '4') ) { if (($ini_zlib_output_compression = (int)ini_get('zlib.output_compression')) < 1) { if (PHP_VERSION >= '4.0.4') { ob_start('ob_gzhandler'); } else { include(DIR_WS_FUNCTIONS . 'gzip_compression.php'); ob_start(); ob_implicit_flush(); } } else { ini_set('zlib.output_compression_level', GZIP_LEVEL); } } // set the HTTP GET parameters manually if search_engine_friendly_urls is enabled if (SEARCH_ENGINE_FRIENDLY_URLS == 'true') { if (strlen(getenv('PATH_INFO')) > 1) { $GET_array = array(); $PHP_SELF = str_replace(getenv('PATH_INFO'), '', $PHP_SELF); $vars = explode('/', substr(getenv('PATH_INFO'), 1)); for ($i=0, $n=sizeof($vars); $i<$n; $i++) { if (strpos($vars[$i], '[]')) { $GET_array[substr($vars[$i], 0, -2)][] = $vars[$i+1]; } else { $HTTP_GET_VARS[$vars[$i]] = $vars[$i+1]; } $i++; } if (sizeof($GET_array) > 0) { while (list($key, $value) = each($GET_array)) { $HTTP_GET_VARS[$key] = $value; } } } } // define general functions used application-wide require(DIR_WS_FUNCTIONS . 'general.php'); require(DIR_WS_FUNCTIONS . 'html_output.php'); // set the cookie domain $cookie_domain = (($request_type == 'NONSSL') ? HTTP_COOKIE_DOMAIN : HTTPS_COOKIE_DOMAIN); $cookie_path = (($request_type == 'NONSSL') ? HTTP_COOKIE_PATH : HTTPS_COOKIE_PATH); // include cache functions if enabled if (USE_CACHE == 'true') include(DIR_WS_FUNCTIONS . 'cache.php'); // include shopping cart class require(DIR_WS_CLASSES . 'shopping_cart.php'); // include navigation history class require(DIR_WS_CLASSES . 'navigation_history.php'); // some code to solve compatibility issues require(DIR_WS_FUNCTIONS . 'compatibility.php'); // check if sessions are supported, otherwise use the php3 compatible session class if (!function_exists('session_start')) { define('PHP_SESSION_NAME', 'osCsid'); define('PHP_SESSION_PATH', $cookie_path); define('PHP_SESSION_DOMAIN', $cookie_domain); define('PHP_SESSION_SAVE_PATH', SESSION_WRITE_DIRECTORY); include(DIR_WS_CLASSES . 'sessions.php'); } // define how the session functions will be used require(DIR_WS_FUNCTIONS . 'sessions.php'); // set the session name and save path tep_session_name('osCsid'); tep_session_save_path(SESSION_WRITE_DIRECTORY); // set the session cookie parameters if (function_exists('session_set_cookie_params')) { session_set_cookie_params(0, $cookie_path, $cookie_domain); } elseif (function_exists('ini_set')) { ini_set('session.cookie_lifetime', '0'); ini_set('session.cookie_path', $cookie_path); ini_set('session.cookie_domain', $cookie_domain); } // set the session ID if it exists if (isset($HTTP_POST_VARS[tep_session_name()])) { tep_session_id($HTTP_POST_VARS[tep_session_name()]); } elseif ( ($request_type == 'SSL') && isset($HTTP_GET_VARS[tep_session_name()]) ) { tep_session_id($HTTP_GET_VARS[tep_session_name()]); } // start the session $session_started = false; if (SESSION_FORCE_COOKIE_USE == 'True') { tep_setcookie('cookie_test', 'please_accept_for_session', time()+60*60*24*30, $cookie_path, $cookie_domain); if (isset($HTTP_COOKIE_VARS['cookie_test'])) { tep_session_start(); $session_started = true; } } elseif (SESSION_BLOCK_SPIDERS == 'True') { $user_agent = strtolower(getenv('HTTP_USER_AGENT')); $spider_flag = false; if (tep_not_null($user_agent)) { $spiders = file(DIR_WS_INCLUDES . 'spiders.txt'); for ($i=0, $n=sizeof($spiders); $i<$n; $i++) { if (tep_not_null($spiders[$i])) { if (is_integer(strpos($user_agent, trim($spiders[$i])))) { $spider_flag = true; break; } } } } if ($spider_flag == false) { tep_session_start(); $session_started = true; } } else { tep_session_start(); $session_started = true; } // set SID once, even if empty $SID = (defined('SID') ? SID : ''); // verify the ssl_session_id if the feature is enabled if ( ($request_type == 'SSL') && (SESSION_CHECK_SSL_SESSION_ID == 'True') && (ENABLE_SSL == true) && ($session_started == true) ) { $ssl_session_id = getenv('SSL_SESSION_ID'); if (!tep_session_is_registered('SSL_SESSION_ID')) { $SESSION_SSL_ID = $ssl_session_id; tep_session_register('SESSION_SSL_ID'); } if ($SESSION_SSL_ID != $ssl_session_id) { tep_session_destroy(); tep_redirect(tep_href_link(FILENAME_SSL_CHECK)); } } // verify the browser user agent if the feature is enabled if (SESSION_CHECK_USER_AGENT == 'True') { $http_user_agent = getenv('HTTP_USER_AGENT'); if (!tep_session_is_registered('SESSION_USER_AGENT')) { $SESSION_USER_AGENT = $http_user_agent; tep_session_register('SESSION_USER_AGENT'); } if ($SESSION_USER_AGENT != $http_user_agent) { tep_session_destroy(); tep_redirect(tep_href_link(FILENAME_LOGIN)); } } // verify the IP address if the feature is enabled if (SESSION_CHECK_IP_ADDRESS == 'True') { $ip_address = tep_get_ip_address(); if (!tep_session_is_registered('SESSION_IP_ADDRESS')) { $SESSION_IP_ADDRESS = $ip_address; tep_session_register('SESSION_IP_ADDRESS'); } if ($SESSION_IP_ADDRESS != $ip_address) { tep_session_destroy(); tep_redirect(tep_href_link(FILENAME_LOGIN)); } } // create the shopping cart & fix the cart if necesary if (tep_session_is_registered('cart') && is_object($cart)) { if (PHP_VERSION < 4) { $broken_cart = $cart; $cart = new shoppingCart; $cart->unserialize($broken_cart); } } else { tep_session_register('cart'); $cart = new shoppingCart; } // include currencies class and create an instance require(DIR_WS_CLASSES . 'currencies.php'); $currencies = new currencies(); // include the mail classes require(DIR_WS_CLASSES . 'mime.php'); require(DIR_WS_CLASSES . 'email.php'); // set the language if (!tep_session_is_registered('language') || isset($HTTP_GET_VARS['language'])) { if (!tep_session_is_registered('language')) { tep_session_register('language'); tep_session_register('languages_id'); } include(DIR_WS_CLASSES . 'language.php'); $lng = new language(); if (isset($HTTP_GET_VARS['language']) && tep_not_null($HTTP_GET_VARS['language'])) { $lng->set_language($HTTP_GET_VARS['language']); } else { $lng->get_browser_language(); } $language = $lng->language['directory']; $languages_id = $lng->language['id']; } // include the language translations require(DIR_WS_LANGUAGES . $language . '.php'); // currency if (!tep_session_is_registered('currency') || isset($HTTP_GET_VARS['currency']) || ( (USE_DEFAULT_LANGUAGE_CURRENCY == 'true') && (LANGUAGE_CURRENCY != $currency) ) ) { if (!tep_session_is_registered('currency')) tep_session_register('currency'); if (isset($HTTP_GET_VARS['currency'])) { if (!$currency = tep_currency_exists($HTTP_GET_VARS['currency'])) $currency = (USE_DEFAULT_LANGUAGE_CURRENCY == 'true') ? LANGUAGE_CURRENCY : DEFAULT_CURRENCY; } else { $currency = (USE_DEFAULT_LANGUAGE_CURRENCY == 'true') ? LANGUAGE_CURRENCY : DEFAULT_CURRENCY; } } // navigation history if (tep_session_is_registered('navigation')) { if (PHP_VERSION < 4) { $broken_navigation = $navigation; $navigation = new navigationHistory; $navigation->unserialize($broken_navigation); } } else { tep_session_register('navigation'); $navigation = new navigationHistory; } $navigation->add_current_page(); // Shopping cart actions if (isset($HTTP_GET_VARS['action'])) { // redirect the customer to a friendly cookie-must-be-enabled page if cookies are disabled if ($session_started == false) { tep_redirect(tep_href_link(FILENAME_COOKIE_USAGE)); } if (DISPLAY_CART == 'true') { $goto = FILENAME_SHOPPING_CART; $parameters = array('action', 'cPath', 'products_id', 'pid'); } else { $goto = basename($PHP_SELF); if ($HTTP_GET_VARS['action'] == 'buy_now') { $parameters = array('action', 'pid', 'products_id'); } else { $parameters = array('action', 'pid'); } } switch ($HTTP_GET_VARS['action']) { // customer wants to update the product quantity in their shopping cart case 'update_product' : for ($i=0, $n=sizeof($HTTP_POST_VARS['products_id']); $i<$n; $i++) { if (in_array($HTTP_POST_VARS['products_id'][$i], (is_array($HTTP_POST_VARS['cart_delete']) ? $HTTP_POST_VARS['cart_delete'] : array()))) { $cart->remove($HTTP_POST_VARS['products_id'][$i]); } else { if (PHP_VERSION < 4) { // if PHP3, make correction for lack of multidimensional array. reset($HTTP_POST_VARS); while (list($key, $value) = each($HTTP_POST_VARS)) { if (is_array($value)) { while (list($key2, $value2) = each($value)) { if (ereg ("(.*)\]\[(.*)", $key2, $var)) { $id2[$var[1]][$var[2]] = $value2; } } } } $attributes = ($id2[$HTTP_POST_VARS['products_id'][$i]]) ? $id2[$HTTP_POST_VARS['products_id'][$i]] : ''; } else { $attributes = ($HTTP_POST_VARS['id'][$HTTP_POST_VARS['products_id'][$i]]) ? $HTTP_POST_VARS['id'][$HTTP_POST_VARS['products_id'][$i]] : ''; } $cart->add_cart($HTTP_POST_VARS['products_id'][$i], $HTTP_POST_VARS['cart_quantity'][$i], $attributes, false); } } tep_redirect(tep_href_link($goto, tep_get_all_get_params($parameters))); break; // customer adds a product from the products page case 'add_product' : if (isset($HTTP_POST_VARS['products_id']) && is_numeric($HTTP_POST_VARS['products_id'])) { $cart->add_cart($HTTP_POST_VARS['products_id'], $cart->get_quantity(tep_get_uprid($HTTP_POST_VARS['products_id'], $HTTP_POST_VARS['id']))+1, $HTTP_POST_VARS['id']); } tep_redirect(tep_href_link($goto, tep_get_all_get_params($parameters))); break; // performed by the 'buy now' button in product listings and review page case 'buy_now' : if (isset($HTTP_GET_VARS['products_id'])) { if (tep_has_product_attributes($HTTP_GET_VARS['products_id'])) { tep_redirect(tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $HTTP_GET_VARS['products_id'])); } else { $cart->add_cart($HTTP_GET_VARS['products_id'], $cart->get_quantity($HTTP_GET_VARS['products_id'])+1); } } tep_redirect(tep_href_link($goto, tep_get_all_get_params($parameters))); break; case 'notify' : if (tep_session_is_registered('customer_id')) { if (isset($HTTP_GET_VARS['products_id'])) { $notify = $HTTP_GET_VARS['products_id']; } elseif (isset($HTTP_GET_VARS['notify'])) { $notify = $HTTP_GET_VARS['notify']; } elseif (isset($HTTP_POST_VARS['notify'])) { $notify = $HTTP_POST_VARS['notify']; } else { tep_redirect(tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action', 'notify')))); } if (!is_array($notify)) $notify = array($notify); for ($i=0, $n=sizeof($notify); $i<$n; $i++) { $check_query = tep_db_query("select count(*) as count from " . TABLE_PRODUCTS_NOTIFICATIONS . " where products_id = '" . $notify[$i] . "' and customers_id = '" . $customer_id . "'"); $check = tep_db_fetch_array($check_query); if ($check['count'] < 1) { tep_db_query("insert into " . TABLE_PRODUCTS_NOTIFICATIONS . " (products_id, customers_id, date_added) values ('" . $notify[$i] . "', '" . $customer_id . "', now())"); } } tep_redirect(tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action', 'notify')))); } else { $navigation->set_snapshot(); tep_redirect(tep_href_link(FILENAME_LOGIN, '', 'SSL')); } break; case 'notify_remove' : if (tep_session_is_registered('customer_id') && isset($HTTP_GET_VARS['products_id'])) { $check_query = tep_db_query("select count(*) as count from " . TABLE_PRODUCTS_NOTIFICATIONS . " where products_id = '" . $HTTP_GET_VARS['products_id'] . "' and customers_id = '" . $customer_id . "'"); $check = tep_db_fetch_array($check_query); if ($check['count'] > 0) { tep_db_query("delete from " . TABLE_PRODUCTS_NOTIFICATIONS . " where products_id = '" . $HTTP_GET_VARS['products_id'] . "' and customers_id = '" . $customer_id . "'"); } tep_redirect(tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action')))); } else { $navigation->set_snapshot(); tep_redirect(tep_href_link(FILENAME_LOGIN, '', 'SSL')); } break; case 'cust_order' : if (tep_session_is_registered('customer_id') && isset($HTTP_GET_VARS['pid'])) { if (tep_has_product_attributes($HTTP_GET_VARS['pid'])) { tep_redirect(tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $HTTP_GET_VARS['pid'])); } else { $cart->add_cart($HTTP_GET_VARS['pid'], $cart->get_quantity($HTTP_GET_VARS['pid'])+1); } } tep_redirect(tep_href_link($goto, tep_get_all_get_params($parameters))); break; } } // include the who's online functions require(DIR_WS_FUNCTIONS . 'whos_online.php'); tep_update_whos_online(); // include the password crypto functions require(DIR_WS_FUNCTIONS . 'password_funcs.php'); // include validation functions (right now only email address) require(DIR_WS_FUNCTIONS . 'validations.php'); // split-page-results require(DIR_WS_CLASSES . 'split_page_results.php'); // infobox require(DIR_WS_CLASSES . 'boxes.php'); // auto activate and expire banners require(DIR_WS_FUNCTIONS . 'banner.php'); tep_activate_banners(); tep_expire_banners(); // auto expire special products require(DIR_WS_FUNCTIONS . 'specials.php'); tep_expire_specials(); // calculate category path if (isset($HTTP_GET_VARS['cPath'])) { $cPath = $HTTP_GET_VARS['cPath']; } elseif (isset($HTTP_GET_VARS['products_id']) && !isset($HTTP_GET_VARS['manufacturers_id'])) { $cPath = tep_get_product_path($HTTP_GET_VARS['products_id']); } else { $cPath = ''; } if (tep_not_null($cPath)) { $cPath_array = tep_parse_category_path($cPath); $cPath = implode('_', $cPath_array); $current_category_id = $cPath_array[(sizeof($cPath_array)-1)]; } else { $current_category_id = 0; } // include the breadcrumb class and start the breadcrumb trail require(DIR_WS_CLASSES . 'breadcrumb.php'); $breadcrumb = new breadcrumb; // include the breadcrumb_tags class and start the breadcrumb_tags trail - GemRock require(DIR_WS_CLASSES . 'breadcrumb_tags.php'); $breadcrumb_tags = new breadcrumb_tags; // added code ends - GR //$breadcrumb->add(HEADER_TITLE_TOP, HTTP_SERVER); //$breadcrumb->add(HEADER_TITLE_CATALOG, tep_href_link(FILENAME_DEFAULT)); // add category names or the manufacturer name to the breadcrumb trail // modified by GemRock for auto fill header tags if (isset($cPath_array)) { for ($i=0, $n=sizeof($cPath_array); $i<$n; $i++) { $categories_query = tep_db_query("select categories_name from " . TABLE_CATEGORIES_DESCRIPTION . " where categories_id = '" . (int)$cPath_array[$i] . "' and language_id = '" . (int)$languages_id . "'"); if (tep_db_num_rows($categories_query) > 0) { $categories = tep_db_fetch_array($categories_query); $breadcrumb->add($categories['categories_name'], tep_href_link(FILENAME_DEFAULT, 'cPath=' . implode('_', array_slice($cPath_array, 0, ($i+1))))); $breadcrumb_tags->add($categories['categories_name']); } else { break; } } } elseif (isset($HTTP_GET_VARS['manufacturers_id'])) { $manufacturers_query = tep_db_query("select manufacturers_name from " . TABLE_MANUFACTURERS . " where manufacturers_id = '" . (int)$HTTP_GET_VARS['manufacturers_id'] . "'"); if (tep_db_num_rows($manufacturers_query)) { $manufacturers = tep_db_fetch_array($manufacturers_query); $breadcrumb->add($manufacturers['manufacturers_name'], tep_href_link(FILENAME_DEFAULT, 'manufacturers_id=' . $HTTP_GET_VARS['manufacturers_id'])); $breadcrumb_tags->add($manufacturers['manufacturers_name']); } } // end of modified code - GR // add the products model to the breadcrumb trail if (isset($HTTP_GET_VARS['products_id'])) { $model_query = tep_db_query("select products_model from " . TABLE_PRODUCTS . " where products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "'"); if (tep_db_num_rows($model_query)) { $model = tep_db_fetch_array($model_query); $breadcrumb->add($model['products_model'], tep_href_link(FILENAME_PRODUCT_INFO, 'cPath=' . $cPath . '&products_id=' . $HTTP_GET_VARS['products_id'])); } } // added code to prepare for the title tag, description tag & keywords tag - By Gemrock // IF IT'S FIRST TIME TO RUN, THEN ADD 3 NEW FIELDS - CAN BE DELETED ONCE RUN SUCCESSFULLY if (!mysql_query("SELECT title_tag FROM " . TABLE_PRODUCTS_DESCRIPTION)){ tep_db_query("ALTER TABLE " . TABLE_PRODUCTS_DESCRIPTION . " ADD COLUMN title_tag VARCHAR(255) NULL, ADD COLUMN desc_tag TEXT NULL, ADD COLUMN keywords_tag VARCHAR(255) NULL"); } if (!mysql_query("SELECT title_tag FROM " . TABLE_CATEGORIES_DESCRIPTION)){ tep_db_query("ALTER TABLE " . TABLE_CATEGORIES_DESCRIPTION . " ADD COLUMN title_tag VARCHAR(255) NULL, ADD COLUMN desc_tag TEXT NULL, ADD COLUMN keywords_tag VARCHAR(255) NULL"); } // END OF CODE ADDING FIELDS if (isset($HTTP_GET_VARS['products_id'])) { $header_tags_query = tep_db_query("select products_name, products_description, title_tag, desc_tag, keywords_tag from " . TABLE_PRODUCTS_DESCRIPTION . " where products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "' and language_id = '" . (int)$languages_id . "'"); if (tep_db_num_rows($header_tags_query)) { $header_tags = tep_db_fetch_array($header_tags_query); $header_tags[products_name]= trim($header_tags[products_name]); $header_tags[title_tag]= trim(strip_tags($header_tags[title_tag])); $header_tags[desc_tag]= trim(strip_tags($header_tags[desc_tag])); $header_tags[keywords_tag]= trim(strip_tags($header_tags[keywords_tag])); $header_tags[products_description] = substr(preg_replace('/\s\s+/', ' ',(strip_tags($header_tags[products_description]))),0,1000); // if a tag is less than 2 characters, then use default if (strlen($header_tags[title_tag])< 2) { //set product name as page title $header_tags[title_tag]= $header_tags[products_name]; } //add category name to page title if (strlen($categories['categories_name'])>1) $header_tags[title_tag] = $categories['categories_name'] . ' ' . $header_tags[title_tag]; if (strlen($manufacturers['manufacturers_name'])>1) $header_tags[title_tag] .= ' ' . $manufacturers['manufacturers_name'] . ' ' . $header_tags[title_tag]; if (strlen($header_tags[desc_tag])< 2) $header_tags[desc_tag] = $header_tags[products_description]; if (strlen($header_tags[keywords_tag])< 2) $header_tags[keywords_tag] = $header_tags[products_name]; } } // end of added code - By Gemrock // initialize the message stack for output messages require(DIR_WS_CLASSES . 'message_stack.php'); $messageStack = new messageStack; // set which precautions should be checked define('WARN_INSTALL_EXISTENCE', 'true'); define('WARN_CONFIG_WRITEABLE', 'false'); define('WARN_SESSION_DIRECTORY_NOT_WRITEABLE', 'true'); define('WARN_SESSION_AUTO_START', 'true'); define('WARN_DOWNLOAD_DIRECTORY_NOT_READABLE', 'true'); ?> This may not have been caused by your contribution. I had to remove Chemos Ultimate SEO's and cDynamic metatags before installing Headertags for Novices Regards Brent Quote Link to comment Share on other sites More sharing options...
GemRock Posted January 16, 2009 Author Share Posted January 16, 2009 the two configure.php files look fine so dont know where the dir_ws_admin in the url comes from. probably because of the template you are using. my contrib is compatible with chemo's ultimate seo urls but i don't know anything about dynamic meta tags altho general speaking there is no point to have two mate tags contribs installed in one shop at the same time. i suggest you ask some one with extensive osc experience to look into it. Ken Quote commercial support - unProtected channel, not to be confused with the forum with same name - open to everyone who need some professional help: either PM/email me, or go to my website (URL can be found in my profile). over 20 years of computer programming experience. 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.