I am doing the same thing recently. Not sure if you have resolved the issue already. Anyway, let's share my solution:
(I am moving the currencies sidebox from right column to center. So, I using this as the example)
Right column sideboxes are handled by the module column_right.php, which then called the currencies.php.
currencies.php makes use of 2 template files:
1) common/tpl_box_default_right.php - Format of each right column sidebox
2) sideboxes/tpl_currencies.php - Format of the currencies box content
To move the currencies sidebox to center, you can override the currencies.php MODULE to make use of your own template (the last few line of the file).
Remarks:
Some variables are used in the above 2 template files and was set in the above 2 modules:
a) $column_box_default in the file is the original box formatter, i.e. 'tpl_box_default_right.php'. You can ignore this if you have your own box design.
b) $column_width in the file is the box width, which equals to the right column width (BOX_WIDTH_RIGHT). Again, You can ignore this if you have your own box design.
c) $box_id = zen_get_box_id('currencies.php');. Suggest you to keep that for formality.
Then, in the page belongs to center column that you want to add your box, add the following lines:
$column_box_default = 'tpl_box_default_right.php';
$column_width = BOX_WIDTH_RIGHT;
$box_id = zen_get_box_id('currencies.php');
require(DIR_WS_MODULES . 'sideboxes/' . $template_dir . '/currencies.php');
Oliver


Reply With Quote
