swisspad Posted March 31, 2003 Share Posted March 31, 2003 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 More sharing options...
Ajeh Posted March 31, 2003 Share Posted March 31, 2003 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 More sharing options...
swisspad Posted March 31, 2003 Author Share Posted March 31, 2003 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 More sharing options...
Ajeh Posted March 31, 2003 Share Posted March 31, 2003 I hate when they hide those things in snail mail and we were suppose to like ... you know ... really read that stuff ... 8) Link to comment Share on other sites More sharing options...
Elmo Posted April 3, 2003 Share Posted April 3, 2003 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 More sharing options...
Ajeh Posted April 4, 2003 Share Posted April 4, 2003 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 More sharing options...
Elmo Posted April 4, 2003 Share Posted April 4, 2003 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 More sharing options...
Ajeh Posted April 4, 2003 Share Posted April 4, 2003 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 More sharing options...
Ajeh Posted April 4, 2003 Share Posted April 4, 2003 Note: rules are the same v1.0 or whatever version. Link to comment Share on other sites More sharing options...
alienated Posted April 10, 2003 Share Posted April 10, 2003 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 More sharing options...
Ajeh Posted April 10, 2003 Share Posted April 10, 2003 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 More sharing options...
alienated Posted April 12, 2003 Share Posted April 12, 2003 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 More sharing options...
Ajeh Posted April 12, 2003 Share Posted April 12, 2003 That will kill you every time ... php is so fussy that way ... 8) Link to comment Share on other sites More sharing options...
atlantis Posted June 16, 2004 Share Posted June 16, 2004 im using header teg contoller, however still only my index is listed, i have used the admin tools for the products, any advice would be a help. website www.zeppelinhc.com Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.