ikerstges Posted January 18, 2008 Share Posted January 18, 2008 (edited) 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: 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: 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 January 18, 2008 by ikerstges Quote Link to comment Share on other sites More sharing options...
ikerstges Posted January 21, 2008 Author Share Posted January 21, 2008 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. Quote Link to comment Share on other sites More sharing options...
none_uk Posted January 22, 2008 Share Posted January 22, 2008 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.