sukrub Posted March 31, 2006 Posted March 31, 2006 I have insalled the HTC and STS on a fresh store. Now I am Testing - Some products show the Headers and some don't. I looked into the sts_display_output.php file, And I did not understand the reason for the line 177 if ($cPath && ($HTTP_GET_VARS['products_id'] < '20')) When I change it to if ($cPath && ($HTTP_GET_VARS['products_id'] < '0')) I can see my products names on the Title of the page. But still not the Category Names. Even Though the database has the Categorie's "Header Tags Category Title" as the name of the category or something I have entered manually. I am missing something, and Is there a reason for the Line 177. Your response would be greatly appriciated, Thanks. Quote
Guest Posted March 31, 2006 Posted March 31, 2006 There is no reason for the line 177, and you should try >'0' instead of <'0'. Quote
sukrub Posted March 31, 2006 Author Posted March 31, 2006 (edited) There is no reason for the line 177, and you should try >'0' instead of <'0'. When I did >'0' categories titles start working but the all products came back with osCommerce Title. When I skipped the Whole if ($cPath && ($HTTP_GET_VARS['products_id'] < '0')) Section I got everthing working. Here is how I fixed, please let me know If I would face a potential problems. // STS: ADD: Support for WebMakers.com's Header Tag Controller contribution // Capture the output // Modified to work with Article Manager (which uses custom headers) if ($use_ah_tags == 'true') { require(DIR_WS_INCLUDES . 'article_header_tags.php'); // don't process HTC - use headertags from article_header_tags echo '**** Article Header Tags ****<br>'; } else { require(STS_START_CAPTURE); /* START - Commented out By Sukru if ($cPath && ($HTTP_GET_VARS['products_id'] < '0')) { echo '**** Product ID < 20 ****<br>'; // RJW Begin Meta Tags Code if (file_exists(DIR_WS_INCLUDES . 'meta_tags.php')) { require(DIR_WS_INCLUDES . 'meta_tags.php'); echo '**** Meta Tags ****<br>'; } else { echo '<title>' . TITLE . $title . '</title>'; echo '**** NOOO Meta Tags ****<br>'; } // RJW End Meta Tags Code } else { STOP - Commented out By Sukru */ echo '**** Product ID > 20 ****<br>'; // BOF: WebMakers.com Changed: Header Tag Controller v1.0 // Replaced by header_tags.php if ( file_exists(DIR_WS_INCLUDES . 'header_tags.php') ) { require_once(DIR_WS_FUNCTIONS . 'clean_html_comments.php'); require_once(DIR_WS_FUNCTIONS . 'header_tags.php'); require(DIR_WS_INCLUDES . 'header_tags.php'); echo '**** Header Tags ****<br>'; } else { echo "<title>" . TITLE . $title . "</title>"; echo '**** NOOOO Header Tags ****<br>'; } // EOF: WebMakers.com Changed: Header Tag Controller v1.0 } $sts_block_name = 'headertags'; require(STS_STOP_CAPTURE); // ***Commented-Out by Sukru } // STS: EOADD: Support for WebMakers.com's Header Tag Controller contribution Edited March 31, 2006 by sukrub Quote
Guest Posted March 31, 2006 Posted March 31, 2006 I think it's ok now. You have commented out the "RJW Meta Tags" code, which is from a contribution that put the meta tags for the categories only. It is not needed anymore because now the HTC contribution can also handle the categories. Quote
sukrub Posted March 31, 2006 Author Posted March 31, 2006 Thank you. Sukru Boztepe I think it's ok now. You have commented out the "RJW Meta Tags" code, which is from a contribution that put the meta tags for the categories only. It is not needed anymore because now the HTC contribution can also handle the categories. Quote
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.
Note: Your post will require moderator approval before it will be visible.