Guest Posted June 7, 2004 Share Posted June 7, 2004 I'm having problems with this contribution. http://www.oscommerce.com/forums/index.php?showtopic=59043&st=0 Check out my site www.dreamwayonline.com for some reason i cant find this in this file 3. Open catalog/includes/application_top.php: find the code: define('FILENAME_UPCOMING_PRODUCTS', 'upcoming_products.php'); under it, add: define('FILENAME_ALL_PRODUCTS', 'all_products.php'); define('FILENAME_SITE_MAP', 'site_map.php'); or use this file if you prefer it (v1.2 TexaStar.com): define('FILENAME_SITE_MAP', 'site_map_12.php'); Can you give me any help? Also, I do not like my site map where they suggest it. I want it just in my info box like i have it. Is there a reason for all of that other code to for when its supposed to be at the top? how can i get the engines to see my all products page..and is this legal by google? Link to comment Share on other sites More sharing options...
mark27uk3 Posted June 7, 2004 Share Posted June 7, 2004 Try looking in filenames.php instead of application_top.php Mark Lifes a bitch, then you marry one, then you die! Link to comment Share on other sites More sharing options...
oldworldcharms Posted February 6, 2005 Share Posted February 6, 2005 I have this contribution partially install. My Site Map I have two questions about this contributions Second Column The second column is what I have in the Item Model field when adding an item. Is there a way to get rid of this? Sid Killer File I am using SID killer but can't find it in my files. Can you please tell me where its at? If you use IAN SID Killer contribution, find the code: if (basename($_SERVER['HTTP_REFERER']) == 'allprods.php' ) $kill_sid = true; under it, add: if (basename($_SERVER['HTTP_REFERER']) == 'all_products.php' ) $kill_sid = true; if (basename($_SERVER['HTTP_REFERER']) == 'site_map.php' ) $kill_sid = false; thanks Try looking in filenames.php instead of application_top.php Mark <{POST_SNAPBACK}> Link to comment Share on other sites More sharing options...
oldworldcharms Posted February 6, 2005 Share Posted February 6, 2005 I found the answer to my first question. but I am still very confused. The contribution says to upload header_tags.php into the includes file but my file looks very different from the file to upload. Where do I put this in my file Your file <?php if ( file_exists(DIR_WS_FUNCTIONS . 'images_js.php') ) { require(DIR_WS_FUNCTIONS . 'images_js.php'); tex_preLoadImages(); tex_popupWindow(); } ?> My File <?php // /catalog/includes/header_tags.php // WebMakers.com Added: Header Tags Generator v2.3 // Add META TAGS and Modify TITLE // // NOTE: Globally replace all fields in products table with current product name just to get things started: // In phpMyAdmin use: UPDATE products_description set PRODUCTS_HEAD_TITLE_TAG = PRODUCTS_NAME // require(DIR_WS_LANGUAGES . $language . '/' . 'header_tags.php'); echo '<!-- BOF: Generated Meta Tags -->' . "\n"; $the_desc=''; $the_key_words=''; $the_title=''; //store title, description info from the database $query = ("select stores_title, stores_desc, stores_keywords, stores_classification, stores_distribution, stores_author, stores_robots from stores where stores_id = '" . STORES_ID . "'"); $result = tep_db_query($query); $Homepage_text_stores = tep_db_fetch_array($result); $the_category_query = tep_db_query("select cd.categories_name, cd.categories_head_desc_tag, cd.categories_head_keywords_tag from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where c.categories_id = '" . (int)$current_category_id . "' and cd.categories_id = '" . (int)$current_category_id . "' and cd.language_id = '" . (int)$languages_id . "'"); $the_category = tep_db_fetch_array($the_category_query); // Define specific settings per page: switch (true) { // INDEX.PHP case (strstr($_SERVER['PHP_SELF'],FILENAME_DEFAULT) or strstr($PHP_SELF,FILENAME_DEFAULT) ): $the_manufacturers_query= tep_db_query("select manufacturers_name from " . TABLE_MANUFACTURERS . " where manufacturers_id = '" . (int)$HTTP_GET_VARS['manufacturers_id'] . "'"); $the_manufacturers = tep_db_fetch_array($the_manufacturers_query); if (HTDA_DEFAULT_ON=='1') { // modified to add keywords in home page gs if (empty($the_category['categories_name'])) { if (empty($the_manufacturers['manufacturers_name'])) { $the_desc = STORE_METATAG_DESCRIPTION; } else { $the_desc= HEAD_DESC_TAG_DEFAULT . ' ' . HEAD_DESC_TAG_ALL . ' ' . $the_category['categories_head_desc_tag']; } } else { $the_desc = $the_category['categories_head_desc_tag']; } } if (HTKA_DEFAULT_ON=='1') { // modified to add keywords in home page gs if (empty($the_category['categories_name'])) { if (empty($the_manufacturers['manufacturers_name'])) { $the_key_words = STORE_METATAG_KEYWORDS; } else { $the_key_words= HEAD_KEY_TAG_ALL . ' ' . HEAD_KEY_TAG_DEFAULT . ' ' . $the_category['categories_head_keywords_tag']; } } else { $the_key_words= $the_category['categories_head_keywords_tag']; //HEAD_KEY_TAG_DEFAULT . ' ' } } if (HTTA_DEFAULT_ON=='1') { // modified to elimninate any hyphen form appearing in the title on the home page gs if (empty($the_category['categories_name'])) { if (empty($the_manufacturers['manufacturers_name'])) { $the_title = STORE_WEBSITE_TITLE; } else { $the_title= HEAD_TITLE_TAG_DEFAULT . " " . $the_category['categories_name'] . $the_manufacturers['manufacturers_name'] . ' - ' . STORE_WEBSITE_TITLE; } } else { $the_title= HEAD_TITLE_TAG_DEFAULT . " " . $the_category['categories_name'] . $the_manufacturers['manufacturers_name'] . ' - ' . STORE_WEBSITE_TITLE; } } break; // PRODUCT_INFO.PHP case ( strstr($_SERVER['PHP_SELF'],'product_info.php') or strstr($PHP_SELF,'product_info.php') ): // $the_product_info_query = tep_db_query("select p.products_id, pd.products_name, pd.products_description, pd.products_head_title_tag, pd.products_head_keywords_tag, pd.products_head_desc_tag, p.products_model, p.products_quantity, p.products_image, pd.products_url, p.products_price, p.products_tax_class_id, p.products_date_added, p.products_date_available, p.manufacturers_id from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd where p.products_id = '" . $HTTP_GET_VARS['products_id'] . "' and pd.products_id = '" . $HTTP_GET_VARS['products_id'] . "'"); $the_product_info_query = tep_db_query("select pd.language_id, p.products_id, pd.products_name, pd.products_description, pd.products_head_title_tag, pd.products_head_keywords_tag, pd.products_head_desc_tag, p.products_model, p.products_quantity, p.products_image, pd.products_url, p.products_price, p.products_tax_class_id, p.products_date_added, p.products_date_available, p.manufacturers_id from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd where p.products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "' and pd.products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "'" . " and pd.language_id ='" . (int)$languages_id . "'"); $the_product_info = tep_db_fetch_array($the_product_info_query); if (HTDA_PRODUCT_INFO_ON=='1') { if (empty($the_product_info['products_head_desc_tag'])) { $the_desc= HEAD_DESC_TAG_ALL; } else { $the_desc = $the_product_info['products_head_desc_tag']; } } /* if (empty($the_product_info['products_head_desc_tag'])) { $the_desc= HEAD_DESC_TAG_ALL; } else { if ( HTDA_PRODUCT_INFO_ON=='1' ) { $the_desc= $the_product_info['products_head_desc_tag'] . ' ' . HEAD_DESC_TAG_ALL; } else { $the_desc= $the_product_info['products_head_desc_tag']; } } */ if (HTDA_PRODUCT_INFO_ON=='1') { if (empty($the_product_info['products_head_keywords_tag'])) { $the_key_words= HEAD_KEY_TAG_ALL; } else { $the_key_words = $the_product_info['products_head_keywords_tag']; } } /* if (empty($the_product_info['products_head_keywords_tag'])) { $the_key_words= HEAD_KEY_TAG_ALL; } else { if ( HTKA_PRODUCT_INFO_ON=='1' ) { $the_key_words= $the_product_info['products_head_keywords_tag'] . ' ' . HEAD_KEY_TAG_ALL; } else { $the_key_words= $the_product_info['products_head_keywords_tag']; } } */ if (empty($the_product_info['products_head_title_tag'])) { $the_title= STORE_WEBSITE_TITLE; } else { if ( HTTA_PRODUCT_INFO_ON=='1' ) { $the_title= $the_product_info['products_head_title_tag'] . ' - ' . STORE_WEBSITE_TITLE ; } else { $the_title= $the_product_info['products_head_title_tag']; } } break; // PRODUCTS_NEW.PHP case ( strstr($_SERVER['PHP_SELF'],'products_new.php') or strstr($PHP_SELF,'products_new.php') ): if ( HEAD_DESC_TAG_WHATS_NEW!='' ) { if ( HTDA_WHATS_NEW_ON=='1' ) { $the_desc= HEAD_DESC_TAG_WHATS_NEW . ' ' . HEAD_DESC_TAG_ALL; } else { $the_desc= HEAD_DESC_TAG_WHATS_NEW; } } else { $the_desc= HEAD_DESC_TAG_ALL; } if ( HEAD_KEY_TAG_WHATS_NEW!='' ) { if ( HTKA_WHATS_NEW_ON=='1' ) { $the_key_words= HEAD_KEY_TAG_WHATS_NEW . ' ' . HEAD_KEY_TAG_ALL; } else { $the_key_words= HEAD_KEY_TAG_WHATS_NEW; } } else { $the_key_words= HEAD_KEY_TAG_ALL; } if ( HEAD_TITLE_TAG_WHATS_NEW!='' ) { if ( HTTA_WHATS_NEW_ON=='1' ) { $the_title= HEAD_TITLE_TAG_WHATS_NEW . ' - ' . STORE_WEBSITE_TITLE; } else { $the_title= HEAD_TITLE_TAG_WHATS_NEW; } } else { $the_title= STORE_WEBSITE_TITLE; } break; // SPECIALS.PHP case ( strstr($_SERVER['PHP_SELF'],'specials.php') or strstr($PHP_SELF,'specials.php') ): if ( HEAD_DESC_TAG_SPECIALS!='' ) { if ( HTDA_SPECIALS_ON=='1' ) { $the_desc= HEAD_DESC_TAG_SPECIALS . ' ' . HEAD_DESC_TAG_ALL; } else { $the_desc= HEAD_DESC_TAG_SPECIALS; } } else { $the_desc= HEAD_DESC_TAG_ALL; } if ( HEAD_KEY_TAG_SPECIALS=='' ) { // Build a list of ALL specials product names to put in keywords $new = tep_db_query("select p.products_id, pd.products_name, p.products_price, p.products_tax_class_id, p.products_image, s.specials_new_products_price from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd, " . TABLE_SPECIALS . " s where p.products_status = '1' and s.products_id = p.products_id and p.products_id = pd.products_id and pd.language_id = '" . (int)$languages_id . "' and s.status = '1' order by s.specials_date_added DESC "); $row = 0; $the_specials=''; while ($new_values = tep_db_fetch_array($new)) { $the_specials .= clean_html_comments($new_values['products_name']) . ', '; } if ( HTKA_SPECIALS_ON=='1' ) { $the_key_words= $the_specials . ' ' . HEAD_KEY_TAG_ALL; } else { $the_key_words= $the_specials; } } else { $the_key_words= HEAD_KEY_TAG_SPECIALS . ' ' . HEAD_KEY_TAG_ALL; } if ( HEAD_TITLE_TAG_SPECIALS!='' ) { if ( HTTA_SPECIALS_ON=='1' ) { $the_title= HEAD_TITLE_TAG_SPECIALS . ' - ' . STORE_WEBSITE_TITLE; } else { $the_title= HEAD_TITLE_TAG_SPECIALS; } } else { $the_title= STORE_WEBSITE_TITLE; } break; // PRODUCTS_REVIEWS_INFO.PHP and PRODUCTS_REVIEWS.PHP case ( strstr($_SERVER['PHP_SELF'],'product_reviews_info.php') or strstr($_SERVER['PHP_SELF'],'product_reviews.php') or strstr($PHP_SELF,'product_reviews_info.php') or strstr($PHP_SELF,'product_reviews.php') ): if ( HEAD_DESC_TAG_PRODUCT_REVIEWS_INFO=='' ) { if ( HTDA_PRODUCT_REVIEWS_INFO_ON=='1' ) { $the_desc= tep_get_header_tag_products_desc(isset($HTTP_GET_VARS['reviews_id'])) . ' ' . HEAD_DESC_TAG_ALL; } else { $the_desc= tep_get_header_tag_products_desc(isset($HTTP_GET_VARS['reviews_id'])); } } else { $the_desc= HEAD_DESC_TAG_PRODUCT_REVIEWS_INFO; } if ( HEAD_KEY_TAG_PRODUCT_REVIEWS_INFO=='' ) { if ( HTKA_PRODUCT_REVIEWS_INFO_ON=='1' ) { $the_key_words= tep_get_header_tag_products_keywords(isset($HTTP_GET_VARS['reviews_id'])) . ' ' . HEAD_KEY_TAG_ALL; } else { $the_key_words= tep_get_header_tag_products_keywords(isset($HTTP_GET_VARS['reviews_id'])); } } else { $the_key_words= HEAD_KEY_TAG_PRODUCT_REVIEWS_INFO; } if ( HEAD_TITLE_TAG_PRODUCT_REVIEWS_INFO=='' ) { if ( HTTA_PRODUCT_REVIEWS_INFO_ON=='1' ) { $the_title= tep_get_header_tag_products_title(isset($HTTP_GET_VARS['reviews_id'])) . ' - ' . HEAD_TITLE_TAG_ALL; } else { $the_title= tep_get_header_tag_products_title(isset($HTTP_GET_VARS['reviews_id'])); } } else { $the_title= HEAD_TITLE_TAG_PRODUCT_REVIEWS_INFO; } break; // ALL OTHER PAGES NOT DEFINED ABOVE default: //$the_desc= HEAD_DESC_TAG_ALL; // $the_key_words= HEAD_KEY_TAG_ALL; $the_title= STORE_WEBSITE_TITLE; break; // articles.PHP case ( strstr($_SERVER['PHP_SELF'],'articles.php') or strstr($PHP_SELF,'articles.php') ): // $the_category_query = tep_db_query("select cd.categories_name from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where c.categories_id = '" . (int)$current_category_id . "' and cd.categories_id = '" . (int)$current_category_id . "' and cd.language_id = '" . (int)$languages_id . "'"); // $the_category = tep_db_fetch_array($the_category_query); // $the_manufacturers_query= tep_db_query("select manufacturers_name from " . TABLE_MANUFACTURERS . " where manufacturers_id = '" . (int)$HTTP_GET_VARS['manufacturers_id'] . "'"); // $the_manufacturers = tep_db_fetch_array($the_manufacturers_query); //store title, description info from the database $query = ("select articles_head_title_tag, articles_head_desc_tag, articles_head_keywords_tag from articles_description" ); $result = tep_db_query($query); $Homepage_text_stores = tep_db_fetch_array($result); // where stores_id = '" . STORES_ID . "'" if (HTDA_DEFAULT_ON=='1') { // modified to add keywords in home page gs if (empty($the_category['categories_name'])) { if (empty($the_manufacturers['manufacturers_name'])) { $the_desc = $Homepage_text_stores['articles_head_desc_tag']; } else { $the_desc= HEAD_DESC_TAG_DEFAULT . ' ' . HEAD_DESC_TAG_ALL; } } else { $the_desc = HEAD_DESC_TAG_DEFAULT; } } if (HTKA_DEFAULT_ON=='1') { // modified to add keywords in home page gs if (empty($the_category['categories_name'])) { if (empty($the_manufacturers['manufacturers_name'])) { $the_key_words = $Homepage_text_stores['articles_head_keywords_tag']; } else { $the_key_words= HEAD_KEY_TAG_ALL . ' ' . HEAD_KEY_TAG_DEFAULT. ' ' . $the_category['categories_name']; } } else { $the_key_words= HEAD_KEY_TAG_DEFAULT; } } if (HTTA_DEFAULT_ON=='1') { // modified to elimninate any hyphen form appearing in the title on the home page gs if (empty($the_category['categories_name'])) { if (empty($the_manufacturers['manufacturers_name'])) { $the_title = $Homepage_text_stores['articles_head_title_tag']; } else { $the_title= HEAD_TITLE_TAG_DEFAULT . " " . $the_category['categories_name'] . $the_manufacturers['manufacturers_name'] . ' - ' . STORE_WEBSITE_TITLE; } } else { $the_title= HEAD_TITLE_TAG_DEFAULT . " " . $the_category['categories_name'] . $the_manufacturers['manufacturers_name'] . ' - ' . STORE_WEBSITE_TITLE; } } break; } echo '<title>' . $the_title . '</title>' . "\n"; echo ' <meta http-equiv="Content-Type" content="text/html; charset=' . CHARSET . '">'."\n"; if (empty($the_desc)) { //do nothing } else { echo ' <META NAME="Description" Content="' . $the_desc . '">' . "\n"; } if (empty($the_key_words)) { //do nothing } else { echo ' <META NAME="Keywords" CONTENT="' . $the_key_words . '">' . "\n"; } echo ' <META NAME="Reply-to" CONTENT="' . HEAD_REPLY_TAG_ALL . '">' . "\n"; if (STORE_METATAG_DISTRIBUTION=='') { //do nothing } else { echo ' <META NAME="Distribution" CONTENT="' . STORE_METATAG_DISTRIBUTION . '">' . "\n"; } if (STORE_METATAG_AUTHOR=='') { //do nothing } else { echo ' <META NAME="Author" CONTENT="' . STORE_METATAG_AUTHOR . '">' . "\n"; } if (STORE_METATAG_ROBOTS=='') { //do nothing } else { echo ' <META NAME="Robots" CONTENT="'. STORE_METATAG_ROBOTS .'">' . "\n"; } if (STORE_METATAG_CLASSIFICATION=='') { //do nothing } else { echo ' <META NAME="Classification" CONTENT="' . STORE_METATAG_CLASSIFICATION . '">' . "\n"; } echo '<!-- EOF: Generated Meta Tags -->' . "\n"; ?> Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.