Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

TinyMCE for newsletters, I got it working but still a problem.


ikerstges

Recommended Posts

Hi all,

 

I have installed TinyMCE (I use osCommerce 2.2 MS2) according the directions in addon: 'HTML MAILS by Jordi' (http://addons.oscommerce.com/info/5506). This works well and now I have:

tinymcenewsletterya1.png

 

There is a problem when I try to edit an existing newsletter.

 

When I click the 'edit'-button in the newsletter manager, TinyMCE opens with an empty page. The URL looks like: http//my.site.com/admin/newsletters.php?page=1&nID=3&action=new

 

Looking at admin\newsletters.php at codepart:

 

<?php
 if ($action == 'new') {
$form_action = 'insert';

$parameters = array('title' => '',
					'content' => '',
					'module' => '');

$nInfo = new objectInfo($parameters);

if (isset($HTTP_GET_VARS['nID'])) {
  [b]$form_action = 'update';[/b]

  $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 . "'");

 

I thought the parameter in the url should be: '&action=update', but when I enter URL: http//my.site.com/admin/newsletters.php?page=1&nID=3&action=update osCommerce responds with:

 

tinymcenewsletterupdateeq8.png

 

Unfortunately, my php-skills are poor and I cannot find if (or how) I should make a correct update-URL, so the existing newsletter gets opened in the TinyMCE editor.

 

Maybe somebody can help??

Edited by ikerstges
Link to comment
Share on other sites

Got it working now.. Don't know what fixed my setup, but after a couple of changes it was working well. I have now a step-by-step manual, so I will be able to implement this in my live webshop now.

 

 

LOL i installed that yesterday and had same problem, i had to replace a bit of code in newsletter.

i also modified a code from another contribution and got product description working.

 

so now i have email and newsletter HTML with TinyMCE and Product description TinyMCE and everything else normal text

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...