Jump to content
Sign in to follow this  
spooks

FCK WYSIWYG HTML editor

Recommended Posts

The solution here has worked for others, its the saME SOLUTION AS in THE OTHERT FCK package here

 

I have not tried it myself, so until i need to I can't help further.


Sam

 

Remember, What you think I ment may not be what I thought I ment when I said it.

 

Contributions:

 

Auto Backup your Database, Easy way

 

Multi Images with Fancy Pop-ups, Easy way

 

Products in columns with multi buy etc etc

 

Disable any Category or Product, Easy way

 

Secure & Improve your account pages et al.

Share this post


Link to post
Share on other sites

Perhaps i need to give a little more detail. I have installed FCK and have installed the Admin HTML email contribution. This works perfectly. I do not know how I am supposed to use the same instructions to get my newsletter to work. I have FCK functioning but it does not send out the newsletter properly. They come out in code.

 

THC


Total Health Clinic

Restoring your Health-Naturally

Share this post


Link to post
Share on other sites
Perhaps i need to give a little more detail. I have installed FCK and have installed the Admin HTML email contribution. This works perfectly. I do not know how I am supposed to use the same instructions to get my newsletter to work. I have FCK functioning but it does not send out the newsletter properly. They come out in code.

 

THC

 

Check your site administration -> Configuration -> E-Mail options -> Use MIME HTML When Sending Emails

 

Stanislav

Share this post


Link to post
Share on other sites
Check your site administration -> Configuration -> E-Mail options -> Use MIME HTML When Sending Emails

 

Stanislav

 

Thanks Stainislav,

 

I have that set, as I can send Emails perfectly I just want to know how I change the newletter stuff to mimmic the email stuff. I dont have enough knowledge to be able to just say this bit goes with that etc. I am hoping that Spooks will do a little contribution maybe as I have seen this posted in here several times and all that is said is follow the email directions. When I go to do this I cant find alot of the lines refered to in the Admin HTML email contribute in the newsletter pages.


Total Health Clinic

Restoring your Health-Naturally

Share this post


Link to post
Share on other sites
Thanks Stainislav,

 

I have that set, as I can send Emails perfectly I just want to know how I change the newletter stuff to mimmic the email stuff. I dont have enough knowledge to be able to just say this bit goes with that etc. I am hoping that Spooks will do a little contribution maybe as I have seen this posted in here several times and all that is said is follow the email directions. When I go to do this I cant find alot of the lines refered to in the Admin HTML email contribute in the newsletter pages.

 

 

Stanislav

Edited by Pektsekye

Share this post


Link to post
Share on other sites

have you not tried the directions I gave before here http://addons.oscommerce.com/info/4429 !!!


Sam

 

Remember, What you think I ment may not be what I thought I ment when I said it.

 

Contributions:

 

Auto Backup your Database, Easy way

 

Multi Images with Fancy Pop-ups, Easy way

 

Products in columns with multi buy etc etc

 

Disable any Category or Product, Easy way

 

Secure & Improve your account pages et al.

Share this post


Link to post
Share on other sites
Have you tried this:

http://addons.oscommerce.com/info/4429

 

?

 

Stanislav

Yes I have looked at that but that requires me to install a heap of new stuff and i really dont want to rock the apple cart after getting everything else working. From what I have read I should be able to get my Newsletters working fine with what i have.

 

My admin/newsletter.php is:

 

<?php

/*

$Id: newsletters.php 1751 2007-12-21 05:26:09Z hpdl $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2007 osCommerce

 

Released under the GNU General Public License

*/

 

require('includes/application_top.php');

 

$action = (isset($HTTP_GET_VARS['action']) ? $HTTP_GET_VARS['action'] : '');

 

