Hello,
I'm using STS 4.2 and I find myself a bit lost on three occasions when I follow the installation procedure. Any help would really be appreciated : )
Step 13 - The instructions say:
Does this mean that I have to replace:
<tr>
<td><?php include(DIR_WS_MODULES . FILENAME_NEW_PRODUCTS); ?></td>
</tr>
by
<tr>
<td><?php include(DIR_WS_MODULES . FILENAME_FEATURED); ?></td>
</tr>
<tr>
<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
</tr>
or that I should add the FILENAME_FEATURED lines before the two FILENAME_NEW_PRODUCTS occurrences?
Step 15.2 - Should I add the following code anywhere in /catalog/includes/column_right.php or column_left.php.
require(DIR_WS_BOXES . 'featured.php');
// STS: ADD
$sts_block_name = 'featuredbox';
require(STS_RESTART_CAPTURE);
// STS: EOADD
Step 15.3 - The text says:
I don't have this file at this location: should I add the lines into \catalog\includes\modules\sts_inc\sts_display_output.php?
Step 15.3 - I'm lost again. The instructions are to add these lines in sts_display_output.php:
$template['featuredbox'] = strip_unwanted_tags($sts_block['featuredbox'], 'featuredbox');
and further down
echo $sts_block['featured'];
The "and further down" part puzzles me - I don't speak Php and I just don't understand what I should put where.
My sts_display_output.php file contains the following:
<?php
/*
$Id: sts_display_output.php,v 4.1 2006/01/25 05:57:12 rigadin Exp $
osCommerce, Open Source E-Commerce Solutions
http://www.oscommerce.com
Copyright (c) 2005 osCommerce
Released under the GNU General Public License
Based on: Simple Template System (STS) - Copyright (c) 2004 Brian Gallagher - brian@diamondsea.com
STS v4.1 by Rigadin (rigadin@osc-help.net)
*/
// Get list of modules to include
$sts_modules_inc = $sts->capture_fields(); // Returns an array of files to include
$sts_modules_str = ''; // Added in v4.0.7 for debug
if (!empty($sts_modules_inc)) {
foreach ($sts_modules_inc as $sts_mod){
include(DIR_WS_MODULES.'sts_inc/'.$sts_mod);
$sts_modules_str.= $sts_mod .' - '; // Added in v4.0.7 for debug
}
}
// If we use a template, replace placeholders and display the page
if ($sts->display_template_output == 1) {
$sts->replace(); // Read file and replace placeholders with variables content
echo $sts->template['template_html']; // Display the page
}
// Display debug information if we are in template debug mode
if ($sts->display_debug_output) {
// Print Debugging Info
print "\n<pre><hr>\n";
print "STS_VERSION=[" . $sts->version . "]<br>\n";
print "OSC_VERSION=[".PROJECT_VERSION."]\n";
print "STS_TEMPLATE=[" . $sts->template_file . "]\n";
print "STS_MODULE=[" . $sts->script->code . "]\n";
print "STS_INC_MODULES=[". $sts_modules_str . "]<hr>\n"; // Added in v4.0.7 to know what modules are included
$sts->template['template_html'] = 'This variable is the source code of this page, without debug informations. As it is quite long, we dont show it here.';
foreach ($sts->template as $key=>$value) {
print "<b>\$sts->template['$key']</b><hr>" . htmlspecialchars($value) . "<hr>\n";
}
}
?>
Could someone please assist me?
Thanks : )