Thank you.
Originally Posted by
gjh42
How did it "not work"? What was the actual result?
The box is blank, save the title, and other text that I have in the languages extra definitions file.
The page loads fine, no breaking.
I am sure you know it, but in case you need to search for it, blank sidebox has 3 files:
includes/modules/sideboxes/blank_sidebox.php
includes/templates/sideboxes/tpl_blank_sidebox.php
includes/languages/english/extra_definitions/blank_sidebox_defines.php
Here is the code for the includes/modules/sideboxes/blank_sidebox.php I am using:
NOTE - I have renamed, and moved the box out of the sideboxex columns, but tested it as a sidebox as well with same result.
PHP Code:
<?php
$show_evidenza_hp_sidebox = true;
if ($show_evidenza_hp_sidebox == true) {
require($template->get_template_dir('tpl_evidenza_hp_sidebox.php',DIR_WS_TEMPLATE, $current_page_base,'sideboxes'). '/tpl_evidenza_hp_sidebox.php');
$title = BOX_HEADING_EVIDENZA_HP_SIDEBOX;
$title_link = false;
require($template->get_template_dir('tpl_box_header.php',DIR_WS_TEMPLATE, $current_page_base,'common'). '/tpl_box_header.php');
}
$side_ezpage_id = 16;//replace 23 with whatever ez-page id you want to display
$sidebox_pageDetails = $db->Execute("select * from " . TABLE_EZPAGES . " where pages_id = " . (int)$side_ezpage_id );
$content .= $sidebox_pageDetails->fields['pages_html_text'];
?>
I did try adding the snippet on top of the original code as well, same blank output.
Bookmarks