Community Add-Ons
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> ' . $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> ' . $banners['banners_title']; ?></td>
That's all Folks.
Have Fun,
StrictlyPC
If you have any questions, you can email me at david@strictlypc.com
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'],ICON_PREVIEW,150,"0") . '</a> ' . $banners['banners_title']; ?></td>
To show banners in the right proportions if you have different size banners. You can change the 150 value to what ever you like
