Hi There all, I have installed the module, and I am able to send a newletter and preview it in my admin. The emails arrive well.
However newsletter that are viewed online through "view_newsletter.php" show up empty and no information is showed, just the heading "View Newsletter".
It does provide the correct newsletter number.
It looks like the page is abruptly broken off because the other columns are not displayed either.
My gues is that it has something to do with the:echo $module->html_content(); but I am not sure.
---------
<?php
$Id$
osCommerce, Open Source E-Commerce Solutions
http://www.oscommerce.com
Copyright (c) 2010 osCommerce
Released under the GNU General Public License
require('includes/application_top.php');
require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_VIEWNEWS);
$breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_VIEWNEWS));
require(DIR_WS_INCLUDES . 'template_top.php');
require('includes/application_top.php');
?>
<h1><?php echo HEADING_TITLE; ?></h1>
<div class="contentContainer">
<div class="contentText">
<?
$nID = (isset($HTTP_GET_VARS['nID']) ? tep_db_prepare_input($HTTP_GET_VARS['nID']) : 0);
//newsletter products
$newsletter_query = tep_db_query("select title, content, module, template from " . TABLE_NEWSLETTERS . " where newsletters_id = '" . (int)$nID . "'");
if (tep_db_num_rows($newsletter_query) == 1) {
$newsletter = tep_db_fetch_array($newsletter_query);
$newsletter_products_query = tep_db_query("select products_id from " . TABLE_NEWSLETTERS_TO_PRODUCTS . " where newsletters_id = '" . (int)$nID . "'");
while ($newsletter_products = tep_db_fetch_array($newsletter_products_query)) {
$news_products[] = $newsletter_products['products_id'];
}
$newsletter['products'] = $news_products;
if ($newsletter['module'] == 'newsletter_products') {
include('catalog/admin/includes/modules/newsletters/newsletter_products.php');
include('catalog/admin/includes/languages/english/modules/newsletters/newsletter_products.php');
$module = new newsletter_products($newsletter['title'], $newsletter['content'], $newsletter['products'], $newsletter['template']);
}}*/
echo $module->html_content();
} else {
echo nl2br($newsletter['content']);
}
//end newsletter products
} else {
echo TEXT_NOT_FOUND;
}
echo "\n";
?>
</div>
<div class="buttonSet">
<span class="buttonAction"><?php echo tep_draw_button(IMAGE_BUTTON_CONTINUE, 'triangle-1-e', tep_href_link(FILENAME_DEFAULT)); ?></span>
</div>
</div>
<?php
require(DIR_WS_INCLUDES . 'template_bottom.php');
require(DIR_WS_INCLUDES . 'application_bottom.php');
?>