Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

[Contribution] UltraPics v1.0 - Addition Image Pac


Guest

Recommended Posts

Hi all I have to say Ultra images are well worth It good Job guys. I have a question about small modification on this Contrib I want to have my Images Uploaded to a different Directories ie.. images/sm_images, <- for samall pics and images/lg_images for Large pics what files do i need to edit to have this achieved.. same applies to the 1st 3 images example would be images/catalg_images, Please Help me im sure its very easy I just dont know where to look..

 

Paul

 

hacker.gif

Link to comment
Share on other sites

  • Replies 375
  • Created
  • Last Reply

Top Posters In This Topic

A few people in this thread have asked if they could have the extra images in a column under the normal image instead of at the bottom. I too wanted this too. The good news is that even with my limited experience I've done it.

 

Mod to go from this <_< <_< <_< <_< at the bottom

 

to this style of image display in the colum

 

:D

:D

:D

:D

 

 

I have to mod product_info.php a little bit:

 

Move this bit of code

 

	  <?php
// BOF MaxiDVD: Modified For Ultimate Images Pack!
if (ULTIMATE_ADDITIONAL_IMAGES == 'enable') { include(DIR_WS_MODULES . 'additional_images.php'); }
// BOF MaxiDVD: Modified For Ultimate Images Pack!
; ?>

 

To around line 134 just below this code

 

<!-- // BOF MaxiDVD: Modified For Ultimate Images Pack! //-->
<?php
if ($product_info['products_image_med']!='') {
	  $new_image = $product_info['products_image_med'];
	  $image_width = MEDIUM_IMAGE_WIDTH;
	  $image_height = MEDIUM_IMAGE_HEIGHT;
	 } else {
	  $new_image = $product_info['products_image'];
	  $image_width = SMALL_IMAGE_WIDTH;
	  $image_height = SMALL_IMAGE_HEIGHT;}?>
<script language="javascript"><!--
  document.write('<?php echo '<a href="javascript:popupWindow(\\\'' . tep_href_link(FILENAME_POPUP_IMAGE, 'pID=' . $product_info['products_id'] . 'ℑ=0') . '\\\')">' . tep_image(DIR_WS_IMAGES . $new_image, addslashes($product_info['products_name']), $image_width, $image_height, 'hspace="5" vspace="5"') . '<br>' . tep_image_button('image_enlarge.gif', TEXT_CLICK_TO_ENLARGE) . '</a>'; ?>');
//--></script>
<noscript>
  <?php echo '<a href="' . tep_href_link(DIR_WS_IMAGES . $product_info['products_image_med']) . '">' . tep_image(DIR_WS_IMAGES . $new_image . 'ℑ=0', addslashes($product_info['products_name']), $image_width, $image_height, 'hspace="5" vspace="5"') . '<br>' . tep_image_button('image_enlarge.gif', TEXT_CLICK_TO_ENLARGE) . '</a>'; ?>
</noscript>
<!-- // EOF MaxiDVD: Modified For Ultimate Images Pack! //-->

 

 

Then I had to rewrite additional images, if you open that file and delete everything and replace it with this

 

<!-- // BOF MaxiDVD: Modified For Ultimate Images Pack! //-->
<tr>
  <td><table width="100%" border="0">
	<tr>




	<?php
if (($product_info['products_image_sm_1'] != '') && ($product_info['products_image_xl_1'] == '')) {
?>
	  <td align="center" class="smallText"><?php echo tep_image(DIR_WS_IMAGES . $product_info['products_image_sm_1'], $product_info['products_name'], ULT_THUMB_IMAGE_WIDTH, ULT_THUMB_IMAGE_HEIGHT, 'hspace="1" vspace="1"'); ?>
 </td>
<?php
} elseif
   (($product_info['products_image_sm_1'] != '') && ($product_info['products_image_sm_1'] != '')) {
?>
	</tr>
	<tr>
	  <td align="center" class="smallText">	  <script language="javascript"><!--
	 document.write('<?php echo '<a href="javascript:popupWindow(\\\'' . tep_href_link(FILENAME_POPUP_IMAGE, 'pID=' . $product_info['products_id'] . 'ℑ=1') . '\\\')">' . tep_image(DIR_WS_IMAGES . $product_info['products_image_sm_1'], addslashes($product_info['products_name']), ULT_THUMB_IMAGE_WIDTH, ULT_THUMB_IMAGE_HEIGHT, 'hspace="1" vspace="1"') . '<br>' . tep_image_button('image_enlarge.gif', TEXT_CLICK_TO_ENLARGE) . '</a>'; ?>');
   //--></script>
	 <noscript>
	   <?php echo '<a href="' . tep_href_link(DIR_WS_IMAGES . $product_info['products_image_sm_1']) . '">' . tep_image(DIR_WS_IMAGES . $product_info['products_image_sm_1'], $product_info['products_name'], ULT_THUMB_IMAGE_WIDTH, ULT_THUMB_IMAGE_HEIGHT, 'hspace="1" vspace="1"') . '<br>' . tep_image_button('image_enlarge.gif', TEXT_CLICK_TO_ENLARGE) . '</a>'; ?>
	  </noscript>
	  </td>
	  <?php
} elseif
  (($products_info['products_image_sm_1'] == '') && ($product_info['products_image_xl_1'] != '')) {
?>
	</tr>
	<tr>
	  <td align="center" class="smallText"><?php echo tep_image(DIR_WS_IMAGES . $product_info['products_image_xl_1'], $product_info['products_name'], LARGE_IMAGE_WIDTH, LARGE_IMAGE_HEIGHT, 'hspace="1" vspace="1"'); ?>
  </td>
  <?php
}
?>
</tr>


