Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

Random image problem


Recommended Posts

I am using a php file to call up images at random for the front page of my site:




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>




<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.

Link to comment
Share on other sites

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...

Link to comment
Share on other sites

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.




Link to comment
Share on other sites


This topic is now archived and is closed to further replies.

  • Create New...