Zen Cart Logo
Forums / Addon Templates / Need to remove to remove the sidebox icons - TruBlu template

Need to remove to remove the sidebox icons - TruBlu template

Locked

Views: 1,448

Results 1 to 2 of 2
This thread is locked. New replies are disabled.
4 Jun 2009, 2:53 PM
#1
gaffettape avatar

gaffettape

Zen Follower

Join Date:
May 2009
Posts:
433
Plugin Contributions:
0

Need to remove to remove the sidebox icons - TruBlu template

Im having trouble with my template, Im trying to remove the sidebox icons on the template (trublu) and have found the relevant peice of code to remove from:
includes/templates/tvc/common/tpl_box_default_left.php
includes/templates/tvc/common/tpl_box_default_right.php
includes/templates/tvc/common/tpl_box_default_single.php

The bit to temove (accroding to the author qhome) is:

<img src="<?php echo $template->get_template_dir('/sidebox_icon_catalog.gif',DIR_WS_TEMPLATE, $current_page_base,'images'). '/sidebox_icon_catalog.gif'?>" alt="" />

From the following file (in this example its the left sidebox):

<?php // // +----------------------------------------------------------------------+ // |zen-cart Open Source E-commerce | // +----------------------------------------------------------------------+ // | Copyright (c) 2003 The zen-cart developers | // | | // | <http://www.zen-cart.com/index.php> | // | | // | Portions Copyright (c) 2003 osCommerce | // +----------------------------------------------------------------------+ // | This source file is subject to version 2.0 of the GPL license, | // | that is bundled with this package in the file LICENSE, and is | // | available through the world-wide-web at the following url: | // | <http://www.zen-cart.com/license/2_0.txt>. | // | If you did not receive a copy of the zen-cart license and are unable | // | to obtain it through the world-wide-web, please send a note to | // | [email protected] so we can mail you a copy immediately. | // +----------------------------------------------------------------------+ // $Id: tpl_box_default_left.php 2625 2005-12-20 02:13:19Z drbyte $ // // choose box images based on box position if ($title_link) { $title = '<a href="' . zen_href_link($title_link) . '">' . $title . BOX_HEADING_LINKS . '</a>'; } // ?> <!--// bof: <?php echo $box_id; ?> //--> <table width="<?php echo $column_width; ?>" border="0" cellspacing="0" cellpadding="0" class="leftbox" id="<?php echo str_replace('_', '-', $box_id) . '-table'; ?>"> <tr class="leftboxheading" id="<?php echo str_replace('_', '-', $box_id) . '-heading-tr'; ?>"> <!-- Sidebox Header --> <td colspan="1" width="20%" class="leftboxheading"><img src="<?php echo $template->get_template_dir('/sidebox_icon_catalog.gif',DIR_WS_TEMPLATE, $current_page_base,'images'). '/sidebox_icon_catalog.gif'?>" alt="" ></td><td colspan="3" width="80%" class="leftboxheading" id="<?php echo str_replace('_', '-', $box_id) . '-heading-td'; ?>"><?php echo $title; ?></td> </tr> <tr> <!-- Sidebox Contents --> <td colspan="4" class="leftboxcontent" id="<?php echo str_replace('_', '-', $box_id . '-content'); ?>"> <?php echo $content; ?> </td> </tr> <tr> <!-- Sidebox Footer --> <td colspan="4" height="5px" class="leftboxfooter" id="<?php echo str_replace('_', '-', $box_id) . '-footer'; ?>"> </td> </tr> </table> <!--// eof: <?php echo $box_id; ?> //-->

...so I removed this bit and yes the icon dissapears but the sidebox header image reduces in size aswell for some reason! and the title is centred within the header ( I have the sidebox width set to 170px at the moment, but this wouldnt affect it would it??)

I know this post should be in the trublu support thread but the last post in their was a question asked on the 1st August 2008 and it still hasnt been answered!!

I have also been trying to contact the template author (qhome) via PM for help for weeks now but still now answer??

Please also note that my website is not live yet as its on my computer at the moment, so I cant provide any links, sorry. But Ive have done my best to provide all the details I can.

Please can somone help me here!! :smile:

Thankyou

4 Jun 2009, 8:21 PM
#2
limelites avatar

limelites

Totally Zenned

Join Date:
Jan 2009
Posts:
2,085
Plugin Contributions:
0

Re: Need to remove to remove the sidebox icons - TruBlu template

Without editing ANY of the php... you could remove the images by replacing them on your server with 1px; x 1px; transparent .gif files. That's the simplest way to do it and at least the code will be intact in case you change your mind in the future to reintroduce header images.