Bluestcat Posted May 26, 2006 Posted May 26, 2006 Hi, I have tried many times to change the osCommerce.gif found on the top of the pages to my own logo which is a .jpg and can't be converted to a .gif No matter what I do, it still shows the osCommerce.gif logo or just the empty box when I remove the oscommerce.gif from the images folder. I have put my filename in header.php, dumped my cache, cookies etc. You name it, I have tried it. People elsewhere still see the osCommerce.gif too, so I know that it isn't just my computer that is stuck on the osCommerce.gif image. Has anyone out there successfully changed the osCommerce logo to their own logo using their own filename? Getting desperate and starting to believe that no one has used a .jpg at the top of their store! Kimber
ozcsys Posted May 26, 2006 Posted May 26, 2006 Use my own all the time Instructions found HERE The Knowledge Base is a wonderful thing. Do you have a problem? Have you checked out Common Problems? There are many very useful osC Contributions Are you having trouble with a installed contribution? Have you checked out the support thread found Here BACKUP BACKUP BACKUP!!! You did backup, right??
Bluestcat Posted May 26, 2006 Author Posted May 26, 2006 I have done that numerous times. No matter what filename I put in the header.php file, it still shows or wants to show the osCommerce image. The header.php file on the server shows my filename and when I view source on the pages, the code show oscommerce.gif, NOT my filename. I have uploaded and reuploaded header.php numerous times. I have not forgotten, nor have I put my logo in the wrong folder either. Is this an issue with my server, or something within the deep recesses of osCommerce? Help! Kim
Jack_mcs Posted May 26, 2006 Posted May 26, 2006 Hi, I have tried many times to change the osCommerce.gif found on the top of the pages to my own logo which is a .jpg and can't be converted to a .gif No matter what I do, it still shows the osCommerce.gif logo or just the empty box when I remove the oscommerce.gif from the images folder. I have put my filename in header.php, dumped my cache, cookies etc. You name it, I have tried it. People elsewhere still see the osCommerce.gif too, so I know that it isn't just my computer that is stuck on the osCommerce.gif image. Has anyone out there successfully changed the osCommerce logo to their own logo using their own filename? Getting desperate and starting to believe that no one has used a .jpg at the top of their store! Kimber You can't change to a different image type like that without changing the code. The code is looking for an image named oscommerce.gif. You can upload any gif image you like and name it oscommerce.gif, and it will be displayed. But if you want to use a jpg, you have to change the code in includes/header.php. Jack Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. All of My Addons Get the latest versions of my addons Recommended SEO Addons
Bluestcat Posted May 26, 2006 Author Posted May 26, 2006 You can't change to a different image type like that without changing the code. The code is looking for an image named oscommerce.gif. You can upload any gif image you like and name it oscommerce.gif, and it will be displayed. But if you want to use a jpg, you have to change the code in includes/header.php. Jack I have changed the code in header.php from oscommerce.gif to catalog_heading.jpg and this isn't working. Believe me, if my logo wasn't a .jpg or was something that could be put into the .gif format, I would just rename the image to oscommerce.gif and be done with this. Kimber
RainDrop Tech Posted May 26, 2006 Posted May 26, 2006 Tell you what, tell me what you want your thing to look like, and I'll do it for you... (P.S. I can get your image in GIF format.)
spax Posted May 26, 2006 Posted May 26, 2006 Why not post your header.php code here? Maybe you are missing something.
Bluestcat Posted May 26, 2006 Author Posted May 26, 2006 I can convert my jpg to a gif in Photoshop, but it looks awful. This is my header.php file... <?php /* $Id: header.php,v 1.1 2003/09/08 19:25:59 jhtalk Exp jhtalk $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2003 osCommerce Released under the GNU General Public License */ // STS: ADD $sts_block_name = 'applicationtop2header'; require(STS_RESTART_CAPTURE); // STS: EOADD // check if the 'install' directory exists, and warn of its existence if (WARN_INSTALL_EXISTENCE == 'true') { if (file_exists(dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/install')) { $messageStack->add('header', WARNING_INSTALL_DIRECTORY_EXISTS, 'warning'); } } // check if the configure.php file is writeable if (WARN_CONFIG_WRITEABLE == 'true') { if ( (file_exists(dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/includes/configure.php')) && (is_writeable(dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/includes/configure.php')) ) { $messageStack->add('header', WARNING_CONFIG_FILE_WRITEABLE, 'warning'); } } // check if the session folder is writeable if (WARN_SESSION_DIRECTORY_NOT_WRITEABLE == 'true') { if (STORE_SESSIONS == '') { if (!is_dir(tep_session_save_path())) { $messageStack->add('header', WARNING_SESSION_DIRECTORY_NON_EXISTENT, 'warning'); } elseif (!is_writeable(tep_session_save_path())) { $messageStack->add('header', WARNING_SESSION_DIRECTORY_NOT_WRITEABLE, 'warning'); } } } // check session.auto_start is disabled if ( (function_exists('ini_get')) && (WARN_SESSION_AUTO_START == 'true') ) { if (ini_get('session.auto_start') == '1') { $messageStack->add('header', WARNING_SESSION_AUTO_START, 'warning'); } } if ( (WARN_DOWNLOAD_DIRECTORY_NOT_READABLE == 'true') && (DOWNLOAD_ENABLED == 'true') ) { if (!is_dir(DIR_FS_DOWNLOAD)) { $messageStack->add('header', WARNING_DOWNLOAD_DIRECTORY_NON_EXISTENT, 'warning'); } } if ($messageStack->size('header') > 0) { echo $messageStack->output('header'); } ?> <table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr class="header"> <td valign="middle"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image(DIR_WS_IMAGES . 'catalog_heading.jpg', 'Wending Creek Farms :: Award Winning, Pure Organic Pennsylvania Maple and Honey Products') . '</a>'; ?></td> <td align="right" valign="bottom"><?php echo '<a href="' . tep_href_link(FILENAME_ACCOUNT, '', 'SSL') . '">' . tep_image(DIR_WS_IMAGES . 'header_account.gif', HEADER_TITLE_MY_ACCOUNT) . '</a> <a href="' . tep_href_link(FILENAME_SHOPPING_CART) . '">' . tep_image(DIR_WS_IMAGES . 'header_cart.gif', HEADER_TITLE_CART_CONTENTS) . '</a> <a href="' . tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL') . '">' . tep_image(DIR_WS_IMAGES . 'header_checkout.gif', HEADER_TITLE_CHECKOUT) . '</a>'; ?> </td> </tr> </table> <table border="0" width="100%" cellspacing="0" cellpadding="1"> <tr class="headerNavigation"> <td class="headerNavigation"> <?php echo $breadcrumb->trail(' » '); ?></td> <td align="right" class="headerNavigation"><?php if (tep_session_is_registered('customer_id')) { ?><a href="<?php echo tep_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_LOGOFF; ?></a> | <?php } ?><a href="<?php echo tep_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_MY_ACCOUNT; ?></a> | <a href="<?php echo tep_href_link(FILENAME_SHOPPING_CART); ?>" class="headerNavigation"><?php echo HEADER_TITLE_CART_CONTENTS; ?></a> | <a href="<?php echo tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_CHECKOUT; ?></a> </td> </tr> </table> <?php if (isset($HTTP_GET_VARS['error_message']) && tep_not_null($HTTP_GET_VARS['error_message'])) { ?> <table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr class="headerError"> <td class="headerError"><?php echo htmlspecialchars(urldecode($HTTP_GET_VARS['error_message'])); ?></td> </tr> </table> <?php } if (isset($HTTP_GET_VARS['info_message']) && tep_not_null($HTTP_GET_VARS['info_message'])) { ?> <table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr class="headerInfo"> <td class="headerInfo"><?php echo htmlspecialchars($HTTP_GET_VARS['info_message']); ?></td> </tr> </table> <?php } // STS: ADD $sts_block_name = 'header'; require(STS_RESTART_CAPTURE); // STS: EOADD ?>
ozcsys Posted May 26, 2006 Posted May 26, 2006 The problem is you are using STS. You will need to change the logo elsewhere. It has been awhile since I worked on a STS so I do not remember the file you need to work on but I am sure you could find out in the STS support thread. The Knowledge Base is a wonderful thing. Do you have a problem? Have you checked out Common Problems? There are many very useful osC Contributions Are you having trouble with a installed contribution? Have you checked out the support thread found Here BACKUP BACKUP BACKUP!!! You did backup, right??
Bluestcat Posted May 26, 2006 Author Posted May 26, 2006 Thanks! At least now I know where to go to fix this. Once again, thanks a million. Kimber
Recommended Posts
Archived
This topic is now archived and is closed to further replies.