Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 25
  1. #11
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Problem with sidebox image

    Those look like appropriate filepaths. Seeing your edits to the files would let us figure out what is wrong.

  2. #12
    Join Date
    Jan 2011
    Location
    Texas, USA
    Posts
    171
    Plugin Contributions
    0

    Default Re: Problem with sidebox image

    Thank you.
    These are the files.

    includes/languages/english/extra_definitions/barebones/ebook_sidebox_defines.php

    line 12 & 13

    define('BOX_HEADING_EBOOK_SIDEBOX', 'The Gardeners Guide');
    define('TEXT_EBOOK_SIDEBOX', 'Get your copy of The Gardeners Guide to Growing Hardy perennial Orchids.');

    ====================================================

    includes/modules/sideboxes/barebones/ebook_sidebox.php

    lines 13 - 20

    $show_ebook_sidebox = true;

    if ($show_ebook_sidebox == true) {
    require($template->get_template_dir('tpl_ebook_sidebox.php',DIR_WS_TEMPLATE, $current_page_base,'sidebox'). '/tpl_ebook_sidebox.php');
    $title = BOX_HEADING_EBOOK_SIDEBOX;
    $title_link = false;
    require($template->get_template_dir($column_box_default, DIR_WS_TEMPLATE, $current_page_base,'common') . '/' . $column_box_default);
    }

    ====================================================

    includes/templates/barebones/sideboxes/tpl_ebook_sidebox.php

    Lines 12 - 26

    $content = '';
    $content .= '<div id="' . str_replace('_', '-', $box_id . 'Content') . '" class="sideBoxContent">';

    // Replace the text and HTML tags between the apostophes on lines 19 and 20.
    // Use as many or as few lines using this model as you need for your custom content.
    // If you have a multilingual site define your text in the languages/YOUR_LANGUAGE/extra_definitions/blank_sidebox_defines.php and include it as shown in line 19.
    // If your site is monolingual, you can put the text right here as shown on line 20 (and nobody will know!)
    $content .= '<p>'TEXT_EBOOK_SIDEBOX'</p>';
    /* $content .= '<p>' <img width="175" height="211" title=" The Gardeners Guide " alt="the gardeners guide to growing hardy perennial orchids" src="/images/woc-book-cover.jpg"> '</p>'; */
    $content .= '<p>Get your copy of The Gardeners Guide to Growing Hardy Perennial Orchids </p>';

    $content .= '</div>';
    ?>

    /* <a target="_blank" href="../catalog/images/woc-book-cover.jpg"> */

    ======================================================

    I hope you will find the problem

    thank you
    Ivanna

  3. #13
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Problem with sidebox image

    $content .= '</div>';
    ?>

    /* <a target="_blank" href="../catalog/images/woc-book-cover.jpg"> */


    You are using PHP comment tags, but the PHP has ended here. You need to use HTML comment tags <!-- -->

  4. #14
    Join Date
    Jan 2011
    Location
    Texas, USA
    Posts
    171
    Plugin Contributions
    0

    Default Re: Problem with sidebox image

    I have removed all of these tags /* */ but still the problem persists. All data that comes before the sort number is ok but all other data is gone.

    $content .= '<p>'TEXT_EBOOK_SIDEBOX'</p>';
    $content .= '<p>' <img width="175" height="211" title=" The Gardeners Guide " alt="the gardeners guide to growing hardy perennial orchids" src="/images/woc-book-cover.jpg"> '</p>';
    $content .= '<p>Get your copy of The Gardeners Guide to Growing Hardy Perennial Orchids </p>';

    $content .= '</div>';
    ?>


    I only have four column boxes

    sideboxes/categories.php sort = 10
    sideboxes/barebones/ebook_sidebox.php sort = 14
    sideboxes/barebones/ebook_sidebox.php sort = 50
    sideboxes/more_information.php sort = 200

    When sideboxes/barebones/ebook_sidebox.php does not work, I try to use sideboxes/banner_box2.php (sort = 14) as another option and I can see it.

    What more information can I give you?

    thank you
    Ivanna

  5. #15
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Problem with sidebox image

    sideboxes/barebones/ebook_sidebox.php sort = 14
    sideboxes/barebones/ebook_sidebox.php sort = 50

    How do you have the same sidebox file listed twice? Something related to this is quite possibly the cause of your problem.

  6. #16
    Join Date
    Jan 2011
    Location
    Texas, USA
    Posts
    171
    Plugin Contributions
    0

    Default Re: Problem with sidebox image

    I am sorry, that is a typographic mistake. I have this:

    sideboxes/categories.php...............................ON LEFT 10 10 ON
    sideboxes/barebones/ebook_sidebox.php.....OFF LEFT 14 14 ON
    sideboxes/banner_box2.php........................ON LEFT 15 15 ON
    sideboxes/information.php..........................ON LEFT 50 40 ON
    sideboxes/more_information.php.................ON LEFT 200 200 ON

    Please notice that ebook_sidebox.php is off in this instant. When it is on, everything with bigger numbers is lost.

    My other option is to use banner_box2.php (which I can see). The reason I do not use this is because I am advised blank_sidebox is a better option. Also because I cannot find where to change the file to change path and attributes for the banner image.

    thank you for helping me
    Ivanna

  7. #17
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Problem with sidebox image

    PHP Code:
    $content .= '<p>'TEXT_EBOOK_SIDEBOX'</p>';
    /* $content .= '<p>' <img width="175" height="211" title=" The Gardeners Guide " alt="the gardeners guide to growing hardy perennial orchids" src="/images/woc-book-cover.jpg"> '</p>'; */ 
    The problem was very subtle, nothing more than dots . and quotes ' missing or extra.
    Both the short "constant" line and the commented-out long line are incorrect. It needs to be
    PHP Code:
    $content .= '<p>' TEXT_EBOOK_SIDEBOX '</p>';
    /* $content .= '<p> <img width="175" height="211" title=" The Gardeners Guide " alt="the gardeners guide to growing hardy perennial orchids" src="/images/woc-book-cover.jpg"> </p>'; */ 

  8. #18
    Join Date
    Jan 2011
    Location
    Texas, USA
    Posts
    171
    Plugin Contributions
    0

    Default Re: Problem with sidebox image

    Thank you g,

    Again, when I turn it on, everything disappears.

    I copied the code to lines 19 & 20.
    Line 19 was my fault. I removed the . because I think it is only text inside the <p> tags. I did not know it is code.
    On line 19 you write '<p>' but on line 20 you write '<p> is the second ' not necessary in this instant?
    On line 20, does it really matter at all because it is commented out?

    I think I must download blank_sidebox one last time and start it all again.

    I cannot think of anything else to do.

    thank you
    Ivanna

  9. #19
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Problem with sidebox image

    Line 20 does not matter as long as it is commented out, but this case has straight HTML output between the <p> tags. Line 19 has a PHP constant holding the HTML output value.

    The define file is not the problem, because everything in /extra_definitions/ is loaded no matter whether the sidebox is on or off. It might help to post your entire module and template files. Use [php] and [/php] tags around the files so the code is highlighted - that makes it easier to see some problems.

  10. #20
    Join Date
    Jan 2011
    Location
    Texas, USA
    Posts
    171
    Plugin Contributions
    0

    Default Re: Problem with sidebox image

    thank you again g,

    includes/templates/barebones/sideboxes/tpl_ebook_sidebox.php
    PHP Code:
    <?php
    /**
     * blank sidebox - allows a blank sidebox to be added to your site
     *
     * @package templateSystem
     * @copyright 2007 Kuroi Web Design
      * @copyright Portions Copyright 2003-2007 Zen Cart Development Team
     * @license [url]http://www.zen-cart.com/license/2_0.txt[/url] GNU Public License V2.0
     * @version $Id: blank_sidebox.php 2007-05-26 kuroi $
     */

      
    $content '';
      
    $content .= '<div id="' str_replace('_''-'$box_id 'Content') . '" class="sideBoxContent">';

      
    // Replace the text and HTML tags between the apostophes on lines 19 and 20.
      // Use as many or as few lines using this model as you need for your custom content.
      // If you have a multilingual site define your text in the languages/YOUR_LANGUAGE/extra_definitions/blank_sidebox_defines.php and include it as shown in line 19.
      // If your site is monolingual, you can put the text right here as shown on line 20 (and nobody will know!)
      
    $content .= '<p>' TEXT_EBOOK_SIDEBOX '</p>';
    /* $content .= '<p> <img width="175" height="211" title=" The Gardeners Guide " alt="the gardeners guide to growing hardy perennial orchids" src="/images/woc-book-cover.jpg"> </p>'; */
      
    $content .= '<p>Get your copy of The Gardeners Guide to Growing Hardy Perennial Orchids </p>';

      
    $content .= '</div>';
    ?>

    includes/languages/english/extra_definitions/barebones/ebook_sidebox_defines.php


    PHP Code:
    <?php
    /**
     * blank sidebox definitions - text for inclusion in a new blank sidebox
     *
     * @package templateSystem
     * @copyright 2007 Kuroi Web Design
      * @copyright Portions Copyright 2003-2007 Zen Cart Development Team
     * @license [url]http://www.zen-cart.com/license/2_0.txt[/url] GNU Public License V2.0
     * @version $Id: blank_sidebox.php 2007-05-26 kuroi $
     */

    define('BOX_HEADING_EBOOK_SIDEBOX''The Gardeners Guide');
    define('TEXT_EBOOK_SIDEBOX''Get your copy of The Gardeners Guide to Growing Hardy perennial Orchids.');

    ?>
    includes/modules/sideboxes/barebones/ebook_sidebox.php

    PHP Code:
    <?php
    /**
     * blank sidebox - allows a blank sidebox to be added to your site
     *
     * @package templateSystem
     * @copyright 2007 Kuroi Web Design
      * @copyright Portions Copyright 2003-2007 Zen Cart Development Team
     * @license [url]http://www.zen-cart.com/license/2_0.txt[/url] GNU Public License V2.0
     * @version $Id: blank_sidebox.php 2007-05-26 kuroi $
     */

      // test if box should display
      
    $show_ebook_sidebox true;

      if (
    $show_ebook_sidebox == true) {
          require(
    $template->get_template_dir('tpl_ebook_sidebox.php',DIR_WS_TEMPLATE$current_page_base,'sidebox'). '/tpl_ebook_sidebox.php');
          
    $title =  BOX_HEADING_EBOOK_SIDEBOX;
          
    $title_link false;
          require(
    $template->get_template_dir($column_box_defaultDIR_WS_TEMPLATE$current_page_base,'common') . '/' $column_box_default);
     }
    ?>

    thank you
    Ivanna

 

 
Page 2 of 3 FirstFirst 123 LastLast

Similar Threads

  1. Problem with Sidebox
    By Interdigital_Designs in forum General Questions
    Replies: 7
    Last Post: 23 Aug 2011, 04:27 PM
  2. Sidebox content image placement problem
    By BenLit2009 in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 28 Jul 2010, 06:31 AM
  3. Sidebox Table & Image Problem
    By anaesthesiac in forum Basic Configuration
    Replies: 30
    Last Post: 27 Nov 2009, 01:52 AM
  4. Problem with: Can I Use An Image For the Sidebox Header? Tutorial
    By mipavluk in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 12 Oct 2008, 09:59 PM
  5. Single Sidebox for External File image problem
    By aunrea in forum All Other Contributions/Addons
    Replies: 4
    Last Post: 5 Jul 2007, 09:32 PM

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