my scrap shop G Posted December 6, 2006 Posted December 6, 2006 many moons ago I had some help from someone with regard to changing the default osCommerce text (before the main body of text) and I put an image in that space.... now I'd like to change that image but I can't remember where I made the changes, please help! I am also having dramas with a big space on my main page that perhaps is being caused by this image? so if I can just delete it my problems might be solved easily.... any helpers?
usernamenone Posted December 7, 2006 Posted December 7, 2006 header image in header.php or text in languages/yourlanguage/index/php
Guest Posted December 7, 2006 Posted December 7, 2006 From the source code, it appears that the code that you changed to add the image was in the catalog/index.php file: <!-- body_text //--> <td width="100%" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td><table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td class="pageHeading"><img src="images/memories.jpg" width="560" height="100"></td> I'd bet your spacing issue is caused by the next line output in that file, as it shows up in the html output like this: <td class="pageHeading" align="right"><img src="images/table_background_default.gif" border="0" alt="<img src="images/memories.jpg" width="560" height="100";>" title=" <img src="images/memories.jpg" width="560" height=";100"> " width="1" height="1"></td>
my scrap shop G Posted December 11, 2006 Author Posted December 11, 2006 thank you so much for taking some time to help me, except that I can't find that bit in my index.php ... here's a snippet... <!-- body_text //--> <?php if ($category_depth == 'nested') { $category_query = tep_db_query("select cd.categories_name, c.categories_image from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where c.categories_id = '" . (int)$current_category_id . "' and cd.categories_id = '" . (int)$current_category_id . "' and cd.language_id = '" . (int)$languages_id . "'"); $category = tep_db_fetch_array($category_query); ?> <td width="100%" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td><table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td class="pageHeading"><?php // hacked to display current category name in main content area! if ($tree[$current_category_id]['parent'] != '0') { echo $tree[$tree[$current_category_id]['parent']]['name'] . ' '; } echo $tree[$current_category_id]['name']; ?> <td class="pageHeading" align="right"><?php echo tep_image(DIR_WS_IMAGES . $category['categories_image'], $category['categories_name'], HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td> </tr> </table></td> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> <tr> <td><table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> <td><table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr>
usernamenone Posted December 11, 2006 Posted December 11, 2006 thank you so much for taking some time to help me, except that I can't find that bit in my index.php ... here's a snippet...<!-- body_text //--> <?php if ($category_depth == 'nested') Starts on line 62. catalog/index.php file
my scrap shop G Posted December 12, 2006 Author Posted December 12, 2006 yes "usernamenone", that bit i posted IS in fact line 62 onwards, I suspect another contribution I've installed has altered things there, but as I've changed computers I'm unsure where/how to uninstall...
my scrap shop G Posted December 12, 2006 Author Posted December 12, 2006 so i've jiggered around with the other bit that was in there (I just deleted it actually) and so far the rest of the site works, the nice side effect is that now my home page image displays on subsequent category pages (but only when there are sub-categories [shrug, I'll take it!] not when there are just items in the parent category). but STILL that big gap is there!! any one else got any ideas how to fix it?
Recommended Posts
Archived
This topic is now archived and is closed to further replies.