<?php
if (($product_info['products_image_sm_2'] != '') && ($product_info['products_image_xl_2'] == '')) {
?>
	<tr>
	  <td align="center" class="smallText"><?php echo tep_image(DIR_WS_IMAGES . $product_info['products_image_sm_2'], $product_info['products_name'], ULT_THUMB_IMAGE_WIDTH, ULT_THUMB_IMAGE_HEIGHT, 'hspace="1" vspace="1"'); ?>
  </td>
  <?php
} elseif
   (($product_info['products_image_sm_2'] != '') && ($product_info['products_image_sm_2'] != '')) {
  ?>
	</tr>
	<tr>
	  <td align="center" class="smallText">	  <script language="javascript"><!--
	 document.write('<?php echo '<a href="javascript:popupWindow(\\\'' . tep_href_link(FILENAME_POPUP_IMAGE, 'pID=' . $product_info['products_id'] . 'ℑ=2') . '\\\')">' . tep_image(DIR_WS_IMAGES . $product_info['products_image_sm_2'], addslashes($product_info['products_name']), ULT_THUMB_IMAGE_WIDTH, ULT_THUMB_IMAGE_HEIGHT, 'hspace="1" vspace="1"') . '<br>' . tep_image_button('image_enlarge.gif', TEXT_CLICK_TO_ENLARGE) . '</a>'; ?>');
	//--></script>
	 <noscript>
	   <?php echo '<a href="' . tep_href_link(DIR_WS_IMAGES . $product_info['products_image_sm_2']) . '">' . tep_image(DIR_WS_IMAGES . $product_info['products_image_sm_2'], $product_info['products_name'], ULT_THUMB_IMAGE_WIDTH, ULT_THUMB_IMAGE_HEIGHT, 'hspace="1" vspace="1"') . '<br>' . tep_image_button('image_enlarge.gif', TEXT_CLICK_TO_ENLARGE) . '</a>'; ?>
	  </noscript>
	  </td>
	  <?php
} elseif
  (($products_info['products_image_sm_2'] == '') && ($product_info['products_image_xl_2'] != '')) {
?>
	</tr>
	<tr>
	  <td align="center" class="smallText"><?php echo tep_image(DIR_WS_IMAGES . $product_info['products_image_xl_2'], $product_info['products_name'], LARGE_IMAGE_WIDTH, LARGE_IMAGE_HEIGHT, 'hspace="1" vspace="1"'); ?>
 </td>
<?php
}
?>
</tr>



	<?php
if (($product_info['products_image_sm_3'] != '') && ($product_info['products_image_xl_3'] == '')) {
?>
	<tr>
	  <td align="center" class="smallText"><?php echo tep_image(DIR_WS_IMAGES . $product_info['products_image_sm_3'], $product_info['products_name'], ULT_THUMB_IMAGE_WIDTH, ULT_THUMB_IMAGE_HEIGHT, 'hspace="1" vspace="1"'); ?>
 </td>
 <?php
} elseif
   (($product_info['products_image_sm_3'] != '') && ($product_info['products_image_sm_3'] != '')) {
?>
	</tr>
	<tr>
	  <td align="center" class="smallText">	  <script language="javascript"><!--
	 document.write('<?php echo '<a href="javascript:popupWindow(\\\'' . tep_href_link(FILENAME_POPUP_IMAGE, 'pID=' . $product_info['products_id'] . 'ℑ=3') . '\\\')">' . tep_image(DIR_WS_IMAGES . $product_info['products_image_sm_3'], addslashes($product_info['products_name']), ULT_THUMB_IMAGE_WIDTH, ULT_THUMB_IMAGE_HEIGHT, 'hspace="1" vspace="1"') . '<br>' . tep_image_button('image_enlarge.gif', TEXT_CLICK_TO_ENLARGE) . '</a>'; ?>');
//--></script>
	 <noscript>
	   <?php echo '<a href="' . tep_href_link(DIR_WS_IMAGES . $product_info['products_image_sm_3']) . '">' . tep_image(DIR_WS_IMAGES . $product_info['products_image_sm_3'], $product_info['products_name'], ULT_THUMB_IMAGE_WIDTH, ULT_THUMB_IMAGE_HEIGHT, 'hspace="1" vspace="1"') . '<br>' . tep_image_button('image_enlarge.gif', TEXT_CLICK_TO_ENLARGE) . '</a>'; ?>
	  </noscript>
	  </td>
	  <?php
} elseif
  (($products_info['products_image_sm_3'] == '') && ($product_info['products_image_xl_3'] != '')) {
?>
	</tr>
	<tr>
	  <td align="center" class="smallText"><?php echo tep_image(DIR_WS_IMAGES . $product_info['products_image_xl_3'], $product_info['products_name'], LARGE_IMAGE_WIDTH, LARGE_IMAGE_HEIGHT, 'hspace="1" vspace="1"'); ?>
 </td>
 <?php
}
?>
</tr>


	<?php
