danthony2 Posted March 18, 2004 Share Posted March 18, 2004 Hello Everyone, I am having massive issues with this install, I think it has to do with paths but not fully sure. Can someone talk alook at my code? <html <?php echo HTML_PARAMS; ?>> <head> <!-- DWD Modify -> Add: HTMLArea v3.0 !--> <!-- Load HTMLArea Core Files. !--> <script type="text/javascript" src="htmlarea/htmlarea.js"></script> <script type="text/javascript" src="htmlarea/dialog.js"></script> <script type="text/javascript" src="htmlarea/lang/en.js"></script> <!-- Load HTMLArea Plugins. !--> <script type="text/javascript"> HTMLArea.loadPlugin("TableOperations"); HTMLArea.loadPlugin("SpellChecker"); </script> <!-- Load HTMLArea StyleSheet. !--> <style type="text/css"> @import url(/htmlarea/htmlarea.css); </style> <!-- DWD Modify End. !--> Also.... <body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0" bgcolor="#FFFFFF" onload="SetFocus(); onload="HTMLArea.replaceAll()"> and... <?php echo tep_draw_textarea_field('products_description[' . $languages[$i]['id'] . ']', 'soft', '100%', '20', ..... I have the htmlarea located in my admin directory, and even /store/htmlarea. I keep getting java errors stating that something wasn't defined. So thats why I think its purley path issures. Thanks David Quote Link to comment Share on other sites More sharing options...
mazza Posted March 18, 2004 Share Posted March 18, 2004 onload="SetFocus(); onload="HTMLArea.replaceAll()" This does not seem right. Try removing: onload="SetFocus(); Quote "Use no way as way, have no limitation as limitation." - Bruce Lee Link to comment Share on other sites More sharing options...
danthony2 Posted March 18, 2004 Author Share Posted March 18, 2004 (edited) well acording to the author the statement looks right, the original thread is here: http://www.oscommerce.com/forums/index.php?showtopic=74826 I started this new one so it wouldn't be barried so deep in the original one. The error that I get is more of htmlarea not defined so I still think its a path issue. THanks David Edited March 18, 2004 by danthony2 Quote Link to comment Share on other sites More sharing options...
longstockings Posted March 26, 2004 Share Posted March 26, 2004 Paths for admin/categories.php are :- <!-- DWD Modify -> Add: HTMLArea v3.0 !--> <!-- Load HTMLArea Core Files. !--> <script type="text/javascript" src="htmlarea/htmlarea.js"></script> <script type="text/javascript" src="htmlarea/dialog.js"></script> <script type="text/javascript" src="htmlarea/lang/en.js"></script> <!-- Load HTMLArea Plugins. !--> <script type="text/javascript"> HTMLArea.loadPlugin("TableOperations"); HTMLArea.loadPlugin("SpellChecker"); </script> <!-- Load HTMLArea StyleSheet. !--> <style type="text/css"> @import url(htmlarea/htmlarea.css); </style> <!-- DWD Modify End. !--> Body tag should be this :- <body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0" bgcolor="#FFFFFF" onload="SetFocus(); HTMLArea.replaceAll()"> The code above is different on other pages such as mail.php and newsletters.php For these pages use <body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0" bgcolor="#FFFFFF" onload="HTMLArea.replaceAll()"> Edit htmlarea.js so it resembles this :- // found on lines 53 and 54 this.imgURL = "images/"; this.popupURL = "htmlarea/popups/"; Change the image paths starting at line 147 should look like this bold: [ "Bold", "htmlarea/images/ed_format_bold.gif", false, function(e) {e.execCommand("bold");} ], italic: [ "Italic", "htmlarea/images/ed_format_italic.gif", false, function(e) {e.execCommand("italic");} ], underline: [ "Underline", "htmlarea/images/ed_format_underline.gif", false, function(e) {e.execCommand("underline");} ], strikethrough: [ "Strikethrough", "htmlarea/images/ed_format_strike.gif", false, function(e) {e.execCommand("strikethrough");} ], subscript: [ "Subscript", "htmlarea/images/ed_format_sub.gif", false, function(e) {e.execCommand("subscript");} ], superscript: [ "Superscript", "htmlarea/images/ed_format_sup.gif", false, function(e) {e.execCommand("superscript");} ], justifyleft: [ "Justify Left", "htmlarea/images/ed_align_left.gif", false, function(e) {e.execCommand("justifyleft");} ], justifycenter: [ "Justify Center", "htmlarea/images/ed_align_center.gif", false, function(e) {e.execCommand("justifycenter");} ], justifyright: [ "Justify Right", "htmlarea/images/ed_align_right.gif", false, function(e) {e.execCommand("justifyright");} ], Notice the path is different and for all images should be htmlarea/images/ Copy the htmlarea folder into your admin folder Upload and enjoy Quote Link to comment Share on other sites More sharing options...
danthony2 Posted March 28, 2004 Author Share Posted March 28, 2004 Very cool, I got it working! Thanks alot of everyones effort. David 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.
Note: Your post will require moderator approval before it will be visible.