BlizzardBoy Posted September 5, 2006 Share Posted September 5, 2006 Hello, I'm sorry if I'm wasting your time, but I think this would be the best place to be. I don't know the php language, but I'm starting to learn as I'm starting my store. Although I don't know php, I understand HTML. Just for starters I'm trying to edit the header.php file. On the stock copy, top left, you see the oscommerce picture. I just want to swap it out for one of my own for now. The code is: <td valign="middle"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image(DIR_WS_IMAGES . 'oscommerce.gif', 'osCommerce') . '</a>'; ?></td> Now I understand what the code means, just not exactly how it works. I figure the: ' . tep_image(DIR_WS_IMAGES . 'oscommerce.gif', 'osCommerce') . ' part has to do with the image that is displayed. If I wanted to sub in another picture, how would I change this? Thanks, -- Zan Link to comment Share on other sites More sharing options...
jasonabc Posted September 5, 2006 Share Posted September 5, 2006 DIR_WS_IMAGES is set in your configure.php file and is the path to OSC's image directory. To swop out your logo with the stock OSC one, just name your logo oscommerce.gif and upload it to your OSC image directory. This simply overwrites the old one with the new one. Jason My Contributions: Paypal Payflow PRO | Rollover Category Images | Authorize.net Invoice Number Fix Link to comment Share on other sites More sharing options...
Guest Posted September 6, 2006 Share Posted September 6, 2006 If you wanted to change the logo (name and alt-text) just change the following: Upload your new image. then change: tep_image(DIR_WS_IMAGES . 'oscommerce.gif', 'osCommerce') to: tep_image(DIR_WS_IMAGES . 'your_logo_name_here.gif', 'Your ALT text and TITLE here') what blizzardboy stated is a great place to start but you should always change your logo image name as leaving it as oscommerce.gif looks unprofessional. By default, DIR_WS_IMAGES leads to the catalog/images/ directory but this may vary depending on your mods. Link to comment Share on other sites More sharing options...
jasonabc Posted September 6, 2006 Share Posted September 6, 2006 leaving it as oscommerce.gif looks unprofessional. Looks unprofessional to whom may I ask? Customers right-clicking on a logo and selecting "Properties" because they want to know what the name of the image is??? Yes it would look unprofessional to them - I agree. Jason My Contributions: Paypal Payflow PRO | Rollover Category Images | Authorize.net Invoice Number Fix Link to comment Share on other sites More sharing options...
Guest Posted September 6, 2006 Share Posted September 6, 2006 Hey now.... I wasn't saying that your idea was bad. They all have to start somewhere but the majority of users on the boards will probably agree that changing the name of the logo image is the best way to go. Besides, what about the users that have images turned off on their browsers (small percentage I know but people do it) also, for accessibility and seo reasons you should at the very least change the alt / title text (why not change the image name while at it). Again, not knocking your post, just providing an alternative. I COME IN PEACE! :thumbsup: Link to comment Share on other sites More sharing options...
jasonabc Posted September 6, 2006 Share Posted September 6, 2006 Well that's a little different from saying you should always change it because it looks unprofessional ;-)) But I agree the image alt/title text should always be changed for the reasons you describe. cheers Jason My Contributions: Paypal Payflow PRO | Rollover Category Images | Authorize.net Invoice Number Fix Link to comment Share on other sites More sharing options...
BlizzardBoy Posted September 8, 2006 Author Share Posted September 8, 2006 Ok thanks guys! Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.