csavern Posted October 12, 2005 Posted October 12, 2005 I went to banner manager loaded picture and the banner shows up at the top of my web page any one know how to fix this problem
csavern Posted October 12, 2005 Author Posted October 12, 2005 Here is my info before i could not get a banner so i replaced with this one and now the banner is at the top allong with my store border.. If this is the wrong one can some one post the right one or tell me how to fix this one <?php /* $Id: footer.php,v 1.26 2003/02/10 22:30:54 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2003 osCommerce Released under the GNU General Public License */ require(DIR_WS_INCLUDES . 'counter.php'); ?> <table border="0" width="100%" cellspacing="0" cellpadding="1"> <tr class="footer"> <td class="footer"> <?php echo strftime(DATE_FORMAT_LONG); ?> </td> <td align="right" class="footer"> <?php echo $counter_now . ' ' . FOOTER_TEXT_REQUESTS_SINCE . ' ' . $counter_startdate_formatted; ?> </td> </tr> </table> <br> <table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td align="center" class="smallText"> <?php /* The following copyright announcement can only be appropriately modified or removed if the layout of the site theme has been modified to distinguish itself from the default osCommerce-copyrighted theme. For more information please read the following Frequently Asked Questions entry on the osCommerce support site: http://www.oscommerce.com/community.php/faq,26/q,50 Please leave this comment intact together with the following copyright announcement. */ echo FOOTER_TEXT_BODY ?> </td> </tr> </table> <?php if ($banner = tep_banner_exists('dynamic', '468x50')) { ?> <br> <table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td align="center"><?php echo tep_display_banner('static', $banner); ?></td> </tr> </table> <?php } ?>
csavern Posted October 12, 2005 Author Posted October 12, 2005 maybe it is in something else any one know
Guest Posted October 12, 2005 Posted October 12, 2005 Is this the file you have for the header? Because it looks like the typical footer.php. You could download the osc tree and replace your header file from it. It's in the catalog\includes\header.php
csavern Posted October 12, 2005 Author Posted October 12, 2005 Is this the file you have for the header? Because it looks like the typical footer.php. You could download the osc tree and replace your header file from it. It's in the catalog\includes\header.php it is the footer but the banner shows up in the header
Guest Posted October 13, 2005 Posted October 13, 2005 ok then you could post the header file its catalog\includes\header.php There must be something there that forces the banner to show.
csavern Posted October 13, 2005 Author Posted October 13, 2005 ok then you could post the header file its catalog\includes\header.php There must be something there that forces the banner to show. header_tags.php <?php /* /catalog/includes/header_tags.php WebMakers.com Added: Header Tags Generator v2.0 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 Shoppe Enhancement Controller - Copyright © 2003 WebMakers.com Linda McGrath - [email protected] */ require(DIR_WS_LANGUAGES . $language . '/' . 'header_tags.php'); $tags_array = array(); // Define specific settings per page: switch (true) { // ALLPRODS.PHP case (strstr($_SERVER['PHP_SELF'],FILENAME_ALLPRODS) or strstr($PHP_SELF,FILENAME_ALLPRODS) ): $the_category_query = tep_db_query("select cd.categories_name from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where c.categories_id = '" . $current_category_id . "' and cd.categories_id = '" . $current_category_id . "' and cd.language_id = '" . $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 = '" . $HTTP_GET_VARS['manufacturers_id'] . "'"); $the_manufacturers = tep_db_fetch_array($the_manufacturers_query); if (HTDA_ALLPRODS_ON=='1') { $tags_array['desc']= HEAD_DESC_TAG_ALLPRODS . ' ' . HEAD_DESC_TAG_ALL; } else { $tags_array['desc']= HEAD_DESC_TAG_ALLPRODS; } if (HTKA_ALLPRODS_ON=='1') { $tags_array['keywords']= HEAD_KEY_TAG_ALL . ' ' . HEAD_KEY_TAG_ALLPRODS; } else { $tags_array['keywords']= HEAD_KEY_TAG_ALLPRODS; } if (HTTA_ALLPRODS_ON=='1') { $tags_array['title']= HEAD_TITLE_TAG_ALLPRODS . ' ' . HEAD_TITLE_TAG_ALL . " " . $the_category['categories_name'] . $the_manufacturers['manufacturers_name']; } else { $tags_array['title']= HEAD_TITLE_TAG_ALLPRODS; } break; // products_all.PHP case (strstr($_SERVER['PHP_SELF'],FILENAME_PRODUCTS_ALL) or strstr($PHP_SELF,FILENAME_PRODUCTS_ALL) ): $the_category_query = tep_db_query("select cd.categories_name from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where c.categories_id = '" . $current_category_id . "' and cd.categories_id = '" . $current_category_id . "' and cd.language_id = '" . $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 = '" . $HTTP_GET_VARS['manufacturers_id'] . "'"); $the_manufacturers = tep_db_fetch_array($the_manufacturers_query); if (HTDA_PRODUCTS_ALL_ON=='1') { $tags_array['desc']= HEAD_DESC_TAG_PRODUCTS_ALL . ' ' . HEAD_DESC_TAG_ALL; } else { $tags_array['desc']= HEAD_DESC_TAG_PRODUCTS_ALL; } if (HTKA_PRODUCTS_ALL_ON=='1') { $tags_array['keywords']= HEAD_KEY_TAG_ALL . ' ' . HEAD_KEY_TAG_PRODUCTS_ALL; } else { $tags_array['keywords']= HEAD_KEY_TAG_PRODUCTS_ALL; } if (HTTA_ALLPRODS_ON=='1') { $tags_array['title']= HEAD_TITLE_TAG_PRODUCTS_ALL . ' ' . HEAD_TITLE_TAG_ALL . " " . $the_category['categories_name'] . $the_manufacturers['manufacturers_name']; } else { $tags_array['title']= HEAD_TITLE_TAG_PRODUCTS_ALL; } break; // INDEX.PHP case (strstr($_SERVER['PHP_SELF'],FILENAME_DEFAULT) or strstr($PHP_SELF,FILENAME_DEFAULT) ): $the_category_query = tep_db_query("select * from ".TABLE_CATEGORIES_DESCRIPTION." a ". "left join ".TABLE_CATEGORIES." b on a.categories_id = b.categories_id". " where b.parent_id = 0 and language_id = '" . (int)$languages_id . "'"); while ($the_category = tep_db_fetch_array($the_category_query)) { $the_category['categories_name'] = str_replace( '&',' ',$the_category['categories_name']); if (!empty($tags_array['keywords']) ) { $tags_array['keywords'] .= ','.$the_category['categories_name']; } else { $tags_array['keywords'] = $the_category['categories_name']; } } if (HTDA_DEFAULT_ON=='1') { if ($showCatTags == true) { if (HTTA_CAT_DEFAULT_ON=='1') { $tags_array['desc']= $the_category['categories_htc_desc_tag'] . ' ' . HEAD_DESC_TAG_DEFAULT . ' ' . HEAD_DESC_TAG_ALL; } else { $tags_array['desc']= $the_category['categories_htc_desc_tag'] . ' ' . HEAD_DESC_TAG_ALL; } } else { $tags_array['desc']= HEAD_DESC_TAG_DEFAULT . ' ' . HEAD_DESC_TAG_ALL; } } else { if ($showCatTags == true) { if (HTTA_CAT_DEFAULT_ON=='1') { $tags_array['desc']= $the_category['categories_htc_desc_tag'] . ' ' . HEAD_DESC_TAG_DEFAULT; } else { $tags_array['desc']= $the_category['categories_htc_desc_tag']; } } else { $tags_array['desc']= HEAD_DESC_TAG_DEFAULT; } } break; // PRODUCT_INFO.PHP case ( strstr($_SERVER['PHP_SELF'],FILENAME_PRODUCT_INFO) or strstr($PHP_SELF,FILENAME_PRODUCT_INFO) ): // $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_name AS products_head_keywords_tag, pd.products_description AS 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'] . "'" . " and pd.language_id ='" . $languages_id . "'"); $the_product_info = tep_db_fetch_array($the_product_info_query); if (empty($the_product_info['products_head_desc_tag'])) { $tags_array['desc']= HEAD_DESC_TAG_ALL; } else { if ( HTDA_PRODUCT_INFO_ON=='1' ) { $tags_array['desc']= $the_product_info['products_head_desc_tag'] . ' ' . HEAD_DESC_TAG_ALL; } else { $tags_array['desc']= $the_product_info['products_head_desc_tag']; } } if (empty($the_product_info['products_head_keywords_tag'])) { $tags_array['keywords']= HEAD_KEY_TAG_ALL; } else { if ( HTKA_PRODUCT_INFO_ON=='1' ) { $tags_array['keywords']= $the_product_info['products_head_keywords_tag'] . ' ' . HEAD_KEY_TAG_ALL; } else { $tags_array['keywords']= $the_product_info['products_head_keywords_tag']; } } if (empty($the_product_info['products_head_title_tag'])) { $tags_array['title']= HEAD_TITLE_TAG_ALL; } else { if ( HTTA_PRODUCT_INFO_ON=='1' ) { $tags_array['title']= clean_html_comments($the_product_info['products_head_title_tag']) . ' ' . HEAD_TITLE_TAG_ALL; } else { $tags_array['title']= clean_html_comments($the_product_info['products_head_title_tag']); } } break; // PRODUCTS_NEW.PHP case ( strstr($_SERVER['PHP_SELF'],FILENAME_PRODUCTS_NEW) or strstr($PHP_SELF,FILENAME_PRODUCTS_NEW) ): if ( HEAD_DESC_TAG_WHATS_NEW!='' ) { if ( HTDA_WHATS_NEW_ON=='1' ) { $tags_array['desc']= HEAD_DESC_TAG_WHATS_NEW . ' ' . HEAD_DESC_TAG_ALL; } else { $tags_array['desc']= HEAD_DESC_TAG_WHATS_NEW; } } else { $tags_array['desc']= HEAD_DESC_TAG_ALL; } if ( HEAD_KEY_TAG_WHATS_NEW!='' ) { if ( HTKA_WHATS_NEW_ON=='1' ) { $tags_array['keywords']= HEAD_KEY_TAG_WHATS_NEW . ' ' . HEAD_KEY_TAG_ALL; } else { $tags_array['keywords']= HEAD_KEY_TAG_WHATS_NEW; } } else { $tags_array['keywords']= HEAD_KEY_TAG_ALL; } if ( HEAD_TITLE_TAG_WHATS_NEW!='' ) { if ( HTTA_WHATS_NEW_ON=='1' ) { $tags_array['title']= HEAD_TITLE_TAG_WHATS_NEW . ' ' . HEAD_TITLE_TAG_ALL; } else { $tags_array['title']= HEAD_TITLE_TAG_WHATS_NEW; } } else { $tags_array['title']= HEAD_TITLE_TAG_ALL; } break; // SPECIALS.PHP case ( strstr($_SERVER['PHP_SELF'],FILENAME_SPECIALS) or strstr($PHP_SELF,FILENAME_SPECIALS) ): if ( HEAD_DESC_TAG_SPECIALS!='' ) { if ( HTDA_SPECIALS_ON=='1' ) { $tags_array['desc']= HEAD_DESC_TAG_SPECIALS . ' ' . HEAD_DESC_TAG_ALL; } else { $tags_array['desc']= HEAD_DESC_TAG_SPECIALS; } } else { $tags_array['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 = '" . $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' ) { $tags_array['keywords']= $the_specials . ' ' . HEAD_KEY_TAG_ALL; } else { $tags_array['keywords']= $the_specials; } } else { $tags_array['keywords']= HEAD_KEY_TAG_SPECIALS . ' ' . HEAD_KEY_TAG_ALL; } if ( HEAD_TITLE_TAG_SPECIALS!='' ) { if ( HTTA_SPECIALS_ON=='1' ) { $tags_array['title']= HEAD_TITLE_TAG_SPECIALS . ' ' . HEAD_TITLE_TAG_ALL; } else { $tags_array['title']= HEAD_TITLE_TAG_SPECIALS; } } else { $tags_array['title']= HEAD_TITLE_TAG_ALL; } break; // PRODUCTS_REVIEWS_INFO.PHP and PRODUCTS_REVIEWS.PHP case((basename($PHP_SELF)==FILENAME_PRODUCT_REVIEWS) or (basename($PHP_SELF)==FILENAME_PRODUCT_REVIEWS_INFO)): if ( HEAD_DESC_TAG_PRODUCT_REVIEWS_INFO=='' ) { if ( HTDA_PRODUCT_REVIEWS_INFO_ON=='1' ) { $tags_array['desc']= tep_get_header_tag_products_desc($HTTP_GET_VARS['reviews_id']) . ' ' . HEAD_DESC_TAG_ALL; } else { $tags_array['desc']= tep_get_header_tag_products_desc($HTTP_GET_VARS['reviews_id']); } } else { $tags_array['desc']= HEAD_DESC_TAG_PRODUCT_REVIEWS_INFO; } if ( HEAD_KEY_TAG_PRODUCT_REVIEWS_INFO=='' ) { if ( HTKA_PRODUCT_REVIEWS_INFO_ON=='1' ) { $tags_array['keywords']= tep_get_header_tag_products_keywords($HTTP_GET_VARS['reviews_id']) . ' ' . HEAD_KEY_TAG_ALL; } else { $tags_array['keywords']= tep_get_header_tag_products_keywords($HTTP_GET_VARS['reviews_id']); } } else { $tags_array['keywords']= HEAD_KEY_TAG_PRODUCT_REVIEWS_INFO; } if ( HEAD_TITLE_TAG_PRODUCT_REVIEWS_INFO=='' ) { if ( HTTA_PRODUCT_REVIEWS_INFO_ON=='1' ) { $tags_array['title']= ' Reviews: ' . tep_get_header_tag_products_title($HTTP_GET_VARS['reviews_id']) . HEAD_TITLE_TAG_ALL; } else { $tags_array['title']= tep_get_header_tag_products_title($HTTP_GET_VARS['reviews_id']); } } else { $tags_array['title']= HEAD_TITLE_TAG_PRODUCT_REVIEWS_INFO; } break; // PRODUCTS_REVIEWS_WRITE.PHP case((basename($PHP_SELF)==FILENAME_PRODUCT_REVIEWS_WRITE)): if ( HEAD_DESC_TAG_PRODUCT_REVIEWS_WRITE=='' ) { if ( HTDA_PRODUCT_REVIEWS_WRITE_ON=='1' ) { $tags_array['desc']= tep_get_header_tag_products_desc($HTTP_GET_VARS['reviews_id']) . ' ' . HEAD_DESC_TAG_ALL; } else { $tags_array['desc']= tep_get_header_tag_products_desc($HTTP_GET_VARS['reviews_id']); } } else { $tags_array['desc']= HEAD_DESC_TAG_PRODUCT_REVIEWS_WRITE; } if ( HEAD_KEY_TAG_PRODUCT_REVIEWS_WRITE=='' ) { if ( HTKA_PRODUCT_REVIEWS_WRITE_ON=='1' ) { $tags_array['keywords']= tep_get_header_tag_products_keywords($HTTP_GET_VARS['reviews_id']) . ' ' . HEAD_KEY_TAG_ALL; } else { $tags_array['keywords']= tep_get_header_tag_products_keywords($HTTP_GET_VARS['reviews_id']); } } else { $tags_array['keywords']= HEAD_KEY_TAG_PRODUCT_REVIEWS_WRITE; } if ( HEAD_TITLE_TAG_PRODUCT_REVIEWS_WRITE=='' ) { if ( HTTA_PRODUCT_REVIEWS_WRITE_ON=='1' ) { $tags_array['title']= ' Reviews: ' . tep_get_header_tag_products_title($HTTP_GET_VARS['reviews_id']) . HEAD_TITLE_TAG_ALL; } else { $tags_array['title']= tep_get_header_tag_products_title($HTTP_GET_VARS['reviews_id']); } } else { $tags_array['title']= HEAD_TITLE_TAG_PRODUCT_REVIEWS_WRITE; } break; // about_us.PHP - was default.php case (strstr($_SERVER['PHP_SELF'],FILENAME_ABOUT_US) or strstr($PHP_SELF, FILENAME_ABOUT_US) ): $tags_array = tep_header_tag_page(HTTA_ABOUTUS_ON, HEAD_TITLE_TAG_ABOUTUS, HTDA_ABOUTUS_ON, HEAD_DESC_TAG_ABOUTUS, HTKA_ABOUTUS_ON, HEAD_KEY_TAG_ABOUTUS ); break; // ALL OTHER PAGES NOT DEFINED ABOVE default: $tags_array['desc'] = HEAD_DESC_TAG_ALL; $tags_array['keywords'] = HEAD_KEY_TAG_ALL; $tags_array['title'] = HEAD_TITLE_TAG_ALL; break; } $SUBS['H_TAGS'] = ' <META NAME="Description" Content="' . $tags_array['desc'] . '">' . "n"; $SUBS['H_TAGS'] .= ' <META NAME="Keywords" CONTENT="' . $tags_array['keywords'] . '">' . "n"; //NOTE: If you want your email add to your source code, remove the two slashes on the //following line of code. This serves no useful purpose and is not suggested tobe used //echo ' <META NAME="Reply-to" CONTENT="' . HEAD_REPLY_TAG_ALL . '">' . "n"; ?>
Guest Posted October 13, 2005 Posted October 13, 2005 Ok but I do not see html code or banner references in this file so it would be possibly with the catalog files. (or if there is more code from this file that didnt get posted.) do you have a url to see the problem?
Recommended Posts
Archived
This topic is now archived and is closed to further replies.