Chris9979 Posted September 23, 2005 Posted September 23, 2005 I have the general understanding on adding a box and a box page from the information on OSC Knowledge Base. I was wondering how to go about putting a picture linked to the created box page in the box instead of a text link. For example, I am working on a page that lists the prices of our band instrument repairs. There is going to be only one link in the box. I figured using a pictured link will look alot better that just using a text link. I'm just trying to make the right column have an advertisement feel to it.
Guest Posted September 23, 2005 Posted September 23, 2005 just set the $info_box_contents[] contents of your box file with a link with an image. Like $info_box_contents[] = array('text' => '<a href="' . tep_href_link(FILENAME_ABOUT_US) . '">' . tep_image(DIR_WS_IMAGES . 'yourimagefilenamehere', 'sometitle', SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a>' );
Chris9979 Posted September 28, 2005 Author Posted September 28, 2005 I got a question about the SMAL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT part. Will that make the image about icon size, like the images that show up under "Specials" . Example: http://www.mooresmusicemporium.com If so is there a way to make the image larger or fill up the size of the box? just set the $info_box_contents[] contents of your box file with a link with an image. Like $info_box_contents[] = array('text' => '<a href="' . tep_href_link(FILENAME_ABOUT_US) . '">' . tep_image(DIR_WS_IMAGES . 'yourimagefilenamehere', 'sometitle', SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a>' );
Guest Posted September 28, 2005 Posted September 28, 2005 To control the image dimensions of some of the thumbnails in the store goto admin->configuration->images You don't need to modify the code if thats all you need.
Chris9979 Posted September 30, 2005 Author Posted September 30, 2005 This seems to make all the thumbnails on the front page larger. that is cool though. I wanted to make them abit bigger. But I was wondering if there is a way to make this one picture larger than the other pictures in the other boxes. To control the image dimensions of some of the thumbnails in the store goto admin->configuration->images You don't need to modify the code if thats all you need.
Guest Posted September 30, 2005 Posted September 30, 2005 if you need to mod the picture dimensions for a single box, open that box file (includes\boxes\ directory) find the tep_image() function in it. Replace the width, height parameters with the values you want. (for example you could replace SMAL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT with 200,200 )
Chris9979 Posted October 3, 2005 Author Posted October 3, 2005 thank you so very much!!!! everything is working!!!!! if you need to mod the picture dimensions for a single box, open that box file (includes\boxes\ directory) find the tep_image() function in it. Replace the width, height parameters with the values you want. (for example you could replace SMAL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT with 200,200 )
Recommended Posts
Archived
This topic is now archived and is closed to further replies.