if (($product_info['products_image_sm_4'] != '') && ($product_info['products_image_xl_4'] == '')) {
?>
	<tr>
	  <td align="center" class="smallText"><?php echo tep_image(DIR_WS_IMAGES . $product_info['products_image_sm_4'], $product_info['products_name'], ULT_THUMB_IMAGE_WIDTH, ULT_THUMB_IMAGE_HEIGHT, 'hspace="1" vspace="1"'); ?>
 </td>
 <?php
} elseif
   (($product_info['products_image_sm_4'] != '') && ($product_info['products_image_sm_4'] != '')) {
?>
	</tr>
	<tr>
	  <td align="center" class="smallText"> <script language="javascript"><!--
	 document.write('<?php echo '<a href="javascript:popupWindow(\\\'' . tep_href_link(FILENAME_POPUP_IMAGE, 'pID=' . $product_info['products_id'] . 'ℑ=4') . '\\\')">' . tep_image(DIR_WS_IMAGES . $product_info['products_image_sm_4'], addslashes($product_info['products_name']), ULT_THUMB_IMAGE_WIDTH, ULT_THUMB_IMAGE_HEIGHT, 'hspace="1" vspace="1"') . '<br>' . tep_image_button('image_enlarge.gif', TEXT_CLICK_TO_ENLARGE) . '</a>'; ?>');
//--></script>
	 <noscript>
	   <?php echo '<a href="' . tep_href_link(DIR_WS_IMAGES . $product_info['products_image_sm_4']) . '">' . tep_image(DIR_WS_IMAGES . $product_info['products_image_sm_4'], $product_info['products_name'], ULT_THUMB_IMAGE_WIDTH, ULT_THUMB_IMAGE_HEIGHT, 'hspace="1" vspace="1"') . '<br>' . tep_image_button('image_enlarge.gif', TEXT_CLICK_TO_ENLARGE) . '</a>'; ?>
	  </noscript>
 </td>
 <?php
} elseif
  (($products_info['products_image_sm_4'] == '') && ($product_info['products_image_xl_4'] != '')) {
?>
	</tr>
	<tr>
	  <td align="center" class="smallText"><?php echo tep_image(DIR_WS_IMAGES . $product_info['products_image_xl_4'], $product_info['products_name'], LARGE_IMAGE_WIDTH, LARGE_IMAGE_HEIGHT, 'hspace="1" vspace="1"'); ?>
 </td>
 <?php
}
?>
</tr>


  <?php
if (($product_info['products_image_sm_5'] != '') && ($product_info['products_image_xl_5'] == '')) {
?>  
	<tr>
	  <td align="center" class="smallText"><?php echo tep_image(DIR_WS_IMAGES . $product_info['products_image_sm_5'], $product_info['products_name'], ULT_THUMB_IMAGE_WIDTH, ULT_THUMB_IMAGE_HEIGHT, 'hspace="1" vspace="1"'); ?>
  </td>
  <?php
} elseif
   (($product_info['products_image_sm_5'] != '') && ($product_info['products_image_sm_5'] != '')) {
?>
	</tr>
	<tr>
	  <td align="center" class="smallText"> <script language="javascript"><!--
	 document.write('<?php echo '<a href="javascript:popupWindow(\\\'' . tep_href_link(FILENAME_POPUP_IMAGE, 'pID=' . $product_info['products_id'] . 'ℑ=5') . '\\\')">' . tep_image(DIR_WS_IMAGES . $product_info['products_image_sm_5'], addslashes($product_info['products_name']), ULT_THUMB_IMAGE_WIDTH, ULT_THUMB_IMAGE_HEIGHT, 'hspace="1" vspace="1"') . '<br>' . tep_image_button('image_enlarge.gif', TEXT_CLICK_TO_ENLARGE) . '</a>'; ?>');
//--></script>
	 <noscript>
	   <?php echo '<a href="' . tep_href_link(DIR_WS_IMAGES . $product_info['products_image_sm_5']) . '">' . tep_image(DIR_WS_IMAGES . $product_info['products_image_sm_5'], $product_info['products_name'], ULT_THUMB_IMAGE_WIDTH, ULT_THUMB_IMAGE_HEIGHT, 'hspace="1" vspace="1"') . '<br>' . tep_image_button('image_enlarge.gif', TEXT_CLICK_TO_ENLARGE) . '</a>'; ?>
	  </noscript>
  </td>
  <?php
} elseif
  (($products_info['products_image_sm_5'] == '') && ($product_info['products_image_xl_5'] != '')) {
?>
	</tr>
	<tr>
	  <td align="center" class="smallText"><?php echo tep_image(DIR_WS_IMAGES . $product_info['products_image_xl_5'], $product_info['products_name'], LARGE_IMAGE_WIDTH, LARGE_IMAGE_HEIGHT, 'hspace="1" vspace="1"'); ?>
  </td>
  <?php
}
?>
</tr>

	<?php
if (($product_info['products_image_sm_6'] != '') && ($product_info['products_image_xl_6'] == '')) {
?>

	<tr>
	  <td align="center" class="smallText"><?php echo tep_image(DIR_WS_IMAGES . $product_info['products_image_sm_6'], $product_info['products_name'], ULT_THUMB_IMAGE_WIDTH, ULT_THUMB_IMAGE_HEIGHT, 'hspace="1" vspace="1"'); ?>
 </td>
 <?php
} elseif
   (($product_info['products_image_sm_6'] != '') && ($product_info['products_image_sm_6'] != '')) {
?>
	</tr>
	<tr>
	  <td align="center" class="smallText"> <script language="javascript"><!--
	 document.write('<?php echo '<a href="javascript:popupWindow(\\\'' . tep_href_link(FILENAME_POPUP_IMAGE, 'pID=' . $product_info['products_id'] . 'ℑ=6') . '\\\')">' . tep_image(DIR_WS_IMAGES . $product_info['products_image_sm_6'], addslashes($product_info['products_name']), ULT_THUMB_IMAGE_WIDTH, ULT_THUMB_IMAGE_HEIGHT, 'hspace="1" vspace="1"') . '<br>' . tep_image_button('image_enlarge.gif', TEXT_CLICK_TO_ENLARGE) . '</a>'; ?>');
//--></script>
	 <noscript>
	   <?php echo '<a href="' . tep_href_link(DIR_WS_IMAGES . $product_info['products_image_sm_6']) . '">' . tep_image(DIR_WS_IMAGES . $product_info['products_image_sm_6'], $product_info['products_name'], ULT_THUMB_IMAGE_WIDTH, ULT_THUMB_IMAGE_HEIGHT, 'hspace="1" vspace="1"') . '<br>' . tep_image_button('image_enlarge.gif', TEXT_CLICK_TO_ENLARGE) . '</a>'; ?>
	  </noscript>
 </td>
 <?php
} elseif
  (($products_info['products_image_sm_6'] == '') && ($product_info['products_image_xl_6'] != '')) {
?>
	</tr>
	<tr>
	  <td align="center" class="smallText"><?php echo tep_image(DIR_WS_IMAGES . $product_info['products_image_xl_6'], $product_info['products_name'], LARGE_IMAGE_WIDTH, LARGE_IMAGE_HEIGHT, 'hspace="1" vspace="1"'); ?>
 </td>
 <?php
}
?>

  </table>