if (tep_not_null($action)) {

switch ($action) {

case 'lock':

case 'unlock':

$newsletter_id = tep_db_prepare_input($HTTP_GET_VARS['nID']);

$status = (($action == 'lock') ? '1' : '0');

 

tep_db_query("update " . TABLE_NEWSLETTERS . " set locked = '" . $status . "' where newsletters_id = '" . (int)$newsletter_id . "'");

 

tep_redirect(tep_href_link(FILENAME_NEWSLETTERS, 'page=' . $HTTP_GET_VARS['page'] . '&nID=' . $HTTP_GET_VARS['nID']));

break;

case 'insert':

case 'update':

if (isset($HTTP_POST_VARS['newsletter_id'])) $newsletter_id = tep_db_prepare_input($HTTP_POST_VARS['newsletter_id']);

$newsletter_module = tep_db_prepare_input($HTTP_POST_VARS['module']);

$title = tep_db_prepare_input($HTTP_POST_VARS['title']);

$content = tep_db_prepare_input($HTTP_POST_VARS['content']);

 

$newsletter_error = false;

if (empty($title)) {

$messageStack->add(ERROR_NEWSLETTER_TITLE, 'error');

$newsletter_error = true;

}

 

if (empty($newsletter_module)) {

$messageStack->add(ERROR_NEWSLETTER_MODULE, 'error');

$newsletter_error = true;

}

 

if ($newsletter_error == false) {

$sql_data_array = array('title' => $title,

'content' => $content,

'module' => $newsletter_module);

 

if ($action == 'insert') {

$sql_data_array['date_added'] = 'now()';

$sql_data_array['status'] = '0';

$sql_data_array['locked'] = '0';

 

tep_db_perform(TABLE_NEWSLETTERS, $sql_data_array);

$newsletter_id = tep_db_insert_id();

} elseif ($action == 'update') {

tep_db_perform(TABLE_NEWSLETTERS, $sql_data_array, 'update', "newsletters_id = '" . (int)$newsletter_id . "'");

}

 

tep_redirect(tep_href_link(FILENAME_NEWSLETTERS, (isset($HTTP_GET_VARS['page']) ? 'page=' . $HTTP_GET_VARS['page'] . '&' : '') . 'nID=' . $newsletter_id));

} else {

$action = 'new';

}

break;

case 'deleteconfirm':

$newsletter_id = tep_db_prepare_input($HTTP_GET_VARS['nID']);

 

tep_db_query("delete from " . TABLE_NEWSLETTERS . " where newsletters_id = '" . (int)$newsletter_id . "'");

 

tep_redirect(tep_href_link(FILENAME_NEWSLETTERS, 'page=' . $HTTP_GET_VARS['page']));

break;

case 'delete':

case 'new': if (!isset($HTTP_GET_VARS['nID'])) break;

case 'send':

case 'confirm_send':

$newsletter_id = tep_db_prepare_input($HTTP_GET_VARS['nID']);

 

$check_query = tep_db_query("select locked from " . TABLE_NEWSLETTERS . " where newsletters_id = '" . (int)$newsletter_id . "'");

$check = tep_db_fetch_array($check_query);

 

if ($check['locked'] < 1) {

switch ($action) {

case 'delete': $error = ERROR_REMOVE_UNLOCKED_NEWSLETTER; break;

case 'new': $error = ERROR_EDIT_UNLOCKED_NEWSLETTER; break;

case 'send': $error = ERROR_SEND_UNLOCKED_NEWSLETTER; break;

case 'confirm_send': $error = ERROR_SEND_UNLOCKED_NEWSLETTER; break;

}

 

$messageStack->add_session($error, 'error');

 

tep_redirect(tep_href_link(FILENAME_NEWSLETTERS, 'page=' . $HTTP_GET_VARS['page'] . '&nID=' . $HTTP_GET_VARS['nID']));

}

break;

}

}

?>

<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">

<html <?php echo HTML_PARAMS; ?>>

<head>

<meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>">

<title><?php echo TITLE; ?></title>

<link rel="stylesheet" type="text/css" href="includes/stylesheet.css">

<script language="javascript" src="includes/general.js"></script>

</head>

<body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0" bgcolor="#FFFFFF">

<div id="spiffycalendar" class="text"></div>

<!-- header //-->

<?php require(DIR_WS_INCLUDES . 'header.php'); ?>

<!-- header_eof //-->

 

<!-- body //-->

<table border="0" width="100%" cellspacing="2" cellpadding="2">

<tr>

<td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="1" cellpadding="1" class="columnLeft">

<!-- left_navigation //-->

<?php require(DIR_WS_INCLUDES . 'column_left.php'); ?>

<!-- left_navigation_eof //-->

</table></td>

<!-- body_text //-->

<td width="100%" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="2">

<tr>

<td><table border="0" width="100%" cellspacing="0" cellpadding="0">

<tr>

<td class="pageHeading"><?php echo HEADING_TITLE; ?></td>

