Mini Images v2.0 works with MarvikShop

More
14 years 4 weeks ago - 14 years 4 weeks ago #16 by Sandra
Mini Images v2.0 by Henry Smith - oscommerce@memorylaneprimitives.com
Memory Lane Primitives - www.memorylaneprimitives.com
www.oscommerce.com/community/contributions,2542
[Original Code 7 Jan 2005 by Brian Sim: brianwsim@hotmail.com]


1 - Important Note - These coding enhancements are designed to take advatage of the OTF w/GD (admin side) contribution which you can get at www.oscommerce.com/community/contributions,2226 If you are not using OTF w/GD, I am unsure what your results will be.


2 - Modification Notes: Changes were made to primarily take advantage of OTF and also to correct issues with the top cat folders not displaying. Moved containing folder over to the appropriate row with linking.

3 - New Screen Shots Included


==========================================================
catalog/admin/categories.php
Before This:

<td class="dataTableHeadingContent"><?php echo TABLE_HEADING_CATEGORIES_PRODUCTS; ?></td>

Add This

<!-- Begin Mini Images v2.0 //-->
<td width="50" class="dataTableHeadingContent"><?php echo TABLE_HEADING_IMAGE; ?></td>
<!-- End Mini Images v2.0 //-->


(Still in same file)
Find This:

<td class="dataTableContent"><?php echo '<a href="' . tep_href_link(FILENAME_CATEGORIES, tep_get_path($categories)) . '">' . tep_image(DIR_WS_ICONS . 'folder.gif', ICON_FOLDER) . '</a>&nbsp;<b>' . $categories . '</b>'; ?></td>

Replace With This

<!-- Begin Mini Images v2.0//-->
<td class="dataTableContent"><?php echo '<a href="' . tep_href_link(FILENAME_CATEGORIES, tep_get_path($categories)) . '">' . tep_image(DIR_WS_ICONS . 'folder.gif', ICON_FOLDER) . '</a>'; ?></td>
<td class="dataTableContent"><?php echo '<b>' . $categories . '</b>'; ?></td>
<!-- End Mini Images v2.0//-->



(Still in same file)
Before This

<td class="dataTableContent"><?php echo '<a href="' . tep_href_link(FILENAME_CATEGORIES, 'cPath=' . $cPath . '&pID=' . $products . '&action=new_product_preview&read=only') . '">' . tep_image(DIR_WS_ICONS . 'preview.gif', ICON_PREVIEW) . '</a>&nbsp;' . $products; ?></td>


Add

<!-- Begin Mini Images v2.0//-->
<td class="dataTableContent"><?php echo tep_image(DIR_WS_CATALOG_IMAGES . $products, $products, 40, 40); ?></td>
<!-- End Mini Images v2.0//-->


[Note - In the above snippet you can control the size of your thumbnails by modifying the 40, 40 (40px by 40px) anything between 30, 30 to 50, 50 range is adequate in nearly all cases- but you can resize as big or as small as you wish. I felt 40, 40 was a decent number to default to.]


==========================================================
Next File:
catalog/admin/includes/languages/english/categories.php
After This:

define('TABLE_HEADING_STATUS', 'Status');

Add This:
<!-- Begin Mini Images v2.0//-->
define('TABLE_HEADING_IMAGE', 'Image');
<!-- End Mini Images v2.0//-->

==========================================================

Thats It!

Original Code 7 Jan 2005 by Brian Sim: brianwsim@hotmail.com
v2.0 Update 15 Mar 2006 by Henry Smith: oscommerce@memorylaneprimitives.com


Please feel free to post any improvements to this contribution. :laugh:
Attachments:
Last edit: 14 years 4 weeks ago by Sandra.

Please Log in or Create an account to join the conversation.

Events Joomla
MarvikShop
Finnaly it's here:
 
No bridges, no look a likes!
This is the ultimate integration
between Oscommerce and Joomla!
Documentation
Site Showcase
Follow us