<!-- // BOF MaxiDVD: Modified For Ultimate Images Pack! //-->

 

 

 

Now they should all be in the colum.

 

 

NOTE READ BEFORE MODDING YOUR FILES

 

I dont really know what I'm doing so be careful and backup the files before doing the above. Also I dont think this will work if you display large images, only thumbnailed with or without a enlarge option.

 

 

I've used so much from the oscommerce contributions I'd love to put this together properly and add it to the project. Can some one give me the guidlines on sorting it out to add it?

Edited by Caios
Link to comment
Share on other sites

  • 1 month later...

Hi,

 

I have installed Ultrapics_updated and seems to be working ok but i have a couple of questions/issues?

 

1) The Medium image width specifys the size of the image on the product info page but only works if i have a 'Bigger' image uploaded. IS this correct? So this is the only way to display the image on the info page a different size to the image on the product listing (where the products are listed in rows) page?

 

2) I have the same image loaded as the Products image and Bigger image, and the size of the image on the product info page is slightly bigger than the product listing (where the products are listed in rows). The problem is that when I go to the info page and back again to the listing page then back into the info page the image (slightly enlarged) is all blurred but wasn't the first time around? Any ideas?

 

3) What does the large image size in admin/config/images actually control, I can't get it to do anything!

 

Thanks

 

Becki

Link to comment
Share on other sites

  • 5 weeks later...

Hi! I've read everything here, but didn't find a clear answer. I have this contrib installed and it looks ok. It's just that on the product info page the extra images dont' show up... at all; Somewhere I went worng... but where? could any one help me?

Thank you!

Link to comment
Share on other sites

This can be changed in:

admin/htmlarea/popups/config.inc.php, about line 19-21

define("IMAGE_DIR", trim(DIR_FS_CATALOG_IMAGES));

define("IMAGE_URL", trim(DIR_WS_CATALOG . DIR_WS_IMAGES));

//define("IMAGE_DIR", trim("/home/httpd/vhosts/ebay.com/httpdocs/catalog/images/"));

//define("IMAGE_URL", trim("/catalog/images/"));

 

Comment out // the two top defines and uncomment the bottom two defines then manually add your server paths to the two bottom defines.

 

Should be right if you type in the defines right.

 

Cheers Lee.

I tried this and for the main image it works just fine, but for the smaller images, it still brings up my local drive for the browse window. Is there anyway to bring the browse window to look at my server instead?

 

sparks

 

Ok I have this problem and I have done whats suggested above still with no luck!

 

Im trying to add a url to an image on another site as a SM image and another url as a XL image

 

after pressing preview I still get www.mysite.com attached to the front of the url required.

 

How do i set the url default to BLANK so any url i putin the image url section will remain just that and not have another url added to it?

Link to comment
Share on other sites

  • 1 month later...
A few people in this thread have asked if they could have the extra images in a column under the normal image instead of at the bottom. I too wanted this too. The good news is that even with my limited experience I've done it.

 

Mod to go from this <_< <_< <_< <_< at the bottom

 

to this style of image display in the colum

 

:D

:D

:D

:D

I have to mod product_info.php a little bit:

 

Move this bit of code

 

	  <?php
// BOF MaxiDVD: Modified For Ultimate Images Pack!
if (ULTIMATE_ADDITIONAL_IMAGES == 'enable') { include(DIR_WS_MODULES . 'additional_images.php'); }
// BOF MaxiDVD: Modified For Ultimate Images Pack!
; ?>

 

To around line 134 just below this code

 

<!-- // BOF MaxiDVD: Modified For Ultimate Images Pack! //-->
<?php
if ($product_info['products_image_med']!='') {
	  $new_image = $product_info['products_image_med'];
	  $image_width = MEDIUM_IMAGE_WIDTH;
	  $image_height = MEDIUM_IMAGE_HEIGHT;
	 } else {
	  $new_image = $product_info['products_image'];
	  $image_width = SMALL_IMAGE_WIDTH;
	  $image_height = SMALL_IMAGE_HEIGHT;}?>
<script language="javascript"><!--
  document.write('<?php echo '<a href="java script:popupWindow(\\\'' . tep_href_link(FILENAME_POPUP_IMAGE, 'pID=' . $product_info['products_id'] . 'ℑ=0') . '\\\')">' . tep_image(DIR_WS_IMAGES . $new_image, addslashes($product_info['products_name']), $image_width, $image_height, 'hspace="5" vspace="5"') . '<br>' . tep_image_button('image_enlarge.gif', TEXT_CLICK_TO_ENLARGE) . '</a>'; ?>');
//--></script>
<noscript>
  <?php echo '<a href="' . tep_href_link(DIR_WS_IMAGES . $product_info['products_image_med']) . '">' . tep_image(DIR_WS_IMAGES . $new_image . 'ℑ=0', addslashes($product_info['products_name']), $image_width, $image_height, 'hspace="5" vspace="5"') . '<br>' . tep_image_button('image_enlarge.gif', TEXT_CLICK_TO_ENLARGE) . '</a>'; ?>
