Results 1 to 2 of 2
  1. #1
    Join Date
    May 2009
    Posts
    413
    Plugin Contributions
    0

    Default 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!!

    Thankyou

  2. #2
    Join Date
    Jan 2009
    Posts
    2,123
    Plugin Contributions
    0

    Default Re: What part di I need to remove to remove the sidebox icons?

    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.

 

 

Similar Threads

  1. v151 Need to remove certain category for sidebox
    By GodfatherAntiques in forum Templates, Stylesheets, Page Layout
    Replies: 13
    Last Post: 18 Mar 2013, 01:36 AM
  2. Help, need to remove 3 words from the template
    By monkeysu in forum Setting Up Categories, Products, Attributes
    Replies: 2
    Last Post: 26 Apr 2011, 07:43 AM
  3. TruBlu - Blue Template w/ Sidebox Header Images
    By qhome in forum Addon Templates
    Replies: 112
    Last Post: 1 Aug 2008, 12:53 AM
  4. how do i remove the cc icons on step 2 of 3
    By pwoens in forum Upgrading from 1.3.x to 1.3.9
    Replies: 2
    Last Post: 16 Feb 2008, 08:01 PM
  5. Remove MessageStack Icons...
    By Alex Clarke in forum General Questions
    Replies: 2
    Last Post: 15 Jun 2007, 10:35 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg