Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Header Tags Controller - Did I configure it the right way?


swisspad

Recommended Posts

I have a question about the contribution Header Tag Controller (HTC). I have successfully installed HTC and Switzerlands search engine www.search.ch finds my site. Please try the following example for searching. Go to www.search.ch and enter "fantelli syrah". You then will see two search engine results of my site www.winediscount.ch. 1. Question: Why are there two results? 2. Question: What does the long adress of the second link mean? By clicking on both of the links, I only come to my shop entry page, and not to the product itself. 3. Question: Why is the welcome text displayed twice? 4. Question: Can I arrange it, that the name of the product is displayed in the search enginges search result and that the link leads directly to the desired product? I would love to have the search result with OSCOMMERCE looking like the result of my second wine page (www.finewine.ch), constructed with ShopFactory. Try again www.search.ch with "mentor peter lehmann" and see the results? It leads directly to the desired product and the result of the search enginge makes sens. Can you help me? Thank you.

 

Greetings from Switzerland

 

Patrick E. Vuithier

www.winediscount.ch

Link to comment
Share on other sites

The spider picked up two addresses. The main one and then one with the osCsid

 

You need a sid killer for spiders so that does not happen.

 

The spider will pick up the description that is on the page it has the link for.

 

If you had 10 pages with the same description that is what they would read.

 

If you use the Header Tags Controller right it puts the product's name as the Title and that will appear on the search engine.

Link to comment
Share on other sites

Hi Linda,

 

Thank you for your help. My OSCOMMERCE-Specialist will immediately install SID-Killer. :-)

 

Patrick

 

P.S.: By the way, I did not forget my donation via PayPal I promised. I have to call the Credit Card Company this afternoon, because I have thrown away my bill. Pay Pal told me, that there is a four digit number on the bill that I have to enter to activate my PayPal account... :shock:

Link to comment
Share on other sites

I just found that according to the readme file for Header Tags Controller v2.0:

 

It says to replace

 

Old Line:

 

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

 

with 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

?>

 

But my php files under the /catalog have

 

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

 

instead of

 

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

 

Is it because when Header Tags Controller v2.0 was released, the oscommerce version at that time was using

 

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

 

?

 

And do we need to add the ";" in the code of Header Tags Controller v2.0:

 

<?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

}

Best regards,

 

Elmo

Link to comment
Share on other sites

It reads that way cause the silly writer of Header Tags Controller ... oh, umm ... that was me ... :shock:

 

Forgot to put the semi-colon in one part of the README.txt and only put it in the other part.

 

Regardless, the semi-colon belongs after the TITLE;

Link to comment
Share on other sites

Hi Linda, thanks very much for your reply. May I confirm if the only changes that need to make is to add the ";" in all those php files with that title tag under the /catalog directory?

 

On a different note, may I ask if you can inform us how we can modify the code such that the title tage will appear before the other two meta tags. Currently the two meta tags (description and keyword)'re by default being placed before the title tag. Thanks very much for your help.

Best regards,

 

Elmo

Link to comment
Share on other sites

According to the rules of the README.txt ... sans the error about the semi-colon ... *cough*

 

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

?>



NOTE: Rather than remove the original line, I used this block of code that uses the standard TITLE if the header_tags.php file does not exist.

Link to comment
Share on other sites

The meta tags are working fine but now i get the below error when selecting a product clicking the review button.

 

Fatal error: Call to undefined function: tep_get_header_tag_products_desc() in /home/petvet-s/public_html/includes/header_tags.php on line 169

 

The line it is referring to is below

if ( HTDA_PRODUCT_REVIEWS_INFO_ON=='1' ) {

       $the_desc= tep_get_header_tag_products_desc($HTTP_GET_VARS['reviews_id']) . ' ' . HEAD_DESC_TAG_ALL;

     } else {

       $the_desc= tep_get_header_tag_products_desc($HTTP_GET_VARS['reviews_id']);

 

I am confused as to where to start looking on this one. If some one can point me in the correct direction that would help heaps

 

I am using snapshot 20030127

Link to comment
Share on other sites

Re-read the README file.

 

You appear to have missed a step:

MODIFICATIONS TO FILES:

 

Add to /catalog/includes/application_top.php

 

// BOF: WebMakers.com Added: Header Tags Controller v1.0

 require(DIR_WS_FUNCTIONS . 'header_tags.php');

// Clean out HTML comments from ALT tags etc.

 require(DIR_WS_FUNCTIONS . 'clean_html_comments.php');

// Also used by: WebMakers.com Added: FREE-CALL FOR PRICE

// EOF: WebMakers.com Added: Header Tags Controller v1.0

 

 

NOTE: if already using FREE-CALL FOR PRICE Add-on you do not need to add the clean_html_comments.php to application_top as you should already have it there.

Link to comment
Share on other sites

Sorry :oops: i forgot to add in the below code to the includesapplication_top.php

 

// BOF: WebMakers.com Added: Header Tags Controller v1.0

 require(DIR_WS_FUNCTIONS . 'header_tags.php');

// Clean out HTML comments from ALT tags etc.

 require(DIR_WS_FUNCTIONS . 'clean_html_comments.php');

// Also used by: WebMakers.com Added: FREE-CALL FOR PRICE

// EOF: WebMakers.com Added: Header Tags Controller v1.0

Link to comment
Share on other sites

  • 1 year later...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...