</noscript>
<!-- // EOF MaxiDVD: Modified For Ultimate Images Pack! //-->

Then I had to rewrite additional images, if you open that file and delete everything and replace it with this

 

<!-- // BOF MaxiDVD: Modified For Ultimate Images Pack! //-->
<tr>
  <td><table width="100%" border="0">
	<tr>




	<?php
if (($product_info['products_image_sm_1'] != '') && ($product_info['products_image_xl_1'] == '')) {
?>
	  <td align="center" class="smallText"><?php echo tep_image(DIR_WS_IMAGES . $product_info['products_image_sm_1'], $product_info['products_name'], ULT_THUMB_IMAGE_WIDTH, ULT_THUMB_IMAGE_HEIGHT, 'hspace="1" vspace="1"'); ?>
 </td>
<?php
} elseif
   (($product_info['products_image_sm_1'] != '') && ($product_info['products_image_sm_1'] != '')) {
?>
	</tr>
	<tr>
	  <td align="center" class="smallText">	  <script language="javascript"><!--
	 document.write('<?php echo '<a href="java script:popupWindow(\\\'' . tep_href_link(FILENAME_POPUP_IMAGE, 'pID=' . $product_info['products_id'] . 'ℑ=1') . '\\\')">' . tep_image(DIR_WS_IMAGES . $product_info['products_image_sm_1'], addslashes($product_info['products_name']), ULT_THUMB_IMAGE_WIDTH, ULT_THUMB_IMAGE_HEIGHT, 'hspace="1" vspace="1"') . '<br>' . tep_image_button('image_enlarge.gif', TEXT_CLICK_TO_ENLARGE) . '</a>'; ?>');
   //--></script>
	 <noscript>
	   <?php echo '<a href="' . tep_href_link(DIR_WS_IMAGES . $product_info['products_image_sm_1']) . '">' . tep_image(DIR_WS_IMAGES . $product_info['products_image_sm_1'], $product_info['products_name'], ULT_THUMB_IMAGE_WIDTH, ULT_THUMB_IMAGE_HEIGHT, 'hspace="1" vspace="1"') . '<br>' . tep_image_button('image_enlarge.gif', TEXT_CLICK_TO_ENLARGE) . '</a>'; ?>
	  </noscript>
	  </td>
	  <?php
} elseif
  (($products_info['products_image_sm_1'] == '') && ($product_info['products_image_xl_1'] != '')) {
?>
	</tr>
	<tr>
	  <td align="center" class="smallText"><?php echo tep_image(DIR_WS_IMAGES . $product_info['products_image_xl_1'], $product_info['products_name'], LARGE_IMAGE_WIDTH, LARGE_IMAGE_HEIGHT, 'hspace="1" vspace="1"'); ?>
  </td>
  <?php
}
?>
</tr>
<?php
if (($product_info['products_image_sm_2'] != '') && ($product_info['products_image_xl_2'] == '')) {
?>
	<tr>
	  <td align="center" class="smallText"><?php echo tep_image(DIR_WS_IMAGES . $product_info['products_image_sm_2'], $product_info['products_name'], ULT_THUMB_IMAGE_WIDTH, ULT_THUMB_IMAGE_HEIGHT, 'hspace="1" vspace="1"'); ?>
  </td>
  <?php
} elseif
   (($product_info['products_image_sm_2'] != '') && ($product_info['products_image_sm_2'] != '')) {
  ?>
	</tr>
	<tr>
	  <td align="center" class="smallText">	  <script language="javascript"><!--
	 document.write('<?php echo '<a href="java script:popupWindow(\\\'' . tep_href_link(FILENAME_POPUP_IMAGE, 'pID=' . $product_info['products_id'] . 'ℑ=2') . '\\\')">' . tep_image(DIR_WS_IMAGES . $product_info['products_image_sm_2'], addslashes($product_info['products_name']), ULT_THUMB_IMAGE_WIDTH, ULT_THUMB_IMAGE_HEIGHT, 'hspace="1" vspace="1"') . '<br>' . tep_image_button('image_enlarge.gif', TEXT_CLICK_TO_ENLARGE) . '</a>'; ?>');
	//--></script>
	 <noscript>
	   <?php echo '<a href="' . tep_href_link(DIR_WS_IMAGES . $product_info['products_image_sm_2']) . '">' . tep_image(DIR_WS_IMAGES . $product_info['products_image_sm_2'], $product_info['products_name'], ULT_THUMB_IMAGE_WIDTH, ULT_THUMB_IMAGE_HEIGHT, 'hspace="1" vspace="1"') . '<br>' . tep_image_button('image_enlarge.gif', TEXT_CLICK_TO_ENLARGE) . '</a>'; ?>
	  </noscript>
	  </td>
	  <?php
} elseif
  (($products_info['products_image_sm_2'] == '') && ($product_info['products_image_xl_2'] != '')) {
?>
	</tr>
	<tr>
	  <td align="center" class="smallText"><?php echo tep_image(DIR_WS_IMAGES . $product_info['products_image_xl_2'], $product_info['products_name'], LARGE_IMAGE_WIDTH, LARGE_IMAGE_HEIGHT, 'hspace="1" vspace="1"'); ?>
 </td>
<?php
}
?>
</tr>



	<?php
