Mini Images v2.0 works with MarvikShop

Mehr
13 Jahre 4 Monate her - 13 Jahre 4 Monate her #16 von Sandra
Mini Images v2.0 by Henry Smith - Diese E-Mail-Adresse ist vor Spambots geschützt! Zur Anzeige muss JavaScript eingeschaltet sein!
Memory Lane Primitives - www.memorylaneprimitives.com
www.oscommerce.com/community/contributions,2542
[Original Code 7 Jan 2005 by Brian Sim: Diese E-Mail-Adresse ist vor Spambots geschützt! Zur Anzeige muss JavaScript eingeschaltet sein!]


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: Diese E-Mail-Adresse ist vor Spambots geschützt! Zur Anzeige muss JavaScript eingeschaltet sein!
v2.0 Update 15 Mar 2006 by Henry Smith: Diese E-Mail-Adresse ist vor Spambots geschützt! Zur Anzeige muss JavaScript eingeschaltet sein!


Please feel free to post any improvements to this contribution. :laugh:
Anhänge:
Letzte Änderung: 13 Jahre 4 Monate her von Sandra.

Bitte Anmelden um der Konversation beizutreten.

Ladezeit der Seite: 0.237 Sekunden
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