<td class="pageHeading" align="right"><?php echo tep_draw_separator('pixel_trans.gif', HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td>

</tr>

</table></td>

</tr>

<?php

if ($action == 'new') {

$form_action = 'insert';

 

$parameters = array('title' => '',

'content' => '',

'module' => '');

 

$nInfo = new objectInfo($parameters);

 

if (isset($HTTP_GET_VARS['nID'])) {

$form_action = 'update';

 

$nID = tep_db_prepare_input($HTTP_GET_VARS['nID']);

 

$newsletter_query = tep_db_query("select title, content, module from " . TABLE_NEWSLETTERS . " where newsletters_id = '" . (int)$nID . "'");

$newsletter = tep_db_fetch_array($newsletter_query);

 

$nInfo->objectInfo($newsletter);

} elseif ($HTTP_POST_VARS) {

$nInfo->objectInfo($HTTP_POST_VARS);

}

 

$file_extension = substr($PHP_SELF, strrpos($PHP_SELF, '.'));

$directory_array = array();

if ($dir = dir(DIR_WS_MODULES . 'newsletters/')) {

while ($file = $dir->read()) {

if (!is_dir(DIR_WS_MODULES . 'newsletters/' . $file)) {

if (substr($file, strrpos($file, '.')) == $file_extension) {

$directory_array[] = $file;

}

}

}

sort($directory_array);

$dir->close();

}

 

for ($i=0, $n=sizeof($directory_array); $i<$n; $i++) {

$modules_array[] = array('id' => substr($directory_array[$i], 0, strrpos($directory_array[$i], '.')), 'text' => substr($directory_array[$i], 0, strrpos($directory_array[$i], '.')));

}

?>

<tr>

<td><?php echo tep_draw_separator('pixel_trans.gif', '1', '10'); ?></td>

</tr>

<tr><?php echo tep_draw_form('newsletter', FILENAME_NEWSLETTERS, (isset($HTTP_GET_VARS['page']) ? 'page=' . $HTTP_GET_VARS['page'] . '&' : '') . 'action=' . $form_action); if ($form_action == 'update') echo tep_draw_hidden_field('newsletter_id', $nID); ?>

<td><table border="0" cellspacing="0" cellpadding="2">

<tr>

<td class="main"><?php echo TEXT_NEWSLETTER_MODULE; ?></td>

<td class="main"><?php echo tep_draw_pull_down_menu('module', $modules_array, $nInfo->module); ?></td>

</tr>

<tr>

<td colspan="2"><?php echo tep_draw_separator('pixel_trans.gif', '1', '10'); ?></td>

</tr>

<tr>

<td class="main"><?php echo TEXT_NEWSLETTER_TITLE; ?></td>

<td class="main"><?php echo tep_draw_input_field('title', $nInfo->title, '', true); ?></td>

</tr>

<tr>

<td colspan="2"><?php echo tep_draw_separator('pixel_trans.gif', '1', '10'); ?></td>

</tr>

<tr>

<td class="main" valign="top"><?php echo TEXT_NEWSLETTER_CONTENT; ?></td>

<td class="main" colspan="2"><?php echo tep_draw_fckeditor('content', '700', '500', $nInfo->content); ?></td>

</tr>

</table></td>

</tr>

<tr>

<td><?php echo tep_draw_separator('pixel_trans.gif', '1', '10'); ?></td>

</tr>

<tr>

<td><table border="0" width="100%" cellspacing="0" cellpadding="2">

<tr>

<td class="main" align="right"><?php echo (($form_action == 'insert') ? tep_image_submit('button_save.gif', IMAGE_SAVE) : tep_image_submit('button_update.gif', IMAGE_UPDATE)). '  <a href="' . tep_href_link(FILENAME_NEWSLETTERS, (isset($HTTP_GET_VARS['page']) ? 'page=' . $HTTP_GET_VARS['page'] . '&' : '') . (isset($HTTP_GET_VARS['nID']) ? 'nID=' . $HTTP_GET_VARS['nID'] : '')) . '">' . tep_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>'; ?></td>

</tr>

</table></td>

</form></tr>

<?php

} elseif ($action == 'preview') {

$nID = tep_db_prepare_input($HTTP_GET_VARS['nID']);

 

$newsletter_query = tep_db_query("select title, content, module from " . TABLE_NEWSLETTERS . " where newsletters_id = '" . (int)$nID . "'");

$newsletter = tep_db_fetch_array($newsletter_query);

 

$nInfo = new objectInfo($newsletter);

?>

<tr>

<td align="right"><?php echo '<a href="' . tep_href_link(FILENAME_NEWSLETTERS, 'page=' . $HTTP_GET_VARS['page'] . '&nID=' . $HTTP_GET_VARS['nID']) . '">' . tep_image_button('button_back.gif', IMAGE_BACK) . '</a>'; ?></td>

</tr>

<tr>

<td><tt><?php echo nl2br($nInfo->content); ?></tt></td>

</tr>

<tr>

<td align="right"><?php echo '<a href="' . tep_href_link(FILENAME_NEWSLETTERS, 'page=' . $HTTP_GET_VARS['page'] . '&nID=' . $HTTP_GET_VARS['nID']) . '">' . tep_image_button('button_back.gif', IMAGE_BACK) . '</a>'; ?></td>

</tr>

<?php

} elseif ($action == 'send') {

$nID = tep_db_prepare_input($HTTP_GET_VARS['nID']);

 

$newsletter_query = tep_db_query("select title, content, module from " . TABLE_NEWSLETTERS . " where newsletters_id = '" . (int)$nID . "'");

$newsletter = tep_db_fetch_array($newsletter_query);

 

$nInfo = new objectInfo($newsletter);

 

include(DIR_WS_LANGUAGES . $language . '/modules/newsletters/' . $nInfo->module . substr($PHP_SELF, strrpos($PHP_SELF, '.')));

include(DIR_WS_MODULES . 'newsletters/' . $nInfo->module . substr($PHP_SELF, strrpos($PHP_SELF, '.')));

$module_name = $nInfo->module;

$module = new $module_name($nInfo->title, $nInfo->content);

?>

<tr>

<td><?php if ($module->show_choose_audience) { echo $module->choose_audience(); } else { echo $module->confirm(); } ?></td>

</tr>

<?php

} elseif ($action == 'confirm') {

$nID = tep_db_prepare_input($HTTP_GET_VARS['nID']);

 

$newsletter_query = tep_db_query("select title, content, module from " . TABLE_NEWSLETTERS . " where newsletters_id = '" . (int)$nID . "'");

$newsletter = tep_db_fetch_array($newsletter_query);

 

$nInfo = new objectInfo($newsletter);

 

include(DIR_WS_LANGUAGES . $language . '/modules/newsletters/' . $nInfo->module . substr($PHP_SELF, strrpos($PHP_SELF, '.')));

include(DIR_WS_MODULES . 'newsletters/' . $nInfo->module . substr($PHP_SELF, strrpos($PHP_SELF, '.')));

$module_name = $nInfo->module;

$module = new $module_name($nInfo->title, $nInfo->content);

?>

<tr>

<td><?php echo $module->confirm(); ?></td>

</tr>

<?php

} elseif ($action == 'confirm_send') {

$nID = tep_db_prepare_input($HTTP_GET_VARS['nID']);

 

$newsletter_query = tep_db_query("select newsletters_id, title, content, module from " . TABLE_NEWSLETTERS . " where newsletters_id = '" . (int)$nID . "'");

$newsletter = tep_db_fetch_array($newsletter_query);

 

$nInfo = new objectInfo($newsletter);

 

include(DIR_WS_LANGUAGES . $language . '/modules/newsletters/' . $nInfo->module . substr($PHP_SELF, strrpos($PHP_SELF, '.')));

include(DIR_WS_MODULES . 'newsletters/' . $nInfo->module . substr($PHP_SELF, strrpos($PHP_SELF, '.')));

$module_name = $nInfo->module;

$module = new $module_name($nInfo->title, $nInfo->content);

?>

<tr>

<td><table border="0" cellspacing="0" cellpadding="2">

<tr>

<td class="main" valign="middle"><?php echo tep_image(DIR_WS_IMAGES . 'ani_send_email.gif', IMAGE_ANI_SEND_EMAIL); ?></td>

<td class="main" valign="middle"><b><?php echo TEXT_PLEASE_WAIT; ?></b></td>

</tr>

</table></td>

</tr>

<?php

tep_set_time_limit(0);

flush();

$module->send($nInfo->newsletters_id);

?>

<tr>

<td><?php echo tep_draw_separator('pixel_trans.gif', '1', '10'); ?></td>

</tr>

<tr>

<td class="main"><font color="#ff0000"><b><?php echo TEXT_FINISHED_SENDING_EMAILS; ?></b></font></td>

</tr>

<tr>

<td><?php echo tep_draw_separator('pixel_trans.gif', '1', '10'); ?></td>

</tr>

<tr>

<td><?php echo '<a href="' . tep_href_link(FILENAME_NEWSLETTERS, 'page=' . $HTTP_GET_VARS['page'] . '&nID=' . $HTTP_GET_VARS['nID']) . '">' . tep_image_button('button_back.gif', IMAGE_BACK) . '</a>'; ?></td>

</tr>

<?php

} else {

?>

<tr>

<td><table border="0" width="100%" cellspacing="0" cellpadding="0">

<tr>

<td valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="2">

<tr class="dataTableHeadingRow">

<td class="dataTableHeadingContent"><?php echo TABLE_HEADING_NEWSLETTERS; ?></td>

<td class="dataTableHeadingContent" align="right"><?php echo TABLE_HEADING_SIZE; ?></td>

<td class="dataTableHeadingContent" align="right"><?php echo TABLE_HEADING_MODULE; ?></td>

<td class="dataTableHeadingContent" align="center"><?php echo TABLE_HEADING_SENT; ?></td>

<td class="dataTableHeadingContent" align="center"><?php echo TABLE_HEADING_STATUS; ?></td>

<td class="dataTableHeadingContent" align="right"><?php echo TABLE_HEADING_ACTION; ?> </td>

</tr>

<?php

$newsletters_query_raw = "select newsletters_id, title, length(content) as content_length, module, date_added, date_sent, status, locked from " . TABLE_NEWSLETTERS . " order by date_added desc";

$newsletters_split = new splitPageResults($HTTP_GET_VARS['page'], MAX_DISPLAY_SEARCH_RESULTS, $newsletters_query_raw, $newsletters_query_numrows);

$newsletters_query = tep_db_query($newsletters_query_raw);

while ($newsletters = tep_db_fetch_array($newsletters_query)) {

if ((!isset($HTTP_GET_VARS['nID']) || (isset($HTTP_GET_VARS['nID']) && ($HTTP_GET_VARS['nID'] == $newsletters['newsletters_id']))) && !isset($nInfo) && (substr($action, 0, 3) != 'new')) {

$nInfo = new objectInfo($newsletters);

}

 

if (isset($nInfo) && is_object($nInfo) && ($newsletters['newsletters_id'] == $nInfo->newsletters_id) ) {

echo ' <tr id="defaultSelected" class="dataTableRowSelected" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)" onclick="document.location.href=\'' . tep_href_link(FILENAME_NEWSLETTERS, 'page=' . $HTTP_GET_VARS['page'] . '&nID=' . $nInfo->newsletters_id . '&action=preview') . '\'">' . "\n";

} else {

echo ' <tr class="dataTableRow" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)" onclick="document.location.href=\'' . tep_href_link(FILENAME_NEWSLETTERS, 'page=' . $HTTP_GET_VARS['page'] . '&nID=' . $newsletters['newsletters_id']) . '\'">' . "\n";

}

?>

<td class="dataTableContent"><?php echo '<a href="' . tep_href_link(FILENAME_NEWSLETTERS, 'page=' . $HTTP_GET_VARS['page'] . '&nID=' . $newsletters['newsletters_id'] . '&action=preview') . '">' . tep_image(DIR_WS_ICONS . 'preview.gif', ICON_PREVIEW) . '</a> ' . $newsletters['title']; ?></td>

<td class="dataTableContent" align="right"><?php echo number_format($newsletters['content_length']) . ' bytes'; ?></td>

<td class="dataTableContent" align="right"><?php echo $newsletters['module']; ?></td>

<td class="dataTableContent" align="center"><?php if ($newsletters['status'] == '1') { echo tep_image(DIR_WS_ICONS . 'tick.gif', ICON_TICK); } else { echo tep_image(DIR_WS_ICONS . 'cross.gif', ICON_CROSS); } ?></td>

<td class="dataTableContent" align="center"><?php if ($newsletters['locked'] > 0) { echo tep_image(DIR_WS_ICONS . 'locked.gif', ICON_LOCKED); } else { echo tep_image(DIR_WS_ICONS . 'unlocked.gif', ICON_UNLOCKED); } ?></td>

<td class="dataTableContent" align="right"><?php if (isset($nInfo) && is_object($nInfo) && ($newsletters['newsletters_id'] == $nInfo->newsletters_id) ) { echo tep_image(DIR_WS_IMAGES . 'icon_arrow_right.gif', ''); } else { echo '<a href="' . tep_href_link(FILENAME_NEWSLETTERS, 'page=' . $HTTP_GET_VARS['page'] . '&nID=' . $newsletters['newsletters_id']) . '">' . tep_image(DIR_WS_IMAGES . 'icon_info.gif', IMAGE_ICON_INFO) . '</a>'; } ?> </td>

</tr>

<?php

}

?>

<tr>

<td colspan="6"><table border="0" width="100%" cellspacing="0" cellpadding="2">

<tr>

<td class="smallText" valign="top"><?php echo $newsletters_split->display_count($newsletters_query_numrows, MAX_DISPLAY_SEARCH_RESULTS, $HTTP_GET_VARS['page'], TEXT_DISPLAY_NUMBER_OF_NEWSLETTERS); ?></td>

<td class="smallText" align="right"><?php echo $newsletters_split->display_links($newsletters_query_numrows, MAX_DISPLAY_SEARCH_RESULTS, MAX_DISPLAY_PAGE_LINKS, $HTTP_GET_VARS['page']); ?></td>

</tr>

<tr>

<td align="right" colspan="2"><?php echo '<a href="' . tep_href_link(FILENAME_NEWSLETTERS, 'action=new') . '">' . tep_image_button('button_new_newsletter.gif', IMAGE_NEW_NEWSLETTER) . '</a>'; ?></td>

</tr>

</table></td>

</tr>

</table></td>

<?php

$heading = array();

$contents = array();

 

switch ($action) {

case 'delete':

$heading[] = array('text' => '<b>' . $nInfo->title . '</b>');

 

$contents = array('form' => tep_draw_form('newsletters', FILENAME_NEWSLETTERS, 'page=' . $HTTP_GET_VARS['page'] . '&nID=' . $nInfo->newsletters_id . '&action=deleteconfirm'));

$contents[] = array('text' => TEXT_INFO_DELETE_INTRO);

$contents[] = array('text' => '<br><b>' . $nInfo->title . '</b>');

$contents[] = array('align' => 'center', 'text' => '<br>' . tep_image_submit('button_delete.gif', IMAGE_DELETE) . ' <a href="' . tep_href_link(FILENAME_NEWSLETTERS, 'page=' . $HTTP_GET_VARS['page'] . '&nID=' . $HTTP_GET_VARS['nID']) . '">' . tep_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');

break;

default:

if (is_object($nInfo)) {

$heading[] = array('text' => '<b>' . $nInfo->title . '</b>');

 

if ($nInfo->locked > 0) {

$contents[] = array('align' => 'center', 'text' => '<a href="' . tep_href_link(FILENAME_NEWSLETTERS, 'page=' . $HTTP_GET_VARS['page'] . '&nID=' . $nInfo->newsletters_id . '&action=new') . '">' . tep_image_button('button_edit.gif', IMAGE_EDIT) . '</a> <a href="' . tep_href_link(FILENAME_NEWSLETTERS, 'page=' . $HTTP_GET_VARS['page'] . '&nID=' . $nInfo->newsletters_id . '&action=delete') . '">' . tep_image_button('button_delete.gif', IMAGE_DELETE) . '</a> <a href="' . tep_href_link(FILENAME_NEWSLETTERS, 'page=' . $HTTP_GET_VARS['page'] . '&nID=' . $nInfo->newsletters_id . '&action=preview') . '">' . tep_image_button('button_preview.gif', IMAGE_PREVIEW) . '</a> <a href="' . tep_href_link(FILENAME_NEWSLETTERS, 'page=' . $HTTP_GET_VARS['page'] . '&nID=' . $nInfo->newsletters_id . '&action=send') . '">' . tep_image_button('button_send.gif', IMAGE_SEND) . '</a> <a href="' . tep_href_link(FILENAME_NEWSLETTERS, 'page=' . $HTTP_GET_VARS['page'] . '&nID=' . $nInfo->newsletters_id . '&action=unlock') . '">' . tep_image_button('button_unlock.gif', IMAGE_UNLOCK) . '</a>');

} else {

$contents[] = array('align' => 'center', 'text' => '<a href="' . tep_href_link(FILENAME_NEWSLETTERS, 'page=' . $HTTP_GET_VARS['page'] . '&nID=' . $nInfo->newsletters_id . '&action=preview') . '">' . tep_image_button('button_preview.gif', IMAGE_PREVIEW) . '</a> <a href="' . tep_href_link(FILENAME_NEWSLETTERS, 'page=' . $HTTP_GET_VARS['page'] . '&nID=' . $nInfo->newsletters_id . '&action=lock') . '">' . tep_image_button('button_lock.gif', IMAGE_LOCK) . '</a>');

}

$contents[] = array('text' => '<br>' . TEXT_NEWSLETTER_DATE_ADDED . ' ' . tep_date_short($nInfo->date_added));

if ($nInfo->status == '1') $contents[] = array('text' => TEXT_NEWSLETTER_DATE_SENT . ' ' . tep_date_short($nInfo->date_sent));

}

break;

}

 

if ( (tep_not_null($heading)) && (tep_not_null($contents)) ) {

echo ' <td width="25%" valign="top">' . "\n";

 

$box = new box;

echo $box->infoBox($heading, $contents);

 

echo ' </td>' . "\n";

}

?>

</tr>

</table></td>

</tr>

<?php

}

?>

</table></td>

<!-- body_text_eof //-->

</tr>

</table>

<!-- body_eof //-->

 

<!-- footer //-->

<?php require(DIR_WS_INCLUDES . 'footer.php'); ?>

<!-- footer_eof //-->

<br>

</body>

</html>

<?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>


Total Health Clinic

Restoring your Health-Naturally

Share this post


Link to post
Share on other sites
Yes I have looked at that but that requires me to install a heap of new stuff and i really dont want to rock the apple cart after getting everything else working. From what I have read I should be able to get my Newsletters working fine with what i have.

 

spooks wrote:

Newsletter has other issues due to the way osC deals with the content.

 

So this is not a simple fix. You should do what he said to make it work.

 

Stanislav

Share this post


Link to post
Share on other sites
spooks wrote:

 

 

So this is not a simple fix. You should do what he said to make it work.

 

Stanislav

 

Ok ill give it a go.


Total Health Clinic

Restoring your Health-Naturally

Share this post


Link to post
Share on other sites
Ok ill give it a go.

 

Ok I have installed it. I was not to bad all in all. It has taken out all the code the only trouble i have now is that it sends a box with a red X in the corner instead of pics. Is there a chance one of you lovely people can point me in the right direction for this. I have looked for a forum for this topic but can not find one about it.

 

THC

Edited by thcadmin

Total Health Clinic

Restoring your Health-Naturally

Share this post


Link to post
Share on other sites

can you post the url it is giving for the pictures


Sam

 

Remember, What you think I ment may not be what I thought I ment when I said it.

 

Contributions:

 

Auto Backup your Database, Easy way

 

Multi Images with Fancy Pop-ups, Easy way

 

Products in columns with multi buy etc etc

 

Disable any Category or Product, Easy way

 

Secure & Improve your account pages et al.

Share this post


Link to post
Share on other sites
can you post the url it is giving for the pictures

 

I hate it when i sound stupid but How do I find that?


Total Health Clinic

Restoring your Health-Naturally

Share this post


Link to post
Share on other sites

right mouse over the pic with red x & select properties, it will say the address for the picture


Sam

 

Remember, What you think I ment may not be what I thought I ment when I said it.

 

Contributions:

 

Auto Backup your Database, Easy way

 

Multi Images with Fancy Pop-ups, Easy way

 

Products in columns with multi buy etc etc

 

Disable any Category or Product, Easy way

 

Secure & Improve your account pages et al.

Share this post


Link to post
Share on other sites
right mouse over the pic with red x & select properties, it will say the address for the picture

 

Ok Thanks. I tried that and all I can select is copy, none of the other options are available. So I went in and viewed the souce and I found src="/catalog/userfiles/../images/banners/thc%20animated%20logo.gif . Is that any help?

Edited by thcadmin

Total Health Clinic

Restoring your Health-Naturally

Share this post


Link to post
Share on other sites
Ok Thanks. I tried that and all I can select is copy, none of the other options are available. So I went in and viewed the souce and I found src="/catalog/userfiles/../images/banners/thc%20animated%20logo.gif . Is that any help?

 

I sent myself an email through the Email admin and I still can not right click on the image (the image does come through thow) When I view the source for this one the URL for the image is src="http://www.totalhc.com.au/catalog/userfiles/../images/banners/thc%20animated%20logo.gif"

 

This is differant to the newsletter image URL but they are the same image.

 

I hope this helps


Total Health Clinic

Restoring your Health-Naturally

Share this post


Link to post
Share on other sites

OK, the base url is missing, hence your issue, I'll take a peek at the code & get backwhen I've time.


Sam

 

Remember, What you think I ment may not be what I thought I ment when I said it.

 

Contributions:

 

Auto Backup your Database, Easy way

 

Multi Images with Fancy Pop-ups, Easy way

 

Products in columns with multi buy etc etc

 

Disable any Category or Product, Easy way

 

Secure & Improve your account pages et al.

Share this post


Link to post
Share on other sites
OK, the base url is missing, hence your issue, I'll take a peek at the code & get backwhen I've time.

 

That soulds great thankyou


Total Health Clinic

Restoring your Health-Naturally

Share this post


Link to post
Share on other sites

OK, this will only work if u have already installed Send Admin HTML e-mails http://addons.oscommerce.com/info/5806

 

and the newsletter mod http://addons.oscommerce.com/info/4429

 

in admin/includes/modules/newsletters/newsletters.php

 

find:

 

$mimemessage->add_html($this->content);

replace with:

 

$mimemessage->add_html(tep_add_base_ref($this->content));

 

find:

 

$mimemessage->send(stripslashes($mail['customers_firstname']) . ' ' . stripslashes($mail['customers_lastname']), $mail['customers_email_address'], '', EMAIL_FROM, $this->title);

 

replace with:

 

$mimemessage->send(stripslashes($mail['customers_firstname']) . ' ' . stripslashes($mail['customers_lastname']), $mail['customers_email_address'], STORE_NAME, EMAIL_FROM, $this->title);


Sam

 

Remember, What you think I ment may not be what I thought I ment when I said it.

 

Contributions:

 

Auto Backup your Database, Easy way

 

Multi Images with Fancy Pop-ups, Easy way

 

Products in columns with multi buy etc etc

 

Disable any Category or Product, Easy way

 

Secure & Improve your account pages et al.

Share this post


Link to post
Share on other sites
OK, this will only work if u have already installed Send Admin HTML e-mails http://addons.oscommerce.com/info/5806

 

and the newsletter mod http://addons.oscommerce.com/info/4429

 

in admin/includes/modules/newsletters/newsletters.php

 

That works beautifully Spooks. Thank you for your time and effort.


Total Health Clinic

Restoring your Health-Naturally

Share this post


Link to post
Share on other sites

Hello.

 

Is there any way to replace this

 

$Config['UserFilesAbsolutePath'] = '/home/mysite/public_html/catalog/userfiles/'

with the catalog path in includes/configure.php?

 

I'm asking because the way it is now we need to configure the path individually for every store installed. It would make like much easier if it could pull that information directly from configure.php ;)

 

TIA


Patty

Share this post


Link to post
Share on other sites

And yet another question: is it possible to use an image manager for products? I mean, HTML area editor had a nice image manager for the products image (but only worked with IE) and TinyMCE has iBrowser. What about FCKEditor?

 

I think it's important that the admin can create new directories where to upload images than to have no choice and have to upload them all to the images root directory. Imagine a store with 20,000 products with 20,000 images all in one folder??? :blink:


Patty

Share this post


Link to post
Share on other sites

as long as calls to fck occur after calls to application_top u can use the defines.


Sam

 

Remember, What you think I ment may not be what I thought I ment when I said it.

 

Contributions:

 

Auto Backup your Database, Easy way

 

Multi Images with Fancy Pop-ups, Easy way

 

Products in columns with multi buy etc etc

 

Disable any Category or Product, Easy way

 

Secure & Improve your account pages et al.

Share this post


Link to post
Share on other sites

select browse server to view image directory

 

u can change dir & create new

 

read the fck docs & see fck support forum


Sam

 

Remember, What you think I ment may not be what I thought I ment when I said it.

 

Contributions:

 

Auto Backup your Database, Easy way

 

Multi Images with Fancy Pop-ups, Easy way

 

Products in columns with multi buy etc etc

 

Disable any Category or Product, Easy way

 

Secure & Improve your account pages et al.

Share this post


Link to post
Share on other sites

Hello

 

Sorry to bother - My problem? ... I uploaded and installed extra pages (... it was mentioned that EP would only work if FCK Editor was already installed and since I can use FCK Editor for editing the product pages - [there are several contributions on my original OSC which were installed by someone else] I simply assumed I have FCK editor installed already) ... DOU - my own installed "EP" works all OK but - try create a form with it and it won't get sent!

 

Then I became suspicious about the FCK-editor and after reading through your topic (thanks to George who pointed me to you) I looked into my html_output.php and there is not anything like a "tep_draw_fckeditor" that would suggest the presence of the FCK editor. Neither is there anything in my admin panel about FCK editor.

 

PLEASE NOTE - FCK EDITOR WAS NOT INSTALLED BY ME !!! So please don't get off on me ;-)

 

However, there are TWO places I can use FCK-editor

  1. edit products
  2. add extra pages (contribution installed by myself, but forms can't be sent)

I can't use FCK editor for sending email (html) or anything else.

Any suggestions - really appreciate it.

 

Norbert

 

 

I don`t know where that error crept in, to correct in /admin/includes/functions/html_output.php

 

Find:

 

function tep_draw_fckeditor($name, $width, $height, $text) {

 

replace with

 

function tep_draw_fckeditor($name, $width, $height, $text='') {

 

 

***

 

There are problems with the admin email when sending html, these are fixed by:

 

Send Admin HTML e-mails http://addons.oscommerce.com/info/5806

 

Don`t use file manager remove it from your tools section, its a security risk, use the cpanel file manager instead.

 

Much of the text on the site defined in the languages section are plain text, or have minimal html elements, you could use TextMaster http://addons.oscommerce.com/info/5927 to edit your text easier, I would use it in plain text mode & not bother with the TinyMCE, its somewhat more complex than FCK & personally I think FCK is the better editor.

 

TextMaster does have some bugs so take care, some language files could be damaged by it, so keep backups.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×