if (($product_info['products_image_sm_3'] != '') && ($product_info['products_image_xl_3'] == '')) {
?>
	<tr>
	  <td align="center" class="smallText"><?php echo tep_image(DIR_WS_IMAGES . $product_info['products_image_sm_3'], $product_info['products_name'], ULT_THUMB_IMAGE_WIDTH, ULT_THUMB_IMAGE_HEIGHT, 'hspace="1" vspace="1"'); ?>
 </td>
 <?php
} elseif
   (($product_info['products_image_sm_3'] != '') && ($product_info['products_image_sm_3'] != '')) {
?>
	</tr>
	<tr>
	  <td align="center" class="smallText">	  <script language="javascript"><!--
	 document.write('<?php echo '<a href="java script:popupWindow(\\\'' . tep_href_link(FILENAME_POPUP_IMAGE, 'pID=' . $product_info['products_id'] . 'ℑ=3') . '\\\')">' . tep_image(DIR_WS_IMAGES . $product_info['products_image_sm_3'], addslashes($product_info['products_name']), ULT_THUMB_IMAGE_WIDTH, ULT_THUMB_IMAGE_HEIGHT, 'hspace="1" vspace="1"') . '<br>' . tep_image_button('image_enlarge.gif', TEXT_CLICK_TO_ENLARGE) . '</a>'; ?>');
//--></script>
	 <noscript>
	   <?php echo '<a href="' . tep_href_link(DIR_WS_IMAGES . $product_info['products_image_sm_3']) . '">' . tep_image(DIR_WS_IMAGES . $product_info['products_image_sm_3'], $product_info['products_name'], ULT_THUMB_IMAGE_WIDTH, ULT_THUMB_IMAGE_HEIGHT, 'hspace="1" vspace="1"') . '<br>' . tep_image_button('image_enlarge.gif', TEXT_CLICK_TO_ENLARGE) . '</a>'; ?>
	  </noscript>
	  </td>
	  <?php
} elseif
  (($products_info['products_image_sm_3'] == '') && ($product_info['products_image_xl_3'] != '')) {
?>
	</tr>
	<tr>
	  <td align="center" class="smallText"><?php echo tep_image(DIR_WS_IMAGES . $product_info['products_image_xl_3'], $product_info['products_name'], LARGE_IMAGE_WIDTH, LARGE_IMAGE_HEIGHT, 'hspace="1" vspace="1"'); ?>
 </td>
 <?php
}
?>
</tr>


	<?php
if (($product_info['products_image_sm_4'] != '') && ($product_info['products_image_xl_4'] == '')) {
?>
	<tr>
	  <td align="center" class="smallText"><?php echo tep_image(DIR_WS_IMAGES . $product_info['products_image_sm_4'], $product_info['products_name'], ULT_THUMB_IMAGE_WIDTH, ULT_THUMB_IMAGE_HEIGHT, 'hspace="1" vspace="1"'); ?>
 </td>
 <?php
} elseif
   (($product_info['products_image_sm_4'] != '') && ($product_info['products_image_sm_4'] != '')) {
?>
	</tr>
	<tr>
	  <td align="center" class="smallText"> <script language="javascript"><!--
	 document.write('<?php echo '<a href="java script:popupWindow(\\\'' . tep_href_link(FILENAME_POPUP_IMAGE, 'pID=' . $product_info['products_id'] . 'ℑ=4') . '\\\')">' . tep_image(DIR_WS_IMAGES . $product_info['products_image_sm_4'], addslashes($product_info['products_name']), ULT_THUMB_IMAGE_WIDTH, ULT_THUMB_IMAGE_HEIGHT, 'hspace="1" vspace="1"') . '<br>' . tep_image_button('image_enlarge.gif', TEXT_CLICK_TO_ENLARGE) . '</a>'; ?>');
//--></script>
	 <noscript>
	   <?php echo '<a href="' . tep_href_link(DIR_WS_IMAGES . $product_info['products_image_sm_4']) . '">' . tep_image(DIR_WS_IMAGES . $product_info['products_image_sm_4'], $product_info['products_name'], ULT_THUMB_IMAGE_WIDTH, ULT_THUMB_IMAGE_HEIGHT, 'hspace="1" vspace="1"') . '<br>' . tep_image_button('image_enlarge.gif', TEXT_CLICK_TO_ENLARGE) . '</a>'; ?>
	  </noscript>
 </td>
 <?php
} elseif
  (($products_info['products_image_sm_4'] == '') && ($product_info['products_image_xl_4'] != '')) {
?>
	</tr>
	<tr>
	  <td align="center" class="smallText"><?php echo tep_image(DIR_WS_IMAGES . $product_info['products_image_xl_4'], $product_info['products_name'], LARGE_IMAGE_WIDTH, LARGE_IMAGE_HEIGHT, 'hspace="1" vspace="1"'); ?>
 </td>
 <?php
}
?>
</tr>


  <?php
