Those look like appropriate filepaths. Seeing your edits to the files would let us figure out what is wrong.
Those look like appropriate filepaths. Seeing your edits to the files would let us figure out what is wrong.
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
$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 <!-- -->
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
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.
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
The problem was very subtle, nothing more than dots . and quotes ' missing or extra.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>'; */
Both the short "constant" line and the commented-out long line are incorrect. It needs to bePHP 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>'; */
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
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.
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
includes/modules/sideboxes/barebones/ebook_sidebox.phpPHP 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.');
?>
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_default, DIR_WS_TEMPLATE, $current_page_base,'common') . '/' . $column_box_default);
}
?>
thank you
Ivanna