Community Add-Ons

Add file to this package
Top » Other

Banner Picture Hack in Banner Manager
for osCommerce Online Merchant v2.2

This is a little hack to add a picture in the banner listing so that you can see what banner is being displayed. You can view the attached picture to see what I mean. Original Idea was from Tom Paul Grissom, so all credits should go to him.

BACKUP FIRST! I ASSUME NO RESPONSIBILITY IF IT MESSES UP YOUR FILES!

Installation:
In adminbanner_manager.php

FIND:
<td class="dataTableContent"><?php echo '<a href="javascript:popupImageWindow('' . FILENAME_POPUP_IMAGE . '?banner=' . $banners['banners_id'] . '')">' . tep_image(DIR_WS_IMAGES . 'icon_popup.gif', 'View Banner') . '</a>&nbsp;' . $banners['banners_title']; ?></td>

REPLACE WITH:
<td class="dataTableContent"><?php echo '<a href="javascript:popupImageWindow('' . FILENAME_POPUP_IMAGE . '?banner=' . $banners['banners_id'] . '')">' . tep_image(DIR_WS_CATALOG_IMAGES . $banners['banners_image'] . ' " width="100" height="13"', ICON_PREVIEW) . '</a>&nbsp;' . $banners['banners_title']; ?></td>

That's all Folks.

Have Fun,
StrictlyPC

If you have any questions, you can email me at david@strictlypc.com

Legend:  Download   Report
Expand All / Collapse All
Make it Compatible to Oscommerce anisrehan 16 Oct 2009  

Make it Compatible to Oscommerce
Use SMALL_IMAGE_WIDTH and SMALL_IMAGE_HEIGHT instead.

REPLACE TO:
<td class="dataTableContent"><?php echo '<a href="javascript:popupImageWindow('' . FILENAME_POPUP_IMAGE . '?banner=' . $banners['banners_id'] . '')">' . tep_image(DIR_WS_CATALOG_IMAGES . $banners['banners_image'],ICON_PREVIEW,SMALL_IMAGE_WIDTH,SMALL_IMAGE_HEIGHT) . '</a> ' . $banners['banners_title']; ?></td>

Small option Savante 29 Oct 2007  
Updated to work with MS2 Freeman 23 Jul 2006  
Banner Picture Hack in Banner Manager David Phung 15 Mar 2003