if (($product_info['products_image_sm_5'] != '') && ($product_info['products_image_xl_5'] == '')) {
?>  
	<tr>
	  <td align="center" class="smallText"><?php echo tep_image(DIR_WS_IMAGES . $product_info['products_image_sm_5'], $product_info['products_name'], ULT_THUMB_IMAGE_WIDTH, ULT_THUMB_IMAGE_HEIGHT, 'hspace="1" vspace="1"'); ?>
  </td>
  <?php
} elseif
   (($product_info['products_image_sm_5'] != '') && ($product_info['products_image_sm_5'] != '')) {
?>
	</tr>
	<tr>
	  <td align="center" class="smallText"> <script language="javascript"><!--
	 document.write('<?php echo '<a href="java script:popupWindow(\\\'' . tep_href_link(FILENAME_POPUP_IMAGE, 'pID=' . $product_info['products_id'] . 'ℑ=5') . '\\\')">' . tep_image(DIR_WS_IMAGES . $product_info['products_image_sm_5'], addslashes($product_info['products_name']), ULT_THUMB_IMAGE_WIDTH, ULT_THUMB_IMAGE_HEIGHT, 'hspace="1" vspace="1"') . '<br>' . tep_image_button('image_enlarge.gif', TEXT_CLICK_TO_ENLARGE) . '</a>'; ?>');
//--></script>
	 <noscript>
	   <?php echo '<a href="' . tep_href_link(DIR_WS_IMAGES . $product_info['products_image_sm_5']) . '">' . tep_image(DIR_WS_IMAGES . $product_info['products_image_sm_5'], $product_info['products_name'], ULT_THUMB_IMAGE_WIDTH, ULT_THUMB_IMAGE_HEIGHT, 'hspace="1" vspace="1"') . '<br>' . tep_image_button('image_enlarge.gif', TEXT_CLICK_TO_ENLARGE) . '</a>'; ?>
	  </noscript>
  </td>
  <?php
} elseif
  (($products_info['products_image_sm_5'] == '') && ($product_info['products_image_xl_5'] != '')) {
?>
	</tr>
	<tr>
	  <td align="center" class="smallText"><?php echo tep_image(DIR_WS_IMAGES . $product_info['products_image_xl_5'], $product_info['products_name'], LARGE_IMAGE_WIDTH, LARGE_IMAGE_HEIGHT, 'hspace="1" vspace="1"'); ?>
  </td>
  <?php
}
?>
</tr>

	<?php
if (($product_info['products_image_sm_6'] != '') && ($product_info['products_image_xl_6'] == '')) {
?>

	<tr>
	  <td align="center" class="smallText"><?php echo tep_image(DIR_WS_IMAGES . $product_info['products_image_sm_6'], $product_info['products_name'], ULT_THUMB_IMAGE_WIDTH, ULT_THUMB_IMAGE_HEIGHT, 'hspace="1" vspace="1"'); ?>
 </td>
 <?php
} elseif
   (($product_info['products_image_sm_6'] != '') && ($product_info['products_image_sm_6'] != '')) {
?>
	</tr>
	<tr>
	  <td align="center" class="smallText"> <script language="javascript"><!--
	 document.write('<?php echo '<a href="java script:popupWindow(\\\'' . tep_href_link(FILENAME_POPUP_IMAGE, 'pID=' . $product_info['products_id'] . 'ℑ=6') . '\\\')">' . tep_image(DIR_WS_IMAGES . $product_info['products_image_sm_6'], addslashes($product_info['products_name']), ULT_THUMB_IMAGE_WIDTH, ULT_THUMB_IMAGE_HEIGHT, 'hspace="1" vspace="1"') . '<br>' . tep_image_button('image_enlarge.gif', TEXT_CLICK_TO_ENLARGE) . '</a>'; ?>');
//--></script>
	 <noscript>
	   <?php echo '<a href="' . tep_href_link(DIR_WS_IMAGES . $product_info['products_image_sm_6']) . '">' . tep_image(DIR_WS_IMAGES . $product_info['products_image_sm_6'], $product_info['products_name'], ULT_THUMB_IMAGE_WIDTH, ULT_THUMB_IMAGE_HEIGHT, 'hspace="1" vspace="1"') . '<br>' . tep_image_button('image_enlarge.gif', TEXT_CLICK_TO_ENLARGE) . '</a>'; ?>
	  </noscript>
 </td>
 <?php
} elseif
  (($products_info['products_image_sm_6'] == '') && ($product_info['products_image_xl_6'] != '')) {
?>
	</tr>
	<tr>
	  <td align="center" class="smallText"><?php echo tep_image(DIR_WS_IMAGES . $product_info['products_image_xl_6'], $product_info['products_name'], LARGE_IMAGE_WIDTH, LARGE_IMAGE_HEIGHT, 'hspace="1" vspace="1"'); ?>
 </td>
 <?php
}
?>

  </table>


<!-- // BOF MaxiDVD: Modified For Ultimate Images Pack! //-->

Now they should all be in the colum.

NOTE READ BEFORE MODDING YOUR FILES

 

I dont really know what I'm doing so be careful and backup the files before doing the above. Also I dont think this will work if you display large images, only thumbnailed with or without a enlarge option.

I've used so much from the oscommerce contributions I'd love to put this together properly and add it to the project. Can some one give me the guidlines on sorting it out to add it?

 

Hi all,

I made the changes that caios described as copied above, but the column of images actually is placed on the right hand side of the page, I wanted to have the images on the left. I asked caios who was going to advise me never got back to me nor can I contact him now.

 

Does anyone know what to change to move the images to the left hand side rather than the right?

 

Thanks

 

Becki

Link to comment
Share on other sites

  • 3 weeks later...

I would like to know if you can submit the pictures into individual folders so they can be better organized. How would we do this. The method shown in the osCommerce 2.2 Milestone 2 Update 051112 documentation does not work for this. Someone back me up.

If you say you can't do it, you're only fooling yourself.

Link to comment
Share on other sites

  • 2 weeks later...

I have this working but the previews is not showing up on the admin page. They are showing up on the preview after I've submitted, but not on the product edit page.

 

Noticed in the sourcecode that they are linked as

"/catalog/images/product_x.jpg" instead of

"http://www.server.com/catalog/product_x.jpg"

 

Anyone got a clue?

 

I believe my configure.php files looks as they should.

 

Thanks for taking the time.

Link to comment
Share on other sites

I have this working but the previews is not showing up on the admin page. They are showing up on the preview after I've submitted, but not on the product edit page.

 

Noticed in the sourcecode that they are linked as

"/catalog/images/product_x.jpg" instead of

"http://www.server.com/catalog/product_x.jpg"

 

Anyone got a clue?

 

I believe my configure.php files looks as they should.

 

Thanks for taking the time.

 

