jonnyfilmboy Posted February 18, 2004 Posted February 18, 2004 I am using a php file to call up images at random for the front page of my site: www.lightstormimages.com/store/ I didn't want the new images to be resized by OsC, so I replaced: <td class="pageHeading"><?php echo HEADING_TITLE; ?></td> <td class="pageHeading" align="right"><?php echo tep_image(DIR_WS_IMAGES . 'table_background_default.gif', HEADING_TITLE, HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td> with: <td class="pageHeading"><?php echo HEADING_TITLE; ?><BR> <?php echo tep_image('http://www.lightstormimages.com/gallery/lr-rotate/rotate.php', HEADING_TITLE); ?></td> OK, so 90% of the time, it works perfectly and the images are not resized. But maybe 10% of the time or less, the image that loads is resized to a weird size (like the size of the previous photo or the next photo). Osc seems to be adding in width and height values even though I took out HEADING_IMAGE_WIDTH and HEADING_IMAGE_HEIGHT. Does anyone know how I can stop Osc from adding in the image size for this one image? I have tried replacing HEADING_IMAGE_WIDTH and height with my own HEADING_IMAGE_JON_WIDTH and height, and in the includes/languages/english.php file I had that value defined as '', but it did the same thing. Is there a way that I can have the HEADING_IMAGE_JON_HEIGHT value defined as 100% ? That would be best. Please help.
jonnyfilmboy Posted February 18, 2004 Author Posted February 18, 2004 Just a little more info, by front page, I mean I have a new image loading on my default.php page. That is the page I am having problems on.
jonnyfilmboy Posted February 20, 2004 Author Posted February 20, 2004 This seems like an easy problem for you guys and gals who know about this stuff to solve. I just need to eliminate the width and height being added to that one image on the default.php page. Or, instead of a pixel width and height being added, I would like to have 100% added for width and height instead. Please help me! This is really important to me. I am so close to finishing my store and I just have to fix this and one or two other things, and then I am done. Please please help! Thanks in advance...
jonnyfilmboy Posted February 20, 2004 Author Posted February 20, 2004 Well, screw it. I deleted the image entirely, and added my random script to the regular welcome text. I am so dumb for not having thought of that earlier. Works perfectly now that OsC isn't screwing with it and adding in its own sizes. Horray!!
kkkqqq Posted February 20, 2004 Posted February 20, 2004 John, Your site looks great. You did a good job. The site load very fast. I like it a lot, would you let me know who is your hosting company? Thank you for share the info with us.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.