luckyno Posted January 13, 2008 Share Posted January 13, 2008 (edited) All In One FCK Editor WYSIWYG Editor This Contribution is a combination of other contributions here with parts of FCK editor. The advantage of this contribution is that you get included in this pack: FCK editor 2.5.1 FCK editor for Products Description FCK editor for HTML Newsletter FCK editor for Information Pages Unlimited FCK editor for Define Mainpage FCK editor for email order text All in one complete package! Corrected and new installation instructions! LINK: http://www.comsport.ch/All_In_OneFCKeditor_2.5.1.zip very lightweight and fully cross browser compatible. (IE, Firefox, Opera, Netscape, Mozilla, Safari, ...). With great image and media files browser/uploader. Leaves the code clean. The contribution is waiting approval in the oscommerce.com contribution section... Feedbacks are needed :) Edited January 13, 2008 by luckyno Quote I love oscommerce and OS software! I'm not a programmer, I'm only a learning boy and a translator :) I love full contribution packages! Link to comment Share on other sites More sharing options...
PJ2006 Posted January 13, 2008 Share Posted January 13, 2008 Hi, I think this may be just what I have been looking for. 2 questions: Step 4: $Config['UserFilesPath'] = '/userfiles/' ; - this already seems to be there $Config['UserFilesAbsolutePath'] = '/YOUR/ABSOLUTE/PATH/OF/THE/USERFILES/DIRECTORY/' ; - exactly where should this go and what is the absolute path is this like www.mydomain.co.uk\userfiles? or do I need to give http? Finally - I just want this for the index page i.e. define main page can I turn it off everywhere else Many thanks Lotti Quote Link to comment Share on other sites More sharing options...
PJ2006 Posted January 13, 2008 Share Posted January 13, 2008 Hi, I think this may be just what I have been looking for. 2 questions: Step 4: $Config['UserFilesPath'] = '/userfiles/' ; - this already seems to be there $Config['UserFilesAbsolutePath'] = '/YOUR/ABSOLUTE/PATH/OF/THE/USERFILES/DIRECTORY/' ; - exactly where should this go and what is the absolute path is this like www.mydomain.co.uk\userfiles? or do I need to give http? Finally - I just want this for the index page i.e. define main page can I turn it off everywhere else Many thanks Lotti Sorry, one more thing, in Product description I now get: Not Found The requested URL /catalog/admin/FCKeditor/editor/fckeditor.html was not found on this server. Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request. Quote Link to comment Share on other sites More sharing options...
luckyno Posted January 13, 2008 Author Share Posted January 13, 2008 Sorry, one more thing, in Product description I now get: Not Found The requested URL /catalog/admin/FCKeditor/editor/fckeditor.html was not found on this server. Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request. it must be /catalog/admin/fckeditor/editor/fckeditor.html and not /catalog/admin/FCKeditor/editor/fckeditor.html perhaps I didn't corrected this little thing in the fck config. I'm going to check this Quote I love oscommerce and OS software! I'm not a programmer, I'm only a learning boy and a translator :) I love full contribution packages! Link to comment Share on other sites More sharing options...
luckyno Posted January 13, 2008 Author Share Posted January 13, 2008 it must be /catalog/admin/fckeditor/editor/fckeditor.html and not /catalog/admin/FCKeditor/editor/fckeditor.html perhaps I didn't corrected this little thing in the fck config. I'm going to check this ERROR FOUND: ######## OPEN ######## /admin/includes/functions/html_output.php ###################### CHANGE THIS: //// // Output a form textarea field w/ fckeditor function tep_draw_fckeditor($name, $width, $height, $text) { $oFCKeditor = new FCKeditor($name); $oFCKeditor -> Width = $width; $oFCKeditor -> Height = $height; $oFCKeditor -> BasePath = 'FCKeditor/'; $oFCKeditor -> Value = $text; $field = $oFCKeditor->Create($name); return $field; } With THIS: //// // Output a form textarea field w/ fckeditor function tep_draw_fckeditor($name, $width, $height, $text) { $oFCKeditor = new FCKeditor($name); $oFCKeditor -> Width = $width; $oFCKeditor -> Height = $height; $oFCKeditor -> BasePath = 'fckeditor/'; $oFCKeditor -> Value = $text; $field = $oFCKeditor->Create($name); return $field; } now it should work! Quote I love oscommerce and OS software! I'm not a programmer, I'm only a learning boy and a translator :) I love full contribution packages! Link to comment Share on other sites More sharing options...
luckyno Posted January 13, 2008 Author Share Posted January 13, 2008 I corrected and uploaded the full package. Now it works. Quote I love oscommerce and OS software! I'm not a programmer, I'm only a learning boy and a translator :) I love full contribution packages! Link to comment Share on other sites More sharing options...
PJ2006 Posted January 13, 2008 Share Posted January 13, 2008 it must be /catalog/admin/fckeditor/editor/fckeditor.html and not /catalog/admin/FCKeditor/editor/fckeditor.html perhaps I didn't corrected this little thing in the fck config. I'm going to check this Where is this line? Quote Link to comment Share on other sites More sharing options...
luckyno Posted January 13, 2008 Author Share Posted January 13, 2008 Where is this line? ######## OPEN ######## /admin/includes/functions/html_output.php ###################### CHANGE THIS: //// // Output a form textarea field w/ fckeditor function tep_draw_fckeditor($name, $width, $height, $text) { $oFCKeditor = new FCKeditor($name); $oFCKeditor -> Width = $width; $oFCKeditor -> Height = $height; $oFCKeditor -> BasePath = 'FCKeditor/'; $oFCKeditor -> Value = $text; $field = $oFCKeditor->Create($name); return $field; } With THIS: //// // Output a form textarea field w/ fckeditor function tep_draw_fckeditor($name, $width, $height, $text) { $oFCKeditor = new FCKeditor($name); $oFCKeditor -> Width = $width; $oFCKeditor -> Height = $height; $oFCKeditor -> BasePath = 'fckeditor/'; $oFCKeditor -> Value = $text; $field = $oFCKeditor->Create($name); return $field; } now it should work! Quote I love oscommerce and OS software! I'm not a programmer, I'm only a learning boy and a translator :) I love full contribution packages! Link to comment Share on other sites More sharing options...
PJ2006 Posted January 13, 2008 Share Posted January 13, 2008 ERROR FOUND: ######## OPEN ######## /admin/includes/functions/html_output.php ###################### CHANGE THIS: //// // Output a form textarea field w/ fckeditor function tep_draw_fckeditor($name, $width, $height, $text) { $oFCKeditor = new FCKeditor($name); $oFCKeditor -> Width = $width; $oFCKeditor -> Height = $height; $oFCKeditor -> BasePath = 'FCKeditor/'; $oFCKeditor -> Value = $text; $field = $oFCKeditor->Create($name); return $field; } With THIS: //// // Output a form textarea field w/ fckeditor function tep_draw_fckeditor($name, $width, $height, $text) { $oFCKeditor = new FCKeditor($name); $oFCKeditor -> Width = $width; $oFCKeditor -> Height = $height; $oFCKeditor -> BasePath = 'fckeditor/'; $oFCKeditor -> Value = $text; $field = $oFCKeditor->Create($name); return $field; } now it should work! Hi I did this - now I get the editor up fine. I can't upload images - it says not allowed - do you know how to fix this When I save my text changes either for a product or in define main page - changes are not saved. I've set permissions on mainpage.php to 777 - not sure what else to try Any suggestions? Your help is greatly appreciated! Thanks Lotti Quote Link to comment Share on other sites More sharing options...
luckyno Posted January 13, 2008 Author Share Posted January 13, 2008 I can't upload images - it says not allowed - do you know how to fix this When I save my text changes either for a product or in define main page - changes are not saved. I've set permissions on mainpage.php to 777 - not sure what else to try Have you done this? 2. Change read and write permissions to 777 for: catalog/userfiles/ catalog/userfiles/file catalog/userfiles/media catalog/userfiles/image catalog/userfiles/flash It is to upload images in text description. AND: 4. Insert the path to your /userfiles/ directory in: admin/fckeditor/editor/filemanager/connectors/php/config.php $Config['UserFilesPath'] = '/userfiles/' ; <-------this should be /catalog/userfiles/ and a few lines down: $Config['UserFilesAbsolutePath'] = '/YOUR/ABSOLUTE/PATH/OF/THE/USERFILES/DIRECTORY/' ; <----- and this something like: /var/www/vhosts/yourdomain.com/httpdocs/catalog/userfiles/ Quote I love oscommerce and OS software! I'm not a programmer, I'm only a learning boy and a translator :) I love full contribution packages! Link to comment Share on other sites More sharing options...
luckyno Posted January 13, 2008 Author Share Posted January 13, 2008 for the problem with define main page: Point 3 of installation instructions: **CATALOG STEP 3 --> COPY the define_mainpage.php 'file/s' (TO_YOUR_LANGUAGE_FOLDERS): ===================================================================== Must SET Full Read Write RWRWRW 777 Permission on this files!! ===================================================================== catalog/includes/language/(YOUR_LANGUAGE_FOLDER)/define_mainpage.php @@@@@@@@@@ END COPY NEW FILES (TO_YOUR_LANGUAGE_FOLDERS) @@@@@@@@@@ Quote I love oscommerce and OS software! I'm not a programmer, I'm only a learning boy and a translator :) I love full contribution packages! Link to comment Share on other sites More sharing options...
PJ2006 Posted January 13, 2008 Share Posted January 13, 2008 for the problem with define main page: Point 3 of installation instructions: **CATALOG STEP 3 --> COPY the define_mainpage.php 'file/s' (TO_YOUR_LANGUAGE_FOLDERS): ===================================================================== Must SET Full Read Write RWRWRW 777 Permission on this files!! ===================================================================== catalog/includes/language/(YOUR_LANGUAGE_FOLDER)/define_mainpage.php @@@@@@@@@@ END COPY NEW FILES (TO_YOUR_LANGUAGE_FOLDERS) @@@@@@@@@@ I tried that, it didn't work, I still can save text changes or upload images - I am sorry to have so many questions. Quote Link to comment Share on other sites More sharing options...
luckyno Posted January 13, 2008 Author Share Posted January 13, 2008 I tried that, it didn't work, I still can save text changes or upload images - I am sorry to have so many questions. Please read well install instructions... You don't have to sett 777 permission for admin/define_mainpage.php BUT for: catalog/includes/language/english/define_mainpage.php catalog/includes/language/german/define_mainpage.php catalog/includes/language/italian/define_mainpage.php ...ecc ecc for images upload... you have to use YOUR absolute path. Not mine. Mine was only an example. Quote I love oscommerce and OS software! I'm not a programmer, I'm only a learning boy and a translator :) I love full contribution packages! Link to comment Share on other sites More sharing options...
luckyno Posted January 13, 2008 Author Share Posted January 13, 2008 Please read well install instructions... You don't have to sett 777 permission for admin/define_mainpage.php BUT for: catalog/includes/language/english/define_mainpage.php catalog/includes/language/german/define_mainpage.php catalog/includes/language/italian/define_mainpage.php ...ecc ecc for images upload... you have to use YOUR absolute path. Not mine. Mine was only an example. in admin/fckeditor/editor/filemanager/connectors/php/config.php change this // SECURITY: You must explicitly enable this "connector". (Set it to "true"). // WARNING: don't just set "$Config['Enabled'] = true ;", you must be sure that only // authenticated users can access this file or use some kind of session checking. $Config['Enabled'] = false ; to this // SECURITY: You must explicitly enable this "connector". (Set it to "true"). // WARNING: don't just set "$Config['Enabled'] = true ;", you must be sure that only // authenticated users can access this file or use some kind of session checking. $Config['Enabled'] = true ; Quote I love oscommerce and OS software! I'm not a programmer, I'm only a learning boy and a translator :) I love full contribution packages! Link to comment Share on other sites More sharing options...
PJ2006 Posted January 13, 2008 Share Posted January 13, 2008 in admin/fckeditor/editor/filemanager/connectors/php/config.php change this // SECURITY: You must explicitly enable this "connector". (Set it to "true"). // WARNING: don't just set "$Config['Enabled'] = true ;", you must be sure that only // authenticated users can access this file or use some kind of session checking. $Config['Enabled'] = false ; to this // SECURITY: You must explicitly enable this "connector". (Set it to "true"). // WARNING: don't just set "$Config['Enabled'] = true ;", you must be sure that only // authenticated users can access this file or use some kind of session checking. $Config['Enabled'] = true ; OK, I've changed the security setting as above. I've changed the permissions on the define_mainpage.php in my english directory. But still when I press save I get taken to my website home page which is actually outside of the shop and the changes are not stored. I obviously have something wrong still. In the config file I have the following settings: $Config['UserFilesPath'] = '/userfiles/' ; $Config['UserFilesAbsolutePath'] = '/home/src/public_html/catalog/userfiles/' ; I'm wondering if this is wrong? Thanks for bearing with me on this :blush: Quote Link to comment Share on other sites More sharing options...
PJ2006 Posted January 13, 2008 Share Posted January 13, 2008 OK, I've changed the security setting as above. I've changed the permissions on the define_mainpage.php in my english directory. But still when I press save I get taken to my website home page which is actually outside of the shop and the changes are not stored. I obviously have something wrong still. In the config file I have the following settings: $Config['UserFilesPath'] = '/userfiles/' ; $Config['UserFilesAbsolutePath'] = '/home/src/public_html/catalog/userfiles/' ; I'm wondering if this is wrong? Thanks for bearing with me on this :blush: Sorry have changed: $Config['UserFilesPath'] = '/userfiles/' ; to: $Config['UserFilesPath'] = '/catalog/userfiles/' ; as suggested above, still unable to save changes. Sorry to be so stupid I'm sure it's a silly mistake I'm making :'( Quote Link to comment Share on other sites More sharing options...
luckyno Posted January 13, 2008 Author Share Posted January 13, 2008 (edited) OK, I've changed the security setting as above. I've changed the permissions on the define_mainpage.php in my english directory. But still when I press save I get taken to my website home page which is actually outside of the shop and the changes are not stored. I obviously have something wrong still. In the config file I have the following settings: $Config['UserFilesPath'] = '/userfiles/' ; $Config['UserFilesAbsolutePath'] = '/home/src/public_html/catalog/userfiles/' ; I'm wondering if this is wrong? Thanks for bearing with me on this :blush: No... if you have your oscommerce in the catalog directory it must be: $Config['UserFilesPath'] = '/catalog/userfiles/' ; and this: $Config['UserFilesAbsolutePath'] = '/home/src/public_html/catalog/userfiles/' ; where is the url? are you trying oscommerce locally? if you are in a online website: $Config['UserFilesAbsolutePath'] = '/home/YOURDOMAIN.COMPERHAPSHERE/src/public_html/catalog/userfiles/' ; must have something like your domain inserted. Edited January 13, 2008 by luckyno Quote I love oscommerce and OS software! I'm not a programmer, I'm only a learning boy and a translator :) I love full contribution packages! Link to comment Share on other sites More sharing options...
luckyno Posted January 14, 2008 Author Share Posted January 14, 2008 No... if you have your oscommerce in the catalog directory it must be: $Config['UserFilesPath'] = '/catalog/userfiles/' ; and this: $Config['UserFilesAbsolutePath'] = '/home/src/public_html/catalog/userfiles/' ; where is the url? are you trying oscommerce locally? if you are in a online website: $Config['UserFilesAbsolutePath'] = '/home/YOURDOMAIN.COMPERHAPSHERE/src/public_html/catalog/userfiles/' ; must have something like your domain inserted. have you solved your problems? I tried the installation in another web server and it works. Define Main Page too. Quote I love oscommerce and OS software! I'm not a programmer, I'm only a learning boy and a translator :) I love full contribution packages! Link to comment Share on other sites More sharing options...
PJ2006 Posted January 14, 2008 Share Posted January 14, 2008 have you solved your problems? I tried the installation in another web server and it works. Define Main Page too. No I'm still having problems. I can't select Preview for my products any more - well I can but when I do it goes to the website root - ie. http://mydomain.com I have tried the following: $Config['UserFilesAbsolutePath'] = '/home/http://mydomain.com/src/public_html/catalog/userfiles/' and $Config['UserFilesAbsolutePath'] = '/home/www.mydomain.com/src/public_html/catalog/userfiles/' I continue to have the same problem - any more suggestions? I'm sure it's something really simple as it seems to be so close, it's just the submit of what is in the editor thats not working - i.e. I can submit if the editor contents is blank. Thanks Quote Link to comment Share on other sites More sharing options...
luckyno Posted January 14, 2008 Author Share Posted January 14, 2008 No I'm still having problems. I can't select Preview for my products any more - well I can but when I do it goes to the website root - ie. http://mydomain.com I have tried the following: $Config['UserFilesAbsolutePath'] = '/home/http://mydomain.com/src/public_html/catalog/userfiles/' and $Config['UserFilesAbsolutePath'] = '/home/www.mydomain.com/src/public_html/catalog/userfiles/' I continue to have the same problem - any more suggestions? I'm sure it's something really simple as it seems to be so close, it's just the submit of what is in the editor thats not working - i.e. I can submit if the editor contents is blank. Thanks you can see your correct absolute path here: http://www.yourdomain.com/admin/backup.php use it and change the final directories to yours. Quote I love oscommerce and OS software! I'm not a programmer, I'm only a learning boy and a translator :) I love full contribution packages! Link to comment Share on other sites More sharing options...
PJ2006 Posted January 14, 2008 Share Posted January 14, 2008 you can see your correct absolute path here: http://www.yourdomain.com/admin/backup.php use it and change the final directories to yours. I get: Not Found The requested URL /admin/backup.php was not found on this server. Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request. Quote Link to comment Share on other sites More sharing options...
PJ2006 Posted January 14, 2008 Share Posted January 14, 2008 I get: Not Found The requested URL /admin/backup.php was not found on this server. Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request. Sorry, my mistake, needed to add in catalog. I get: '/home/src/public_html/catalog/admin/userfiles/' Tried that and '/home/src/public_html/catalog/userfiles/' Still no luck Quote Link to comment Share on other sites More sharing options...
luckyno Posted January 14, 2008 Author Share Posted January 14, 2008 (edited) I get: Not Found The requested URL /admin/backup.php was not found on this server. Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request. mmmm... WHERE DO YOU HAVE YOUR ADMIN DIRECTORY???? Go in you admin directory ---> tools---> Backups and you will see it. It is very simple! You will see your absolute path, then you remove directories until your root, and you add /userfiles/ than you put it in the config file of FCK. Edited January 14, 2008 by luckyno Quote I love oscommerce and OS software! I'm not a programmer, I'm only a learning boy and a translator :) I love full contribution packages! Link to comment Share on other sites More sharing options...
luckyno Posted January 14, 2008 Author Share Posted January 14, 2008 Are you on a server or what? Quote I love oscommerce and OS software! I'm not a programmer, I'm only a learning boy and a translator :) I love full contribution packages! Link to comment Share on other sites More sharing options...
PJ2006 Posted January 14, 2008 Share Posted January 14, 2008 Are you on a server or what? Yes on a server. 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.