jaimeweb Posted October 16, 2008 Posted October 16, 2008 Hi everyone another little prob. I just installed the html_wysiwygEditor_v1.6.6. When i click to edit a product and then click preview i get this error message: Fatal error: Call to undefined function tep_get_uploaded_file() in /#####/#######/public_html/onlineshop/admin/categories.php on line 532 Now if i go in to that file line 532 is this: // copy image only if modified $products_image = tep_get_uploaded_file('products_image'); $image_directory = tep_get_local_path(DIR_FS_CATALOG_IMAGES); any ideas?
spooks Posted October 16, 2008 Posted October 16, 2008 PATIANCE if you annoy you'll get nothing. check install. 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.
jaimeweb Posted October 16, 2008 Author Posted October 16, 2008 Sorry :( lol. I have checked it...it came up with some errors before that one came up but i fixxed them after searchin online sumthing like array_merge_??? to array_merge and it corrected it. Now im stuck on this error.... All in the same file. admin/categories.php
arietis Posted October 16, 2008 Posted October 16, 2008 as part of your install, the instructions probably asked you to modify your /catalog/admin/includes/functions/general.php and add the function tep_get_uploaded_file(). did you do that step? or did you edit the /cataglog/includes/function/general.php file by accident? the error is saying that the function isn't defined. so either you didn't add it in, or it's in the wrong place and it isn't being found when categories.php is looking for it.
jaimeweb Posted October 16, 2008 Author Posted October 16, 2008 hi. i am going through the long installation codes again...in the install notes it says (below). Just woundering wheneverit says Define main page....what does it mean? do i have to change this? LETS BEGIN: STEP 0.0 --> IMPORT SQL DATABASE FILE =========================================================================== ========= Firstly, Open /PHPMyAdmin --> (your_osCommerce_database) --> SQL --> Browse file --> HTML_WYSIWYG_SQL.sql --> [OK] STEP 1.0 --> COPY: folder "htmlarea" =========================================================================== ========= Copy the folder "htmlarea" and its entire contents into Admin Directory: =========================================================================== ========= IE: /admin/ or where-ever your Admin directory is. STEP 1.1 --> OPEN: /admin/categories.php =========================================================================== ========= Look for this around line 350: =========================================================================== ========= <title><?php echo TITLE; ?></title> <link rel="stylesheet" type="text/css" href="includes/stylesheet.css"> <script language="javascript" src="includes/general.js"></script> =========================================================================== ========= And directly underneath it add this: =========================================================================== ========= <script language="Javascript1.2"><!-- // load htmlarea //MaxiDVD Added WYSIWYG HTML Area Box + Admin Function v1.6.6 Products Description HTML - Head _editor_url = "<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_ADMIN; ?>htmlarea/"; // URL to htmlarea files var win_ie_ver = parseFloat(navigator.appVersion.split("MSIE")[1]); if (navigator.userAgent.indexOf('Mac') >= 0) { win_ie_ver = 0; } if (navigator.userAgent.indexOf('Windows CE') >= 0) { win_ie_ver = 0; } if (navigator.userAgent.indexOf('Opera') >= 0) { win_ie_ver = 0; } <?php if (HTML_AREA_WYSIWYG_BASIC_PD == 'Basic'){ ?> if (win_ie_ver >= 5.5) { document.write('<scr' + 'ipt src="' +_editor_url+ 'editor_basic.js"'); document.write(' language="Javascript1.2"></scr' + 'ipt>'); } else { document.write('<scr'+'ipt>function editor_generate() { return false; }</scr'+'ipt>'); } <?php } else{ ?> if (win_ie_ver >= 5.5) { document.write('<scr' + 'ipt src="' +_editor_url+ 'editor_advanced.js"'); document.write(' language="Javascript1.2"></scr' + 'ipt>'); } else { document.write('<scr'+'ipt>function editor_generate() { return false; }</scr'+'ipt>'); } <?php }?> // --></script> STEP 1.2 --> FIND: /admin/categories.php =========================================================================== ========= Look for this around line 504: =========================================================================== ========= <td class="main" align="right"><?php echo tep_draw_hidden_field('products_date_added', (($pInfo->products_date_added) ? $pInfo->products_date_added : date('Y-m-d'))) . tep_image_submit('button_preview.gif', IMAGE_PREVIEW) . ' <a href="' . tep_href_link(FILENAME_CATEGORIES, 'cPath=' . $cPath . '&pID=' . $HTTP_GET_VARS['pID']) . '">' . tep_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>'; ?></td> </form></tr> =========================================================================== ========= And directly underneath it add this: =========================================================================== ========= <?php if (HTML_AREA_WYSIWYG_DISABLE == 'Disable') {} else { ?> <script language="JavaScript1.2" defer> // MaxiDVD Added WYSIWYG HTML Area Box + Admin Function v1.6.6 Products Description HTML - Body var config = new Object(); // create new config object config.width = "<?php echo HTML_AREA_WYSIWYG_WIDTH; ?>px"; config.height = "<?php echo HTML_AREA_WYSIWYG_HEIGHT; ?>px"; config.bodyStyle = 'background-color: <?php echo HTML_AREA_WYSIWYG_BG_COLOUR; ?>; font-family: "<?php echo HTML_AREA_WYSIWYG_FONT_TYPE; ?>"; color: <?php echo HTML_AREA_WYSIWYG_FONT_COLOUR; ?>; font-size: <?php echo HTML_AREA_WYSIWYG_FONT_SIZE; ?>pt;'; config.debug = <?php echo HTML_AREA_WYSIWYG_DEBUG; ?>; // More Configs can added here: // Dreamscape added Dynamic Language Function <?php for ($i = 0, $n = sizeof($languages); $i < $n; $i++) { ?> editor_generate('products_description[<?php echo $languages[$i]['id']; ?>]',config); <?php } } ?> </script> @@@@@@@@@@@@ END /ADMIN/CATEGORIES.PHP - SAVE AND CLOSE FILE @@@@@@@@@@@@@@@@@@@@@@ STEP 1.3 --> OPEN: /admin/includes/boxes/catalog.php =========================================================================== ========== Look for this around line 32: =========================================================================== ========== '<a href="' . tep_href_link(FILENAME_PRODUCTS_EXPECTED, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_CATALOG_PRODUCTS_EXPECTED . '</a>'); =========================================================================== ========= And replace that line with this: =========================================================================== ========= '<a href="' . tep_href_link(FILENAME_PRODUCTS_EXPECTED, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_CATALOG_PRODUCTS_EXPECTED . '</a><br>' . '<a href="' . tep_href_link(FILENAME_DEFINE_MAINPAGE, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_CATALOG_DEFINE_MAINPAGE . '</a>'); @@@@@@@@@@@ END /ADMIN/INCLUDES/BOXES/CATALOG.PHP - SAVE AND CLOSE FILE @@@@@@@@@@ STEP 1.3 --> OPEN: /admin/includes/application_top.php =========================================================================== ========== Add this line around line 55: =========================================================================== ========== define('FILENAME_DEFINE_MAINPAGE', 'define_mainpage.php'); =========================================================================== ========== @@@@@@@@@@@ END /ADMIN/INCLUDES/APPLICATION_TOP.PHP - SAVE AND CLOSE FILE @@@@@@@@@ STEP 1.4 --> OPEN: /admin/includes/languages/(yourlanguage).php =========================================================================== ========== Add this line around line 55: =========================================================================== ========== define('BOX_CATALOG_DEFINE_MAINPAGE', 'Define Main page'); =========================================================================== ========== @@@@@@@@@@@ END /ADMIN/INCLUDES/APPLICATION_TOP.PHP - SAVE AND CLOSE FILE @@@@@@@@@ STEP 1.5 --> OPEN: catalog/default.php (or index.php) =========================================================================== ========== Look for this around line 32: =========================================================================== ========== <tr> <td class="main"><br><?php echo TEXT_MAIN; ?></td> </tr> =========================================================================== ========= And replace that line with this: =========================================================================== ========= <tr> <td class="main"><?php include(DIR_WS_LANGUAGES . $language . '/' . FILENAME_DEFINE_MAINPAGE); ?></td> </tr> =========================================================================== ========= @@@@@@@@@@@@@@@@@ END /CATALOG/DEFAULT.PHP - SAVE AND CLOSE FILE @@@@@@@@@@@@@@@@@ STEP 1.6 --> OPEN: catalog/includes/application_top.php =========================================================================== ========== Add this line around line 55: =========================================================================== ========== define('FILENAME_DEFINE_MAINPAGE', 'mainpage.php'); =========================================================================== ========== @@@@@@@@@@@ END /ADMIN/INCLUDES/APPLICATION_TOP.PHP - SAVE AND CLOSE FILE @@@@@@@@@ STEP 2.0 --> Replace or Modify these Folders and Files =========================================================================== ========== Copy these files (Or alter your files own with detailed instructions below): =========================================================================== ========== admin/mail.php * admin/newsletters.php * * admin/includes/ <-- The folder --> and its contents as below: * - includes/languages/english/mail.php * - includes/languages/espanol/mail.php * - includes/languages/dutch/mail.php * - includes/languages/german/mail.php * - includes/modules/newsletters/newsletter.php * - includes/modules/newsletters/product_notifications.php * * =========================================================================== ========== @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@ @@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@ IF YOU COPIED AND PASTED ALL THE FILES & FOLDERS @@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@ THE FOLLOWING STEPS DO NOT NEED TO BE DONE. @@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@ YOUR FINISHED! @@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@ =========================================================================== ========= @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@ STEP 2.1 --> OPEN: /admin/mail.php =========================================================================== ========= Look for this around line 43: (IF YOU COPIED AND PASTED ALL THE FILES & FOLDERS DONT DO THIS STEP!) =========================================================================== ========= $mimemessage->add_text($message); =========================================================================== ========= And replace that line with this code: =========================================================================== ========= // MaxiDVD Added WYSIWYG HTML Area Box + Admin Function v1.6.6 Email HTML - Pre if (HTML_AREA_WYSIWYG_DISABLE_EMAIL == 'Disable') { $mimemessage->add_text($message); } else { $mimemessage->add_html($message); // MaxiDVD Added HTML is ON when WYSIWYG BOX Enabled, HTML is OFF when WYSIWYG Disabled } STEP 2.2 --> FIND: /admin/mail.php (If you replaced files with the included one Dont do this step) =========================================================================== ========= Look for this around line 68: (IF YOU COPIED AND PASTED ALL THE FILES & FOLDERS DONT DO THIS STEP!) =========================================================================== ========= <title><?php echo TITLE; ?></title> <link rel="stylesheet" type="text/css" href="includes/stylesheet.css"> =========================================================================== ========= And directly underneath it add this: =========================================================================== ========= <script language="Javascript1.2"><!-- // load htmlarea //MaxiDVD Added WYSIWYG HTML Area Box + Admin Function v1.6.6 Email HTML - Head _editor_url = "<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_ADMIN; ?>htmlarea/"; // URL to htmlarea files var win_ie_ver = parseFloat(navigator.appVersion.split("MSIE")[1]); if (navigator.userAgent.indexOf('Mac') >= 0) { win_ie_ver = 0; } if (navigator.userAgent.indexOf('Windows CE') >= 0) { win_ie_ver = 0; } if (navigator.userAgent.indexOf('Opera') >= 0) { win_ie_ver = 0; } <?php if (HTML_AREA_WYSIWYG_BASIC_EMAIL == 'Basic'){ ?> if (win_ie_ver >= 5.5) { document.write('<scr' + 'ipt src="' +_editor_url+ 'editor_basic.js"'); document.write(' language="Javascript1.2"></scr' + 'ipt>'); } else { document.write('<scr'+'ipt>function editor_generate() { return false; }</scr'+'ipt>'); } <?php } else{ ?> if (win_ie_ver >= 5.5) { document.write('<scr' + 'ipt src="' +_editor_url+ 'editor_advanced.js"'); document.write(' language="Javascript1.2"></scr' + 'ipt>'); } else { document.write('<scr'+'ipt>function editor_generate() { return false; }</scr'+'ipt>'); } <?php }?> // --></script> <script LANGUAGE="JavaScript" src="htmlarea/validation.js"></script> <script LANGUAGE="JavaScript"> <!-- Begin function init() { define('customers_email_address', 'string', 'Customer or Newsletter Group'); } // End --> </script> STEP 2.3 --> /admin/mail.php =========================================================================== ========= Look for this around line 96: (IF YOU COPIED AND PASTED ALL THE FILES & FOLDERS DONT DO THIS STEP!) =========================================================================== ========= <body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0" bgcolor="#FFFFFF"> =========================================================================== ========= And replace that line with this: =========================================================================== ========= <body OnLoad="init()" marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0" bgcolor="#FFFFFF"> STEP 2.4 --> /admin/mail.php =========================================================================== ========= Look for this around line 148: (IF YOU COPIED AND PASTED ALL THE FILES & FOLDERS DONT DO THIS STEP!) =========================================================================== ========= <?php echo htmlspecialchars(stripslashes($HTTP_POST_VARS['message'])); ?> =========================================================================== ========= And replace that line with this: =========================================================================== ========= <?php if (HTML_AREA_WYSIWYG_DISABLE_EMAIL == 'Enable') { echo (stripslashes($HTTP_POST_VARS['message'])); } else { echo htmlspecialchars(stripslashes($HTTP_POST_VARS['message'])); } ?> STEP 2.5 --> /admin/mail.php =========================================================================== ========= Look for this around line 148: (IF YOU COPIED AND PASTED ALL THE FILES & FOLDERS DONT DO THIS STEP!) =========================================================================== ========= <td><?php echo tep_image_submit('button_back.gif', IMAGE_BACK, 'name="back"'); ?></td> <td align="right"><?php echo '<a href="' . tep_href_link(FILENAME_MAIL) . '">' . tep_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a> ' . tep_image_submit('button_send_mail.gif', IMAGE_SEND_EMAIL); ?></td> </tr> </table></td> </tr> </table></td> </form></tr> =========================================================================== ========= And replace that line with this: =========================================================================== ========= <td class="smallText"> <?php if (HTML_AREA_WYSIWYG_DISABLE_EMAIL == 'Disable'){echo tep_image_submit('button_back.gif', IMAGE_BACK, 'name="back"'); } ?> </td> <td align="right"><?php echo '<a href="' . tep_href_link(FILENAME_MAIL) . '">' . tep_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a> ' . tep_image_submit('button_send_mail.gif', IMAGE_SEND_EMAIL); ?></td> </tr> </table><?php if (HTML_AREA_WYSIWYG_DISABLE_EMAIL == 'Disable') {echo(TEXT_EMAIL_BUTTON_HTML); } else { echo(TEXT_EMAIL_BUTTON_TEXT); } ?></td> </tr> </table></td> </form></tr> STEP 2.6 --> /admin/mail.php =========================================================================== ========= Look for this around line 200: (IF YOU COPIED AND PASTED ALL THE FILES & FOLDERS DONT DO THIS STEP!) =========================================================================== ========= <td colspan="2" align="right"><?php echo tep_image_submit('button_send_mail.gif', IMAGE_SEND_EMAIL); ?></td> =========================================================================== ========= And replace that line with this: =========================================================================== ========= <td colspan="2" align="right"> <?php if (HTML_AREA_WYSIWYG_DISABLE_EMAIL == 'Enable'){ echo tep_image_submit('button_send_mail.gif', IMAGE_SEND_EMAIL, 'onClick="validate();return returnVal;"'); } else { echo tep_image_submit('button_send_mail.gif', IMAGE_SEND_EMAIL); }?> </td> STEP 2.7 --> /admin/mail.php =========================================================================== ========= Look for this around line 233: (IF YOU COPIED AND PASTED ALL THE FILES & FOLDERS DONT DO THIS STEP!) =========================================================================== ========= <td valign="top" class="main"><?php echo TEXT_MESSAGE; ?></td> <td><?php echo tep_draw_textarea_field('message', 'soft', '60', '15'); ?> =========================================================================== ========= And directly underneath it add this: =========================================================================== ========= <?php if (HTML_AREA_WYSIWYG_DISABLE_EMAIL == 'Disable') {include ("comment_email_bar.php");} else { ?> <script language="JavaScript1.2" defer> // MaxiDVD Added WYSIWYG HTML Area Box + Admin Function v1.6.6 Email HTML - Body var config = new Object(); // create new config object config.width = "<?php echo EMAIL_AREA_WYSIWYG_WIDTH; ?>px"; config.height = "<?php echo EMAIL_AREA_WYSIWYG_HEIGHT; ?>px"; config.bodyStyle = 'background-color: <?php echo HTML_AREA_WYSIWYG_BG_COLOUR; ?>; font-family: "<?php echo HTML_AREA_WYSIWYG_FONT_TYPE; ?>"; color: <?php echo HTML_AREA_WYSIWYG_FONT_COLOUR; ?>; font-size: <?php echo HTML_AREA_WYSIWYG_FONT_SIZE; ?>pt;'; config.debug = <?php echo HTML_AREA_WYSIWYG_DEBUG; ?>; editor_generate('message',config); <?php } // MaxiDVD Added HTML is ON when WYSIWYG BOX Enabled, HTML is OFF when WYSIWYG Disabled ?> </script> @@@@@@@@@@@@@@@@ END /ADMIN/MAIL.PHP SAVE AND CLOSE FILE @@@@@@@@@@@@@@@@@@@@@@@@@@ STEP 3.0 --> OPEN: /admin/newsletters.php =========================================================================== ========= Look for this around line 43: (IF YOU COPIED AND PASTED ALL THE FILES & FOLDERS DONT DO THIS STEP!) =========================================================================== ========= $mimemessage->add_text($this->content); =========================================================================== ========= And replace that line with this: =========================================================================== ========= // MaxiDVD Added WYSIWYG HTML Area Box + Admin Function v1.6.6 Newsletters HTML - Pre if (HTML_AREA_WYSIWYG_DISABLE_NEWSLETTER == 'Disable') { $mimemessage->add_text($this->content); } else { $mimemessage->add_html($this->content); // MaxiDVD Added HTML is ON when WYSIWYG BOX Enabled, HTML is OFF when WYSIWYG Disabled } STEP 3.1 --> FIND: /admin/newsletters.php =========================================================================== ========= Look for this around line 99: (IF YOU COPIED AND PASTED ALL THE FILES & FOLDERS DONT DO THIS STEP!) =========================================================================== ========= <title><?php echo TITLE; ?></title> <link rel="stylesheet" type="text/css" href="includes/stylesheet.css"> =========================================================================== ========= And directly underneath it add this: =========================================================================== ========= <script language="Javascript1.2"><!-- // load htmlarea //MaxiDVD Added WYSIWYG HTML Area Box + Admin Function v1.6.6 HTML - Head _editor_url = "<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_ADMIN; ?>htmlarea/"; // URL to htmlarea files var win_ie_ver = parseFloat(navigator.appVersion.split("MSIE")[1]); if (navigator.userAgent.indexOf('Mac') >= 0) { win_ie_ver = 0; } if (navigator.userAgent.indexOf('Windows CE') >= 0) { win_ie_ver = 0; } if (navigator.userAgent.indexOf('Opera') >= 0) { win_ie_ver = 0; } <?php if (HTML_AREA_WYSIWYG_BASIC_NEWSLETTER == 'Basic'){ ?> if (win_ie_ver >= 5.5) { document.write('<scr' + 'ipt src="' +_editor_url+ 'editor_basic.js"'); document.write(' language="Javascript1.2"></scr' + 'ipt>'); } else { document.write('<scr'+'ipt>function editor_generate() { return false; }</scr'+'ipt>'); } <?php } else{ ?> if (win_ie_ver >= 5.5) { document.write('<scr' + 'ipt src="' +_editor_url+ 'editor_advanced.js"'); document.write(' language="Javascript1.2"></scr' + 'ipt>'); } else { document.write('<scr'+'ipt>function editor_generate() { return false; }</scr'+'ipt>'); } <?php }?> // --></script> STEP 3.2 --> FIND: /admin/newsletters.php =========================================================================== ========= Look for this around line 194: (IF YOU COPIED AND PASTED ALL THE FILES & FOLDERS DONT DO THIS STEP!) =========================================================================== ========= <td class="main" valign="top"><?php echo TEXT_NEWSLETTER_CONTENT; ?></td> <td class="main"><?php echo tep_draw_textarea_field('content', 'soft', '100%', '20', $nInfo->content); ?> =========================================================================== ========= And directly underneath it add this: =========================================================================== ========= <?php if (HTML_AREA_WYSIWYG_DISABLE_NEWSLETTER == 'Disable') { '<br>' . include ("comment_newsletter_bar.php");} else { ?> <script language="JavaScript1.2" defer> // MaxiDVD Added WYSIWYG HTML Area Box + Admin Function v1.6.6 Newsletters HTML - Body var config = new Object(); // create new config object config.width = "<?php echo NEWSLETTER_EMAIL_WYSIWYG_WIDTH; ?>px"; config.height = "<?php echo NEWSLETTER_EMAIL_WYSIWYG_HEIGHT; ?>px"; config.bodyStyle = 'background-color: <?php echo HTML_AREA_WYSIWYG_BG_COLOUR; ?>; font-family: "<?php echo HTML_AREA_WYSIWYG_FONT_TYPE; ?>"; color: <?php echo HTML_AREA_WYSIWYG_FONT_COLOUR; ?>; font-size: <?php echo HTML_AREA_WYSIWYG_FONT_SIZE; ?>pt;'; config.debug = <?php echo HTML_AREA_WYSIWYG_DEBUG; ?>; editor_generate('content',config); <?php } // MaxiDVD Added HTML is ON when WYSIWYG BOX Enabled, HTML is OFF when WYSIWYG Disabled ?> </script> @@@@@@@@@@@@@@@@ END /ADMIN/NEWSLETTERS.PHP SAVE AND CLOSE FILE @@@@@@@@@@@@@@@@@@@@@ STEP 4.0 --> OPEN: /admin/includes/modules/newsletters/newsletter.php =========================================================================== ========= Look for this around line 63: (IF YOU COPIED AND PASTED ALL THE FILES & FOLDERS DONT DO THIS STEP!) =========================================================================== ========= $mimemessage->add_text($this->content); =========================================================================== ========= And replace that line with this: =========================================================================== ========= // MaxiDVD Added WYSIWYG HTML Area Box + Admin Function v1.6.6 Newsletter HTML - Pre if (HTML_AREA_WYSIWYG_DISABLE_NEWSLETTER == 'Disable') { $mimemessage->add_text($this->content); } else { $mimemessage->add_html($this->content); // MaxiDVD Added HTML is ON when WYSIWYG BOX Enabled, HTML is OFF when WYSIWYG Disabled } @@@@@@@@@@@@ END /ADMIN/INCLUDES/MODULES/NEWSLETTER/NEWSLETTERS.PHP @@@@@@@@@@@@@@@@ STEP 5.0 --> OPEN: /admin/includes/modules/newsletters/product_notifications.php =========================================================================== ========= Look for this around line 196: (IF YOU COPIED AND PASTED ALL THE FILES & FOLDERS DONT DO THIS STEP!) =========================================================================== ========= $mimemessage->add_text($this->content); =========================================================================== ========= And replace that line with this: =========================================================================== ========= // MaxiDVD Added WYSIWYG HTML Area Box + Admin Function v1.6.6 Product Notifications HTML - Pre if (HTML_AREA_WYSIWYG_DISABLE_NEWSLETTER == 'Disable') { $mimemessage->add_text($this->content); } else { $mimemessage->add_html($this->content); // MaxiDVD Added HTML is ON when WYSIWYG BOX Enabled, HTML is OFF when WYSIWYG Disabled } @@@@@@@ END /ADMIN/INCLUDES/MODULES/NEWSLETTER/PRODUCT_NOTIFICATIONS.PHP @@@@@@@@@ STEP 6.0 --> OPEN: /catalog/includes/languages/(yourlanguage)/mail.php =========================================================================== ========= ADD this text to the bottom: (IF YOU COPIED AND PASTED ALL THE FILES & FOLDERS DONT DO THIS STEP!) =========================================================================== ========= define('TEXT_EMAIL_BUTTON_TEXT', '<p><HR><b><font color="red">The Back Button has been DISABLE while HTML WYSIWG Editor is turned ON,</b></font> WHY? - Because if you click the back button to edit your HTML email, The PHP(php.ini)"Magic Quotes = On" automatically add "\\\\\\\" backslashes every where Double Quotes " appear (HTML uses them in Links, Images and More) and this destorts the HTML and the pictures will dissapear once you submit the email again, If you turn OFF WYSIWYG Editor in Admin the HTML Ability of osCommerce is also turned OFF and the back button will re-appear. A fix for this HTML and PHP issue would be nice if someone knows a solution Iv\'e tried.<br><br><b>If you really need to Preview your emails before sending them, use the Preview Button located on the WYSIWYG Editor.<br><HR>'); define('TEXT_EMAIL_BUTTON_HTML', '<p><HR><b><font color="red">HTML is currently Disabled!</b></font><br><br>If you want to send HTML email, Enable WYSIWYG Editor for Email in: Admin-->Configuration-->WYSIWYG Editor-->Options<br>'); @@@@@@@@@@ END /ADMIN/INCLUDE/LANGUAGES/(YOURLANGUAGE)/MAIL.PHP @@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ THE END @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@ Congrats! your done... give yourself a pat on the back! now go to your /admin/ select --> configuration --> HTML WYSIWYG Editor --> (and customize) --> The following Step below is for persons who have installed the Categories_Description v1.2 contribution and would like to have HTML WYSIWYG control over what goes in there categories descriptions.
arietis Posted October 16, 2008 Posted October 16, 2008 hi. i am going through the long installation codes again...in the install notes it says (below). Just woundering wheneverit says Define main page....what does it mean? do i have to change this? i don't think you need to change it. those are just defining constants. if you change them to something that doesn't work with the rest of the code, then you're going to create more problems. if the instructions didn't not say you need to change it then i would assume it is fine as is. as i said, your function tep_get_uploaded_file() is not defined anywhere. that is your problem. in those install instructions i don't see any reference to that function name. so maybe some of your changes inadvertently removed that function. or, maybe you uploaded your /catalog/includes/functions/general.php on top of /catalog/includes/functions/general.php. you'll have to search through your code and/or backups to find the function and figure out why it is no longer present. then put it back in place.
jaimeweb Posted October 16, 2008 Author Posted October 16, 2008 i have done a restore now and i have all my old files ect back to normal. i still want this script so could u let me know what i need to do as i will have this problem again as i have tried it 2 times now.
arietis Posted October 17, 2008 Posted October 17, 2008 i have done a restore now and i have all my old files ect back to normal. i still want this script so could u let me know what i need to do as i will have this problem again as i have tried it 2 times now. you have a reference to a function called tep_get_uploaded_file(). find the code now so that you know where it lives and while you're installing this contribution make sure that the function will still be defined. it doesn't look like this contribution is using it, but for some reason when you install this contribution, you loose the function. at least, that's what it looks like from what you have posted.
jaimeweb Posted October 17, 2008 Author Posted October 17, 2008 i cant find that code anywhere. im the files from the wysiwyg or the files that are being replaced. :S
spooks Posted October 17, 2008 Posted October 17, 2008 tep_get_uploaded_file is not a standard osC function, perhaps its missing, you have a duff/incomplete install script. Try another package instead, like FCKeditor http://addons.oscommerce.com/info/2900 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.
jaimeweb Posted October 17, 2008 Author Posted October 17, 2008 hi sam. theres only 1 file in that addon and its asking for other files in the instructions...which is the one i should download?
spooks Posted October 17, 2008 Posted October 17, 2008 As detailed in V2.7, you should Download the latest version of FCK from http://www.fckeditor.net/ and follow the install instructions in the package, thats obvious I thought!!!! 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.
samleifung Posted December 15, 2008 Posted December 15, 2008 Can we set the default value in the product description under html_wysiwygEditor_v1.6.6. Anyone can help on this!!!!!!! Thanks
Recommended Posts
Archived
This topic is now archived and is closed to further replies.