Quote Originally Posted by DamienDLSkinSolution View Post
Hey guys,

after countless hours reading posts after posts, i feel like i'm worthless and need help...

I am simply trying to get 2 editable sideboxes. As simple as it sounds, well, it isn't working too good for me.

Editable Sidebox Mod includes 4 files.
I duplicated and renamed all 4. To make it simple, i added a _2 at the end of them... so i got :
editable_sidebox_defines_2.php
define_editable_sidebox_content_2.php
editable_sidebox_2.php
tpl_editable_sidebox_2.php

In editable_sidebox_defines_2.php, it seems there are 3 things to change :
line 15 : define('BOX_HEADING_EDITABLE_SIDEBOX_2', '');
line 21 : define('DEFINE_EDITABLE_SIDEBOX_NAME_2', 'define_editable_sidebox_content_2');

In define_editable_sidebox_content_2.php, well, it's the content of that 2nd editable box, so it's easy enough.

In editable_sidebox_2.php, here is what i got (in blue, the changes made) :
$show_editable_sidebox_2 = true;

$define_sidebox = zen_get_file_directory(DIR_WS_LANGUAGES . $_SESSION['language'] . '/html_includes/custom/', DEFINE_EDITABLE_SIDEBOX_NAME_2, 'false');

if ($show_editable_sidebox_2 == true) {
require($template->get_template_dir('tpl_editable_sidebox_2.php',DIR_WS_TEMPLATE, $current_page_base,'sideboxes'). '/tpl_editable_sidebox_2.php');
$title = BOX_HEADING_EDITABLE_SIDEBOX_2;
$title_link = false;
require($template->get_template_dir($column_box_default, DIR_WS_TEMPLATE, $current_page_base,'common') . '/' . $column_box_default);
}

Should anything else be changed ?

In tpl_editable_sidebox_2.php, i don't see anything to change. Am i wrong ?

Please, i am begging you... HELP !!! this is driving me nut...

(oh, and for some reasons those modifications are "blocking" part of my zencart : the center column disappeared)

Thank you for your time

D
<?php
/**
* editable sidebox - allows a sidebox editable with the define pages editor to be added to your site
*
* @package templateSystem
* @copyright 2007 Kuroi Web Design
* @copyright Portions Copyright 2003-2007 Zen Cart Development Team
* @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
* @version $Id: blank_sidebox.php 2007-08-10 kuroi $
*/

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

// this is where the content that you have via the Admin is pulled in.
$content .= file_get_contents($define_sidebox);

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


It doesn't look like there is anything to change there. I also had a problem with it, but not with Blank Sideboxes. Maybe you should try that one.