Jump to content
Sign in to follow this  
ikerstges

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

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

Share this post


Link to post
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.

Share this post


Link to post
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

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  

×