Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

[Contribution] Header Tags Controller for Admin MS 2.2


Farrukh

Recommended Posts

Hi, guys, I just wonder if there is any other ways that I only need to modify the OSC code directly??

 

like what is the metatag code looks like with all index.php??

 

for example mine (I just took a part of <head></head> code of index.php),

<head>

<TITLE>My title</TITLE>

<meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>">

<META name="keywords" content="My keywords">

<META name="description" content="My description">

<title><?php echo TITLE; ?></title>

<base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>">

<link rel="stylesheet" type="text/css" href="stylesheet.css">

</head>

 

Is this right for index.php???? Did I do it right?? ;) ...and also any experts could tell me how to check that if this works......because I search myself ....and not like within the 1000 search results..... :unsure: :( ........please help :(

OS-commerce is great, but with other magical contributions, that is just so "COOL"!

Link to comment
Share on other sites

  • Replies 4.6k
  • Created
  • Last Reply

Top Posters In This Topic

Hi, guys, I just wonder if there is any other ways that I only need to modify the OSC code directly??

 

like what is the metatag code looks like with all index.php??

 

for example mine (I just took a part of <head></head> code of index.php),

 

<head>

<TITLE>My title</TITLE>

<meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>">

<META name="keywords" content="My keywords">

<META name="description" content="My description">

<title><?php echo TITLE; ?></title>

<base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>">

<link rel="stylesheet" type="text/css" href="stylesheet.css">

</head>

 

Is this right for index.php???? Did I do it right?? ;) ...and also any experts could tell me how to check that if this works......because I search myself ....and not like within the 1000 search results..... :unsure: :( ........please help :(

You have title declared twice and you don't have HTC installed for this file. From the instructions:

Replace the existing line in all files that you want to use the Header Tags Controller:

 

Old Line:

 

<title><?php echo TITLE ?></title>

 

New Lines:

 

<?php

// BOF: WebMakers.com Changed: Header Tag Controller v1.0

// Replaced by header_tags.php

if ( file_exists(DIR_WS_INCLUDES . 'header_tags.php') ) {

  require(DIR_WS_INCLUDES . 'header_tags.php');

} else {

?>

  <title><?php echo TITLE ?></title>

<?php

}

// EOF: WebMakers.com Changed: Header Tag Controller v1.0

?>

Once you have it installed correctly, look at the title in the browser. It should match what you have declared for that page in includes/languages/english/header_tags.php.

 

HTH,

Jack

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

Hi, Jack, Thank you so much, but I wonder if I don't need to install this contri, and am able just to modify the code with the metatag that i want, then what code should it be tho??.....and that is why i post the code that i did and wonder if that is right... ;) :huh:

 

thanks :rolleyes:

OS-commerce is great, but with other magical contributions, that is just so "COOL"!

Link to comment
Share on other sites

Ahh, I see. You don't have to install the contribution and you can edit the meta tags by hand. However, you have to do it to all of your files that use them. That's about 30-40 on average. Some would argue they are nort all needed but I disagree. And what about the meta tags and title for your product pages? There is an alternative to HTC that will allow you to set them easily. I don't have a link but it's here in the forum somewhere. But that's the purpose of HTC. It puts everything in one file so you can easily change things. As far as the code being correct, as I mentioned, you have <title> declared twice. As for the meta tags, to see if they are correct, just view your source in a browser and make sure they appear as you want.

 

Jack

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

Hi Everyone,

 

I have been usiig the meta tag controller on a few sites for a while now and i have been noticing that in search engines like google etc. My Description is actual not what I was hopiig it to be.

 

Instead of using the default description or the descriptoins I enter on the meta_description on catalouge.php in amin I get stuff like

 

PleaseSelect..( from my manufacturer dropdown list) Login, SPecials, in other words the actual text content on my screen from top to bottom.

 

am i overiding the meta desctriptions in the contribution by using some other meta tags?

 

Here is an example of one of my page head

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<!-- BOF: Generated Meta Tags -->
 <META NAME="Reply-to" CONTENT="[email protected]">
 <META NAME="Description" Content="When the beauty that is Bel Ami visits the glory that is Greece, the mating of these natural wonders is nothing short of spectacular.">
 <META NAME="Keywords" CONTENT="greek, holiday,  Tommy Hansen,Julian Armanis,Mark Aubrey, Alan Connery,Jeff Daniels,Scott Hannah,Gilles Marais,Jason Paradis, George Durory">
 <title>Cruising the Aegean</title>
<!-- EOF: Generated Meta Tags -->

Link to comment
Share on other sites

Michael - I just went through this recently. Turns out that google doesn't use the meta-tags as they are intended. Google might use them to help generate a page description but that seems to be a hit-or-miss situation determined by googles undisclosed guidelines. What they do is generate a description from your page. That's why you are seeing the contents of your page showing up. If you have a phase you want to have listed, you may improve your chances by using that phase many times on your page. Other than that, you have no control over it whatsoever as far as google is concerned. Yahoo does use the meta tags, or at least they did in my case, so you don't want to ignore the tags altogether.

 

Jack

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

Michael - I just went through this recently. Turns out that google doesn't use the meta-tags as they are intended. Google might use them to help generate a page description but that seems to be a hit-or-miss situation determined by googles undisclosed guidelines. What they do is generate a description from your page. That's why you are seeing the contents of your page showing up. If you have a phase you want to have listed, you may improve your chances by using that phase many times on your page. Other than that, you have no control over it whatsoever as far as google is concerned. Yahoo does use the meta tags, or at least they did in my case, so you don't want to ignore the tags altogether.

 

Jack

Thanks Jack,

 

I didn't realize that google worked that way. I guess it is a way for them to get actual text information without bogus header information that would mislead the user to certain pages.. Interesting..

 

Thanks for the info.. appreciate it..

 

Mike

Link to comment
Share on other sites

Hi,

I'm really just not getting it. This is my first contribution installation and I'm about at my wits end. This board has been a great help, but now I'm on the admin section. I am just totally confused and can't seem to find the answers anywhere. Let me know if I've missed something, my eyes are pretty crossed right now. But anyway, When it says "Find the following in admin/includes/function/general.php" I can find the code in it, but what then. Do you upload it after it is all done or what. I am so new and I know it really shows. I just had to restore my backup for the second time, so I guess I'm a little over my head. I'm used to miva and this is soo much different. Any help will be greatly appreciated. Feel free to email me with any help.

 

Thanks

Cyndi

Is it reality or just a dream, for some there is no difference.

Link to comment
Share on other sites

Cyndi - for the particular part you mention, it says to find the given section of code, which you have done, and then after it you copy the section of code that follows the sentence "Add the following underneath:." So the code will end up looking like

 function tep_get_products_description($product_id, $language_id) {
   $product_query = tep_db_query("select products_description from " . TABLE_PRODUCTS_DESCRIPTION . " where products_id = '" . (int)$product_id . "' and language_id = '" . (int)$language_id . "'");
   $product = tep_db_fetch_array($product_query);

   return $product['products_description'];
 }

 function tep_get_products_head_title_tag($product_id, $language_id) {
   $product_query = tep_db_query("select products_head_title_tag from " . TABLE_PRODUCTS_DESCRIPTION . " where products_id = '" . (int)$product_id . "' and language_id = '" . (int)$language_id . "'");
   $product = tep_db_fetch_array($product_query);

   return $product['products_head_title_tag'];
 }

 function tep_get_products_head_desc_tag($product_id, $language_id) {
   $product_query = tep_db_query("select products_head_desc_tag from " . TABLE_PRODUCTS_DESCRIPTION . " where products_id = '" . (int)$product_id . "' and language_id = '" . (int)$language_id . "'");
   $product = tep_db_fetch_array($product_query);

   return $product['products_head_desc_tag'];
 }

 function tep_get_products_head_keywords_tag($product_id, $language_id) {
   $product_query = tep_db_query("select products_head_keywords_tag from " . TABLE_PRODUCTS_DESCRIPTION . " where products_id = '" . (int)$product_id . "' and language_id = '" . (int)$language_id . "'");
   $product = tep_db_fetch_array($product_query);

   return $product['products_head_keywords_tag'];
 }

Once you reach that point, save the file and upload it to your host. If you are still confused email me and I can go into more detail instead of posting here.

 

Hang in there. Just about everyone starts off the way you are. Actually, you are ahead of the game since you realized you needed to have a backup. Many don't do that.

 

Jack

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

Hi,

 

We have a problem with our meta tags.....

 

This is how our first page looks http://www.lowcarbsonline.com

 

<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> 
?<title>Low Carb Foods -- Low Carbs Online</title>
?<META NAME="Description" Content=" ">
?<META NAME="Keywords" CONTENT=" ">
<!-- BOF: Generated Meta Tags -->
?<META NAME="Reply-to" CONTENT="[email protected]">
<!-- EOF: Generated Meta Tags -->
<base href="http://www.lowcarbsonline.com/">
<link rel="stylesheet" type="text/css" href="stylesheet.css">
</head>

 

As you can see there are no Meta tags or keywords included. Also, the <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> is before the title page.

 

This is one of our categories pages:

 

http://www.lowcarbsonline.com/index.php/ca...tillas/cPath/36

 

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

? <title>? Low Carb Tortillas</title>

? <META NAME="Description" Content=" ">

? <META NAME="Keywords" CONTENT=" ">

<!-- BOF: Generated Meta Tags -->

? <META NAME="Reply-to" CONTENT="[email protected]">

<!-- EOF: Generated Meta Tags -->

<base href="http://www.lowcarbsonline.com/">

<link rel="stylesheet" type="text/css" href="stylesheet.css">

</head>

 

As you can see the same thing.

 

Finally, here is a product page http://www.lowcarbsonline.com/product_info...products_id/424

 

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

? <title> Low Carb Tortillas - Vita's Tortillas - Garlic & Herb</title>

? <META NAME="Description" Content="For a healthy dietary choice, our 7" Low Carb Tortillas have a "net carb" value of 5.6 grams. Net Carbs: 5.6g per tortilla. ">

? <META NAME="Keywords" CONTENT="Atkins Diet, Low Carb Foods, Low Carb Food, Low Carb Bread, Low Carb Pasta, Low Carb Chocolate, Low Carb Food. ">

<!-- BOF: Generated Meta Tags -->

? <META NAME="Reply-to" CONTENT="[email protected]">

<!-- EOF: Generated Meta Tags -->

<base href="http://www.lowcarbsonline.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>

 

Here the meta tags and keywords are working. What is wrong. This site cannot get listed on Google so any help would be apreciated. Why do not the keywords title and meta tags show up properly in the other pages?

 

Thanks for your help.

Edited by SEO Consult
Link to comment
Share on other sites

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

? <title> Low Carb Tortillas - Vita's Tortillas - Garlic & Herb</title>

? <META NAME="Description" Content="For a healthy dietary choice, our 7" Low Carb Tortillas have a "net carb" value of 5.6 grams. Net Carbs: 5.6g per tortilla. ">

? <META NAME="Keywords" CONTENT="Atkins Diet, Low Carb Foods, Low Carb Food, Low Carb Bread, Low Carb Pasta, Low Carb Chocolate, Low Carb Food. ">

<!-- BOF: Generated Meta Tags -->

? <META NAME="Reply-to" CONTENT="[email protected]">

<!-- EOF: Generated Meta Tags -->

<base href="http://www.lowcarbsonline.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>

Tom - I don't think you have HTC installed correctly. Your last example shows the title tag outside of the <!-- BOF: Generated Meta Tags --> comment. Unless you have manually edited the code this is not how it should appear. If you post the code from your catalog/index.php file (just post the part up to <!-- EOF: Generated Meta Tags --> comment), it may be easier for someone to see the problem.

 

Jack

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

Hi,

 

Thank you for your fast responces. I did not install the contribution on this system. I am merely trying to optimize the site.

 

It seems as if the contribution was installed in January of 2004. Hence, I do not know if your update would fix this problem. I am not a PHP guy so I am not sure I know exactly what is going on. All I know is that I had a really hard time optimizing the site..:)

 

I have posted first our header_tags.php file:

 

<?php
// /catalog/includes/languages/english/header_tags.php
// WebMakers.com Added: Header Tags Generator v2.0
// Add META TAGS and Modify TITLE
//
// DEFINITIONS FOR /includes/languages/english/header_tags.php

// Define your email address to appear on all pages
define('HEAD_REPLY_TAG_ALL',STORE_OWNER_EMAIL_ADDRESS);

// For all pages not defined or left blank, and for products not defined
// These are included unless you set the toggle switch in each section below to OFF ( '0' )
// The HEAD_TITLE_TAG_ALL is included BEFORE the specific one for the page
// The HEAD_DESC_TAG_ALL is included AFTER the specific one for the page
// The HEAD_KEY_TAG_ALL is included BEFORE the specific one for the page
define('HEAD_TITLE_TAG_ALL','');
define('HEAD_DESC_TAG_ALL','');
define('HEAD_KEY_TAG_ALL','');

// DEFINE TAGS FOR INDIVIDUAL PAGES

// default.php
define('HTTA_DEFAULT_ON','1'); // Include HEAD_TITLE_TAG_ALL in Title
define('HTKA_DEFAULT_ON','1'); // Include HEAD_KEY_TAG_ALL in Keywords
define('HTDA_DEFAULT_ON','1'); // Include HEAD_DESC_TAG_ALL in Description
define('HEAD_TITLE_TAG_DEFAULT', '');
define('HEAD_DESC_TAG_DEFAULT','');
define('HEAD_KEY_TAG_DEFAULT','');

// product_info.php - if left blank in products_description table these values will be used
define('HTTA_PRODUCT_INFO_ON','1');
define('HTKA_PRODUCT_INFO_ON','1');
define('HTDA_PRODUCT_INFO_ON','1');
define('HEAD_TITLE_TAG_PRODUCT_INFO','');
define('HEAD_DESC_TAG_PRODUCT_INFO','');
define('HEAD_KEY_TAG_PRODUCT_INFO','');

// products_new.php - whats_new
define('HTTA_WHATS_NEW_ON','1');
define('HTKA_WHATS_NEW_ON','1');
define('HTDA_WHATS_NEW_ON','1');
define('HEAD_TITLE_TAG_WHATS_NEW','New Products');
define('HEAD_DESC_TAG_WHATS_NEW','');
define('HEAD_KEY_TAG_WHATS_NEW','');

// specials.php
// If HEAD_KEY_TAG_SPECIALS is left blank, it will build the keywords from the products_names of all products on special
define('HTTA_SPECIALS_ON','1');
define('HTKA_SPECIALS_ON','1');
define('HTDA_SPECIALS_ON','1');
define('HEAD_TITLE_TAG_SPECIALS','Specials');
define('HEAD_DESC_TAG_SPECIALS','');
define('HEAD_KEY_TAG_SPECIALS','');

// product_reviews_info.php and product_reviews.php - if left blank in products_description table these values will be used
define('HTTA_PRODUCT_REVIEWS_INFO_ON','1');
define('HTKA_PRODUCT_REVIEWS_INFO_ON','1');
define('HTDA_PRODUCT_REVIEWS_INFO_ON','1');
define('HEAD_TITLE_TAG_PRODUCT_REVIEWS_INFO','');
define('HEAD_DESC_TAG_PRODUCT_REVIEWS_INFO','');
define('HEAD_KEY_TAG_PRODUCT_REVIEWS_INFO','');

?>

 

 

 

Then here I have posted the index.php file:

 

<?php
/*
 $Id: index.php,v 1.1 2003/06/11 17:38:00 hpdl Exp $

 osCommerce, Open Source E-Commerce Solutions
 http://www.oscommerce.com

 Copyright (c) 2003 osCommerce

 Released under the GNU General Public License
*/


define('TEXT_MAIN', '<img src="images/lowcarbsonline.gif"><p>

<center>
<table border="0" cellpadding="0" style="border-collapse: collapse" width="100%" id="table1">
<tr>
 <td width="811">
 <p align="center">
 <font color="#5979AE" face="Verdana" size="2"><b>Welcome to the #1 
 most visited low carb store.</b></font></p>
 <p align="left">
<img src="images/check.jpg" align="right" width="238" height="81"><font face="Verdana" size="1">LOW CARBS ONLINE is an online store created by people just like You?People in 
           search of 
           a healthier lifestyle, who have discovered that <b>
a diet low in carbohydrates</b> 
           actually gives you more energy, makes you feel better, and makes you 
           lose weight.</font></p>
 <p align="left">
<font face="Verdana" size="1">We offer a detailed description of 
               hundreds of Low Carb Foods products including nutritional 
           facts. In addition, <b>we will not sell</b> you any products containing 
               ingredients not yet approved by the FDA, or any products 
               containing </font><b>
<font face="Verdana" size="1">Hydrogenated 
           Oils</font></b><font face="Verdana" size="1">, which can be damaging to your health.<br>
 <br>
 We are also committed to bringing you the best low carb foods products to the 
<b>best 
           prices available</b> on the market. </font></p>
 <p align="center">
<b><font face="Verdana" style="font-size: 9pt">Remember, we offer <br>
</font><font face="Verdana" style="font-size: 9pt" color="#FA820A">FREE shipping 
on all orders over $59
</font></b></p>
 <p align="center">
 ---------------------------------------------------------</p>
 <table border="0" cellpadding="0" style="border-collapse: collapse" width="100%" id="table3" height="170">
	 <tr>
               <td width="831" height="143" valign="top" align="center">
       <div align="center">
	 <table border="0" cellpadding="0" style="border-collapse: collapse" width="100%" id="table6">
   <tr>
  	 <td width="576" colspan="2">
  	 <p align="center"><font face="Verdana" size="1">
 <img border="0" src="http://www.lowcarbsonline.com/images/summer.gif" width="255" height="105"><br>
  	 <br>
  	 Do not miss our <b><font color="#FF3300">Summer Blow Out 
  	 Sale</font></b>. We have heavily discounted most of our 
  	 favorite brands and products. For example we are offering up 
  	 to <b><font color="#FF3300">40% off on Atkins Products</font></b>,
  	 <b><font color="#FF3300">20% off Low Carb Tortillas</font></b>, 
  	 and much much more. So <b><font color="#FF3300">hurry up</font></b> 
  	 and get your Low Carb favorites before we run out, and 
  	 before you go on vacation. <br>
  	 <br>
  	 Remember, <b><font color="#FF3300">it can be hard to stay 
  	 with the Low Carb Lifestyle</font></b> this summer<br> if you do 
  	 not stack up before your vacation.</font></p>
 <p align="center">
 ---------------------------------------------------------</p>
              	 </td>
   </tr>
   <tr>
  	 <td width="220">
  	 <p align="center"><font face="Verdana" size="1">
 <img border="0" src="http://www.lowcarbsonline.com/images/Atkins.jpg" width="150" height="100"></font><b><a href="http://www.lowcarbsonline.com/index.php?manufacturers_id=13"><font face="Verdana" size="2" color="#008080"><span style="text-decoration: none">
   </span>
               </font></a></b></td>
  	 <td width="356">
  	 <font face="Verdana" style="font-size: 9pt; font-weight: 700; text-decoration: underline" color="#5979AE">
  	 How Do I Start a Low Carb Lifestyle?</font><p>
  	 <font face="Verdana" size="1">Once you see how 
  	 easy it is to do Atkins and how impressive your results are, 
  	 you will surely want to learn more about making Atkins a 
  	 permanent way of living. </font></p>
  	 <p><font face="Verdana" size="1">People who 
  	 are already familiar with the Atkins approach may find this 
  	 site a helpful guide to stay with the Low Carb Lifestyle</font></p>
               <p align="left"><b>
               <font face="Verdana" size="1" color="#008080">
   <span style="text-decoration: none"><font color="#008080"><a href="http://www.lowcarbsonline.com/how_low_carb.htm" target="blank">- 
               Find Out More-</a></font></span></font></b></td>
   </tr>
	 </table>
 </div>
               </td>
               </tr>
	 <tr>
               <td width="831" height="27" valign="top" align="center">
 <p align="center">
 ---------------------------------------------------------</p>
               </td>
               </tr>
 </table>
 <div align="center">
	 <table border="0" cellpadding="0" style="border-collapse: collapse" width="93%" id="table7" height="153" cellspacing="5">
   <tr>
       <td height="143" valign="top" align="center">
       <table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="70%" id="table12" bordercolorlight="#008080" bordercolordark="#008080" height="136">
         <tr>
           <td width="92%" bgcolor="#AADD88" height="16"><b>
           <font face="Verdana" size="2" color="#FFFFFF"> Low Carb Forum</font></b></td>
         </tr>
         <tr>
           <td width="92%" height="66">
           <div align="center">
           <table border="0" cellpadding="0" cellspacing="5" style="border-collapse: collapse" bordercolor="#111111" width="238" id="table13" height="46">
             <tr>
               <td width="228" height="72" valign="top">
               <font face="Verdana, Helvetica, Sans Serif" size="1">Do you have 
   a question? Want to know how others are doing? Please visit our 
   new <b><font color="#FA820A">Low Carb Forum</font></b> to find answers or just chat with other lowcarbers.<br>
 </font></td>
             </tr>
             <tr>
               <td width="219" height="3" valign="top">
               <p align="right"><b>
               <font face="Verdana" size="1" color="#008080">
   <a href="http://www.lowcarbsonline.com/phpBB2">
   <span style="text-decoration: none">- 
               <font color="#008080">Go To The Forum</font> -</span></a></font><a href="http://www.lowcarbsonline.com/phpBB2"><font face="Verdana" size="2" color="#008080"><span style="text-decoration: none">
   </span>
               </font></a></b>
               </td>
             </tr>
             </table>
           </div>
           </td>
         </tr>
       </table>
       </td>
       <td valign="top" height="143" align="center">
       <table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="70%" id="table15" bordercolorlight="#008080" bordercolordark="#008080" height="136">
         <tr>
           <td width="82%" bgcolor="#AADD88" height="16"><b>
           <font face="Verdana" size="2" color="#FFFFFF"> In The News</font></b></td>
         </tr>
         <tr>
           <td width="82%" height="119">
           <div align="center">
           <table border="0" cellpadding="0" cellspacing="5" style="border-collapse: collapse" bordercolor="#111111" width="238" id="table16" height="46">
             <tr>
               <td width="228" height="72" valign="top">
               <font face="Verdana, Helvetica, Sans Serif" size="1">Want to 
               find out more about low carb diets, or see what specialists say 
               about it? <br>
               Take a look at our <b>
               <font color="#FF9900">News section</font></b>, and you will find 
   the latest Low Carb News in the world.<br>
  </font> </td>
             </tr>
             <tr>
               <td width="219" height="3" valign="top">
               <p align="right"><b>
               <font face="Verdana" size="1" color="#008080">
   <a href="http://www.lowcarbsonline.com/low_carb_news.php">
   <span style="text-decoration: none">- 
               <font color="#008080">Read more</font> -</span></a></font><a href="http://www.lowcarbsonline.com/low_carb_news.php"><font face="Verdana" size="2" color="#008080"><span style="text-decoration: none">
   </span>
               </font></a></b></td>
               </tr>
           </table>
           </div>
           </td>
         </tr>
       </table>
       </td>
      	 </tr>
	 </table>
 </div>
 </td>
 <td width="20" rowspan="2">
  </td>
</tr>
<tr>
 <td width="811">
  </td>
 </tr>
</table>





<p><p>
<!--begin clixGalore code, copyright 2004 -->

<img src="http://www.is1.clixGalore.com/AdvClick.aspx?AdID=2872" height="0" width="0" border="0">

<!--end clixGalore code -->



');



define('TABLE_HEADING_NEW_PRODUCTS', 'New Products For %s');
define('TABLE_HEADING_UPCOMING_PRODUCTS', 'Upcoming Products');
define('TABLE_HEADING_DATE_EXPECTED', 'Date Expected');

if ( ($category_depth == 'products') || (isset($HTTP_GET_VARS['manufacturers_id'])) ) {
 define('HEADING_TITLE', '');
 define('TABLE_HEADING_IMAGE', '');
 define('TABLE_HEADING_MODEL', 'Model');
 define('TABLE_HEADING_PRODUCTS', 'Product Name');
 define('TABLE_HEADING_MANUFACTURER', 'Manufacturer');
 define('TABLE_HEADING_QUANTITY', 'Quantity');
 define('TABLE_HEADING_PRICE', 'Price');
 define('TABLE_HEADING_WEIGHT', 'Weight');
 define('TABLE_HEADING_BUY_NOW', 'Buy Now');
 define('TEXT_NO_PRODUCTS', 'There are no products to list in this category.');
 define('TEXT_NO_PRODUCTS2', 'There is no product available from this manufacturer.');
 define('TEXT_NUMBER_OF_PRODUCTS', 'Number of Products: ');
 define('TEXT_SHOW', '<b>Show:</b>');
 define('TEXT_BUY', 'Buy 1 \'');
 define('TEXT_NOW', '\' now');
 define('TEXT_ALL_CATEGORIES', 'All Categories');
 define('TEXT_ALL_MANUFACTURERS', 'All Manufacturers');
} elseif ($category_depth == 'top') {
 define('HEADING_TITLE', '');
} elseif ($category_depth == 'nested') {
 define('HEADING_TITLE', 'Categories');
}
?>

 

There are no title or meta tags here. How come?

 

Below is the header.php file....

 

 

<?php
/*
 $Id: header.php,v 1.42 2003/06/10 18:20:38 hpdl Exp $

 osCommerce, Open Source E-Commerce Solutions
 http://www.oscommerce.com

 Copyright (c) 2003 osCommerce

 Released under the GNU General Public License
*/

// check if the 'install' directory exists, and warn of its existence
 if (WARN_INSTALL_EXISTENCE == 'true') {
   if (file_exists(dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/install')) {
     $messageStack->add('header', WARNING_INSTALL_DIRECTORY_EXISTS, 'warning');
   }
 }

// check if the configure.php file is writeable
 if (WARN_CONFIG_WRITEABLE == 'true') {
   if ( (file_exists(dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/includes/configure.php')) && (is_writeable(dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/includes/configure.php')) ) {
     $messageStack->add('header', WARNING_CONFIG_FILE_WRITEABLE, 'warning');
   }
 }

// check if the session folder is writeable
 if (WARN_SESSION_DIRECTORY_NOT_WRITEABLE == 'true') {
   if (STORE_SESSIONS == '') {
     if (!is_dir(tep_session_save_path())) {
       $messageStack->add('header', WARNING_SESSION_DIRECTORY_NON_EXISTENT, 'warning');
     } elseif (!is_writeable(tep_session_save_path())) {
       $messageStack->add('header', WARNING_SESSION_DIRECTORY_NOT_WRITEABLE, 'warning');
     }
   }
 }

// check session.auto_start is disabled
 if ( (function_exists('ini_get')) && (WARN_SESSION_AUTO_START == 'true') ) {
   if (ini_get('session.auto_start') == '1') {
     $messageStack->add('header', WARNING_SESSION_AUTO_START, 'warning');
   }
 }

 if ( (WARN_DOWNLOAD_DIRECTORY_NOT_READABLE == 'true') && (DOWNLOAD_ENABLED == 'true') ) {
   if (!is_dir(DIR_FS_DOWNLOAD)) {
     $messageStack->add('header', WARNING_DOWNLOAD_DIRECTORY_NON_EXISTENT, 'warning');
   }
 }

 if ($messageStack->size('header') > 0) {
   echo $messageStack->output('header');
 }   

///////////////////    
///////////////////        
// [0001] BOF: WebMakers.com Added: Center Shop
// This goes before any other table of the shop
//
// Is center Shop ON/OFF ?
///////////////////

   if ( CENTER_SHOP_ON == 'on' ) {

///////////////////   
// [0001] Background Color ON/OFF and CellPadding for around the shop?
///////////////////

     if ( CENTER_SHOP_BACKGROUND_ON == 'on' ) {
?>
   <table width="100%" cellpadding="<?php echo CENTER_SHOP_PADDING; ?>" cellspacing="0" border="0" bgcolor="<?php echo CENTER_SHOP_BACKGROUND_COLOR_OUT; ?>">
     <tr><td>
<?php
     }
  
   
///////////////////    
// [0001] Shop Width Size and Shop Background Color
///////////////////
?>
   <table CELLSPACING="4" CELLPADDING="6" BORDER="<?php echo CENTER_SHOP_BORDER; ?>" width="<?php echo CENTER_SHOP_WIDTH; ?>" align="center" BGCOLOR="<?php echo CENTER_SHOP_BACKGROUND_COLOR; ?>">
     <tr><td BGColor="FFFFFF">
<?php
 
///////////////////
// [0001] The rest of this <td> statement is located at the end of footer.php
///////////////////
}
?>

<table border="0" border="0" width="100%" cellspacing="0" cellpadding="0">


<table border="0" width="100%" cellspacing="0" cellpadding="0">
 <tr class="header">
 

   <td valign="middle"><img src="images/lowcarb_header.jpg" width=900"></td>



 </tr>
</table>
<table border="0" width="900" cellspacing="0" cellpadding="1">
 <tr class="headerNavigation">
   <td class="headerNavigation">  <?php echo $breadcrumb->trail(' » '); ?></td>
   <td align="right" class="headerNavigation"><?php if (tep_session_is_registered('customer_id')) { ?><a href="<?php echo tep_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_LOGOFF; ?></a>  |  <?php } ?><a href="<?php echo tep_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_MY_ACCOUNT; ?></a>  |  <a href="<?php echo tep_href_link(FILENAME_SHOPPING_CART); ?>" class="headerNavigation"><?php echo HEADER_TITLE_CART_CONTENTS; ?></a>  |  <a href="<?php echo tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_CHECKOUT; ?></a>   </td>
 </tr>
</table>
<?php
 if (isset($HTTP_GET_VARS['error_message']) && tep_not_null($HTTP_GET_VARS['error_message'])) {
?>
<table border="0" width="100%" cellspacing="0" cellpadding="2">
 <tr class="headerError">
   <td class="headerError"><?php echo htmlspecialchars(urldecode($HTTP_GET_VARS['error_message'])); ?></td>
 </tr>
</table>
<?php
 }

 if (isset($HTTP_GET_VARS['info_message']) && tep_not_null($HTTP_GET_VARS['info_message'])) {
?>
<table border="0" width="100%" cellspacing="0" cellpadding="2">
 <tr class="headerInfo">
   <td class="headerInfo"><?php echo htmlspecialchars($HTTP_GET_VARS['info_message']); ?></td>
 </tr>
</table>
<?php
 }
?>

 

Does this help at all.....

 

I am really thankful for your help. This company have been in business for a year soon and have very few hits from Google and Yahoo.

Link to comment
Share on other sites

I am having a problem that has been mentioned previously but so far an answer has not arisen.

Everything seems to work fine except: the text entered into the 3 tag fields is not being updated to the database. I can enter the information manually into the database and it works fine but when entered via the new product page the information isn't retained.

I have reinstalled a few times just to make sure but keep coming up with the same problem. Any suggestions would be appreciated.

 

spoony

Link to comment
Share on other sites

Hi,

 

Thank you for your fast responces. I did not install the contribution on this system. I am merely trying to optimize the site.

 

It seems as if the contribution was installed in January of 2004. Hence, I do not know if your update would fix this problem. I am not a PHP guy so I am not sure I know exactly what is going on. All I know is that I had a really hard time optimizing the site..:)

 

I have posted first our header_tags.php file:

 

I am really thankful for your help. This company have been in business for a year soon and have very few hits from Google and Yahoo.

It's not my update, I'm just someone trying to help. You need to decide if you want to use HTC or not. If you do, then you need to install it properly. If you don't, then you should un-install what you have. A contribution that is not installed properly can cause you a lot of grief.

 

The code you posted doesn't have anything to do with meta tags. Two of the files were from the languages directory and the other from the includes. You need to look at the files in the root directory, unless you are using HTC.

 

Yes, you won't be getting very many visitors if the SE's cannot find you. You are on the right track as far as what is needed, you just need to decide what you want to do.

 

Jack

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

I am having a problem that has been mentioned previously but so far an answer has not arisen.

Everything seems to work fine except: the text entered into the 3 tag fields is not being updated to the database. I can enter the information manually into the database and it works fine but when entered via the new product page the information isn't retained.

I have reinstalled a few times just to make sure but keep coming up with the same problem. Any suggestions would be appreciated.

 

spoony

It's not a problem, this is the way it is supposed to work. You have to enter it either manually (one at a time) or via the Easy Populate contribution.

 

Jack

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

Hey Jack,

 

Thank you for your comments. The thing is that the the contribution is installed and all the products pages are working perfectly. The admin is working fine too.

 

However, the first page and the categories page does not work. That is why we are confused?

 

How can that be?

Edited by SEO Consult
Link to comment
Share on other sites

Sounds like it is not installed correctly on those pages. Try uploading the catalog/index.php file. But only cut and paste the part up to the </head> tag since the rest of the file has no relevance here.

 

Jack

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

I am having a problem that has been mentioned previously but so far an answer has not arisen.

Everything seems to work fine except: the text entered into the 3 tag fields is not being updated to the database. I can enter the information manually into the database and it works fine but when entered via the new product page the information isn't retained.

I have reinstalled a few times just to make sure but keep coming up with the same problem. Any suggestions would be appreciated.

 

I resolved this problem. Seems that even after multiple installs and checks I still didn't spot that I had replaced a piece of code in the file with the original code rather than the replacement code. Everything is now working perfectly.

Seems when it comes to PHP the human mind is the root of all evil.

 

Spoony

Link to comment
Share on other sites

Jack here it is.....

 

 

 

<head>

<meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>">

<?php

// BOF: WebMakers.com Changed: Header Tag Controller v1.0

// Replaced by header_tags.php

if ( file_exists(DIR_WS_INCLUDES . 'header_tags.php') ) {

  require(DIR_WS_INCLUDES . 'header_tags.php');

} else {

?>

  <title><?php echo TITLE ?></title>

<?php

}

// EOF: WebMakers.com Changed: Header Tag Controller v1.0

?>

<base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>">

<link rel="stylesheet" type="text/css" href="stylesheet.css">

</head>

Link to comment
Share on other sites

Jack here it is.....

 

 

 

<head>

<meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>">

<?php

// BOF: WebMakers.com Changed: Header Tag Controller v1.0

// Replaced by header_tags.php

if ( file_exists(DIR_WS_INCLUDES . 'header_tags.php') ) {

? require(DIR_WS_INCLUDES . 'header_tags.php');

} else {

?>

? <title><?php echo TITLE ?></title>

<?php

}

// EOF: WebMakers.com Changed: Header Tag Controller v1.0

?>

<base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>">

<link rel="stylesheet" type="text/css" href="stylesheet.css">

</head>

Hmm, I visited your site and viewed the source and got this:

<head>
<title>Internet Consulting - Hedrup & Nordberg Consulting</title>
<meta name="KEYWORDS" content="Pay Per Click, Overture, Google, Enhance, Findwhat, web design, internet konsulting, Hedrup & Nordberg Consulting, Search Engine Optimization, s?kmotor optimizering, s?kmotor optimiering, s?kmotoroptimering, webdesign
<meta http-equiv="Content-Language" content="en-us">
<meta name="GENERATOR" content="Microsoft FrontPage 6.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">

</head>

Which is not even close. I tried typing in http://www.hedrup.com/index,php and it failed. Is your shop located elsewhere?

 

BTW, it shouldn't cause your problem here but the statement

<title><?php echo TITLE ?></title>

is missing a semi-colon. It should be

<title><?php echo TITLE; ?></title>

This is a known bug in the contribution.

 

Jack

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

Hi,

 

Please help. I have just finished the admin catalog part and when I log into my admin and click on catalog, I get this error:

 

Parse error: parse error, unexpected T_IF, expecting ')' in /home/xqecmstb/public_html/admin/categories.php on line 281

 

Here is my code from admin catalog beginning on line 281:

 

if ($action == 'insert_product') {

$insert_sql_data = array('products_id' => $products_id,

'language_id' => $language_id);

 

Other than the admin area, my site is still up and working. It is still in the testing phase thank goodness.

 

Thanks for any help,

 

Cyndi

Is it reality or just a dream, for some there is no difference.

Link to comment
Share on other sites

Hi,

 

Ok, I re did everything and no parse errors, but it's not working. Everything looks the same as before I installed. I double checked the codes and the ones that need to be changed are changed. I just don't get it. I double checked that the sql tables were added in my data base and they are. I just don't know. Any ideas?

 

Cyndi

Is it reality or just a dream, for some there is no difference.

Link to comment
Share on other sites

Cyndi - You have to add any files added to admin via the administrator section. If not, what do you see when you try to edit a product? Is there a spot for the meta tags? Maybe you could take a snapshot and display it.

 

Jack

Edited by Johnson

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...