Seems like there was something wrong with my database. After a clean database installation the problem was gone. Maybe has to do with some other contribution previously installed...

Link to comment
Share on other sites

  • 2 months later...

I have problem like this user:

How to fix?

 

Warning: move_uploaded_file(/home/www/htdocs/pc-4-you.de/b2b-loaded-by-ice/images/product_details_popups.jpg) [function.move-uploaded-file]: failed to create stream: Permission denied in /home/www/htdocs/pc/b2/admin/includes/classes/upload.php on line 94

 

Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move '/home/www/htdocs/pc-4-you.de/tmp/phpHqdSb3' to '/home/www/htdocs/pc-4-you.de/b2b-loaded-by-ice/images/product_details_popups.jpg' in /home/www/htdocs/pc/b2/admin/includes/classes/upload.php on line 94

 

Warning: move_uploaded_file(/home/www/htdocs/pc-4-you.de/b2b-loaded-by-ice/images/product_details_no_popup.jpg) [function.move-uploaded-file]: failed to create stream: Permission denied in /home/www/htdocs/pc/b2/admin/includes/classes/upload.php on line 94

 

Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move '/home/www/htdocs/pc-4-you.de/tmp/phpUW3Obm' to '/home/www/htdocs/pc-4-you.de/b2b-loaded-by-ice/images/product_details_no_popup.jpg' in /home/www/htdocs/pc/b2/admin/includes/classes/upload.php on line 94

 

Waiting... thanx

Link to comment
Share on other sites

Hi, I am getting the following error:

 

1054 - Unknown column 'p.products_image_med' in 'field list'

 

select p.products_id, pd.language_id, pd.products_name, pd.products_description, pd.products_url, p.products_quantity, p.products_model, p.products_image, p.products_image_med, p.products_image_lrg, p.products_image_sm_1, p.products_image_xl_1, p.products_image_sm_2, p.products_image_xl_2, p.products_image_sm_3, p.products_image_xl_3, p.products_image_sm_4, p.products_image_xl_4, p.products_image_sm_5, p.products_image_xl_5, p.products_image_sm_6, p.products_image_xl_6, p.products_price, p.products_weight, p.products_date_added, p.products_last_modified, p.products_date_available, p.products_status, p.manufacturers_id from products p, products_description pd where p.products_id = pd.products_id and p.products_id = '44'

 

Can any help?

Link to comment
Share on other sites

Just ran into another problem. I decided to manually copy/paste the code because I purchased a template. Everything works fine except I'm not able to see the click to enlarge button, and if I do click to enlarge, I'm not able to see the picture. Can anyone help?

Link to comment
Share on other sites

  • 5 weeks later...
  • 3 weeks later...

Aaaaaahaaaaa!!

 

I didn't realise this contribution even had a thread!

 

I have just posted on the More_pics image contribution support thread asking for some feedback on the main differences between More_Pics and UltraPics?

 

I need to add an image contribution to a clients site but am requesting feedback from people who have installed it. Any help would be appreciated.

 

Thanks

Upon receiving fixes and advice, too many people don't bother to post updates informing the forum of how it went. Until of course they need help again on other issues and they come running back!

 

Why receive the information you require in good faith for free, only to then have the attitude to ignore the people who gave it to you?

 

There's no harm in saying, 'Thanks, it worked'. On the contrary, it creates a better atmosphere.

 

CHOOCH

Link to comment
Share on other sites

  • 2 weeks later...

Hello,

 

I have installed this contribution, it was working for some time, now there are vertical lines messing up my product_info.php page as shown below:

lines.jpg

 

I have found the code that is giving the issue and it is part of this contribution:

 

<?php
// BOF MaxiDVD: Modified For Ultimate Images Pack!
if (ULTIMATE_ADDITIONAL_IMAGES == 'enable') { include(DIR_WS_MODULES . 'additional_images.php'); }
// BOF MaxiDVD: Modified For Ultimate Images Pack!
; ?>

 

Hoping someone can help me with this.

Link to comment
Share on other sites

HI all, I've installed this contrib and it appears great in the admin and live;however, this is such a novice question, but do I have to make my image in 3 sizes? Right now I have one big image, and it doesn't seem to be resizing it to the x-large, medium, etc? Do I need to make these myself and upload them in the admin area in the appropriate places??

 

Thanks so much. I'm very excited about this contrib, and it is working great, but if someone could answer this for me I would really appreciate it!

 

www.dogivatreats.com

 

There is only one product right now I am playing w/before I add anymore I want to figure out the image sizes.

 

Thanks.

Link to comment
Share on other sites

HI all, I've installed this contrib and it appears great in the admin and live;however, this is such a novice question, but do I have to make my image in 3 sizes? Right now I have one big image, and it doesn't seem to be resizing it to the x-large, medium, etc? Do I need to make these myself and upload them in the admin area in the appropriate places??

 

Thanks so much. I'm very excited about this contrib, and it is working great, but if someone could answer this for me I would really appreciate it!

 

www.dogivatreats.com

 

There is only one product right now I am playing w/before I add anymore I want to figure out the image sizes.

 

Thanks.

 

There are options to auto thumbnail images but I do not think that it will enlarge a pic. Most enlargements that I have seen that blow up a pic from it's normal size lose quality. I think you would be better off make the images your self.

Link to comment
Share on other sites

  • 2 weeks later...

I just installed this and am getting the following error

 

Fatal error: Cannot redeclare tep_show_category() (previously declared in /home/btnhboard/domains/btnhstore.com/public_html/includes/boxes/categories.php:12) in /home/btnhboard/domains/btnhstore.com/public_html/includes/boxes/categories.php on line 12

 

 

I replaced all the required files and ran the sql query

Link to comment
Share on other sites

  • 2 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

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