jgeoff Posted January 22, 2011 Share Posted January 22, 2011 I'm having a display issue in 3 of my boxes in the left and right columns. My /images/ directory was hacked a couple times recently, but I'm not sure if that has anything to do with it. The content that should be in the boxes is below the box, where the huge "NO IMAGE" icon is. I'm at a loss on how to correct this. Any ideas? osC v2.2 RC2a w/ no special templates PHP Version 5.2.14 / MySQL 5.0.91-community Link to comment Share on other sites More sharing options...
jgeoff Posted January 23, 2011 Author Share Posted January 23, 2011 I've just realized that those images are for the "more" link -- I don't even remember now if there's a "more" button, or where it's called up from osC v2.2 RC2a w/ no special templates PHP Version 5.2.14 / MySQL 5.0.91-community Link to comment Share on other sites More sharing options...
jgeoff Posted January 24, 2011 Author Share Posted January 24, 2011 Please - Doesn't anyone know where the "more" image is called up and how I can correct this? osC v2.2 RC2a w/ no special templates PHP Version 5.2.14 / MySQL 5.0.91-community Link to comment Share on other sites More sharing options...
Guest Posted January 24, 2011 Share Posted January 24, 2011 In a default osCommerce installation, there is NO 'No Image' file. This is why you haven' received a response sooner. You obviously have a template and/or contributions added that places the image there. Your signature says there is no template, and if that is correct then the image problem is coming from a contribution. Chris Link to comment Share on other sites More sharing options...
jgeoff Posted January 24, 2011 Author Share Posted January 24, 2011 I'm now talking about the "more" link (ICON_ARROW_RIGHT) next to the box title, for instance "What's New?" isn't being hyperlinked, but some "More" button next to it is (tho the image is broken). But in the code I cannot see any button next to the box heading. <?php /* $Id: whats_new.php 1739 2007-12-20 00:52:16Z hpdl $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2003 osCommerce Released under the GNU General Public License */ if ($random_product = tep_random_select("select products_id, products_image, products_tax_class_id, products_price, products_map from " . TABLE_PRODUCTS . " where products_status = '1' order by products_date_added desc limit " . MAX_RANDOM_SELECT_NEW)) { ?> <!-- whats_new //--> <tr> <td> <?php $random_product['products_name'] = tep_get_products_name($random_product['products_id']); $random_product['specials_new_products_price'] = tep_get_products_special_price($random_product['products_id']); $info_box_contents = array(); $info_box_contents[] = array('text' => BOX_HEADING_WHATS_NEW); new infoBoxHeading($info_box_contents, false, false, tep_href_link(FILENAME_PRODUCTS_NEW)); [sNIP] $info_box_contents = array(); $info_box_contents[] = array('align' => 'center', 'text' => '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $random_product['products_id']) . '">' . tep_image(DIR_WS_IMAGES . $random_product['products_image'], $random_product['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a><br><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $random_product['products_id']) . '">' . $random_product['products_name'] . '</a><br>' . $whats_new_price); new infoBox($info_box_contents); ?> </td> </tr> <!-- whats_new_eof //--> <?php } ?> $info_box_contents works, the item is displayed properly with its image, etc. But where is BOX_HEADING_WHATS_NEW getting the following HTML from? <table border="0" width="100%" cellspacing="0" cellpadding="0"> <tbody><tr> <td height="14" class="infoBoxHeading"><img src="images/infobox/corner_right_left.gif" width="11" height="14" border="0" alt=""></td> <td width="100%" height="14" class="infoBoxHeading">What's New?</td> <td height="14" class="infoBoxHeading" nowrap=""><a href="http://mineroff-nature.com/nature/products_new.php"><img src="images/noimage.jpg" width="64" height="57" border="0" alt="more" title="more"></a><img src="images/pixel_trans.gif" width="11" height="14" border="0" alt=""></td> </tr> </tbody></table> If I can figure out where that HTML is coming from, I'll be able to fix the "more" images in the boxes [define('ICON_ARROW_RIGHT', 'more');]. I haven't been intimate with the osC code in a couple years, so any direction would be appreciated - thanks ;) osC v2.2 RC2a w/ no special templates PHP Version 5.2.14 / MySQL 5.0.91-community Link to comment Share on other sites More sharing options...
jhande Posted January 24, 2011 Share Posted January 24, 2011 In my version of osC (MS2 2.2) you can find the code for the right arrow icon in - includes\classes\boxes.php Make sure you have the image arrow_right.gif in your images\infobox folder. Hope that helps point you in the right direction. - :: Jim :: - - My Toolbox ~ Adobe Web Bundle, XAMPP & WinMerge | Install ~ osC v2.3.3.4 - Link to comment Share on other sites More sharing options...
jgeoff Posted January 24, 2011 Author Share Posted January 24, 2011 Thank you - problem solved! B) osC v2.2 RC2a w/ no special templates PHP Version 5.2.14 / MySQL 5.0.91-community Link to comment Share on other sites More sharing options...
jhande Posted January 25, 2011 Share Posted January 25, 2011 Glad to hear... :thumbsup: - :: Jim :: - - My Toolbox ~ Adobe Web Bundle, XAMPP & WinMerge | Install ~ osC v2.3.3.4 - Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.