Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Ultrapics and Product Thumbnails


sharksalive

Recommended Posts

Hi there

 

I have a MS2 shop using UltraPics - MS2 Image Addon Pack and when I try to display thumbnails proportionally (by only using a width or height in the image config settings) the image displays at full size in the Admin Product listing. The image displays correctly everywhere else just not in the Admin area.

 

Has anyone else experienced this problem?

 

I really appreciate any advice.

 

Many thanks

Nicole

Link to comment
Share on other sites

Thanks so much for your reply Iggy.

 

Do you think this could be changed? I have clients who want to keep the thumbnails in proportion but don't want to have to wait for the full size picture to load in the admin section.

 

Do you know which file controls the size on the image in the Admin section?

 

Many thanks for your help!

 

Cheers

Nicole

Link to comment
Share on other sites

Thanks so much for your reply Iggy.

 

Do you think this could be changed? I have clients who want to keep the thumbnails in proportion but don't want to have to wait for the full size picture to load in the admin section.

 

Do you know which file controls the size on the image in the Admin section?

 

Many thanks for your help!

 

Cheers

Nicole

 

Sure. You can just add a width tag to each entry. You're still going to see each image so load times will be the same but it won't be so big.

 

In /admin/categories.php find this around line 1397 (at least it's 1397 for me)

<!-- // BOF MaxiDVD: Modified For Ultimate Images Pack! // -->
  <tr>
	<td><?php echo tep_draw_separator('pixel_trans.gif', '1', '10'); ?></td>
  </tr>
  <tr>
	<td class="main">
		  <?php if (ULTIMATE_ADDITIONAL_IMAGES == 'enable') { ?><?php echo tep_image(DIR_WS_CATALOG_IMAGES . $products_image_lrg_name, TEXT_PRODUCTS_IMAGE_LARGE . ' ' . $pInfo->products_name, SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'align="right" hspace="5" vspace="5"'); ?><?php } ?>
		  <?php if (ULTIMATE_ADDITIONAL_IMAGES == 'enable') { ?><?php echo tep_image(DIR_WS_CATALOG_IMAGES . $products_image_med_name, TEXT_PRODUCTS_IMAGE_MEDIUM . ' ' . $pInfo->products_name, SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'align="right" hspace="5" vspace="5"'); ?><?php } ?>
		  <?php echo tep_image(DIR_WS_CATALOG_IMAGES . $products_image_name, TEXT_PRODUCTS_IMAGE . ' ' . $pInfo->products_name, SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'align="right" hspace="5" vspace="5"'); ?>
		  <?php echo $pInfo->products_description . '<br><br><center>'; ?>
		  <?php if (ULTIMATE_ADDITIONAL_IMAGES == 'enable') { ?>
		  <?php echo tep_image(DIR_WS_CATALOG_IMAGES . $products_image_sm_1_name, $pInfo->products_name, SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'align="center" hspace="5" vspace="5"'); ?>
		  <?php echo tep_image(DIR_WS_CATALOG_IMAGES . $products_image_sm_2_name, $pInfo->products_name, SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'align="center" hspace="5" vspace="5"'); ?>
		  <?php echo tep_image(DIR_WS_CATALOG_IMAGES . $products_image_sm_3_name, $pInfo->products_name, SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'align="center" hspace="5" vspace="5"') . '<br>'; ?>
		  <?php echo tep_image(DIR_WS_CATALOG_IMAGES . $products_image_sm_4_name, $pInfo->products_name, SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'align="center" hspace="5" vspace="5"'); ?>
		  <?php echo tep_image(DIR_WS_CATALOG_IMAGES . $products_image_sm_5_name, $pInfo->products_name, SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'align="center" hspace="5" vspace="5"'); ?>
		  <?php echo tep_image(DIR_WS_CATALOG_IMAGES . $products_image_sm_6_name, $pInfo->products_name, SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'align="center" hspace="5" vspace="5"') . '<br>'; ?>
		  <?php } ?>
	</td>
  </tr>
<!-- // EOF MaxiDVD: Modified For Ultimate Images Pack! // -->

 

just add a width="whatever size you want" behind vspace="5" for each entry. So you'll end up with lines that look like

<?php echo tep_image(DIR_WS_CATALOG_IMAGES . $products_image_sm_6_name, $pInfo->products_name, SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'align="center" hspace="5" vspace="5" width="200"') . '<br>'; ?>

 

If you want to save load time you can just delete these display lines as well and not show any combination of pics you want.

 

You can apply that anywhere in the admin you'd like where a specific size hasn't been specified. Xsell for example is probably a good place to do that if you have it installed.

 

HTH,

Iggy

Everything's funny but nothing's a joke...

Link to comment
Share on other sites

Oh, just to specify, the lines above are for the preview portion of adding or modding a product but you can do the same thing throughout the admin where UP is displaying the extra images.

 

Iggy

Everything's funny but nothing's a joke...

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...