Sorry, away having to cook!
Yes, I've tried it again - require('fckeditor/fckeditor.php') and it returns the following:
Warning: main(fckeditor/fckeditor.php): failed to open stream: No such file or directory in /usr/local/home/httpd/vhtdocs/mysite.com/catalog/admin/includes/functions/html_output.php on line 14
Fatal error: main(): Failed opening required 'fckeditor/fckeditor.php' (include_path='.:/opt/php-4.3/lib/php') in /usr/local/home/httpd/vhtdocs/mysite.com/catalog/admin/includes/functions/html_output.php on line 14
(obviously not 'mysite.com' ! but it is a subdomain i.e. 'this.that.com' although I shouldn't think that would make a difference.
Because of the url above missing the actual position of the fckeditor directory in the url tree others I've tried are:
#require('http://mysite.com/catalog/admin/FCKeditor/catalog/admin/fckeditor/fckeditor.php');
and
#require('FCKeditor/catalog/admin/fckeditor/fckeditor.php');
The first throws up on the categories page:
Fatal error: Cannot instantiate non-existent class: fckeditor in /usr/local/home/httpd/vhtdocs/mysite.com/catalog/admin/includes/functions/html_output.php on line 274
The second throwing the file not found error on the catalog page:
Not Found
The requested URL /catalog/admin/FCKeditor/editor/fckeditor.html was not found on this server.
I got the line from the install instructions that came from the download, which were unzipped to a local directory prior to upload to the server:
######## OPEN ########
/admin/includes/functions/html_output.php
######################
######## FIND (LINE 13-14) ########
////
// The HTML href link wrapper function
###################################
######## Just BEFORE ADD this line ########
require("fckeditor/fckeditor.php"); (!! This didn't work as mentioned above)
############################
######## FIND (LINE 235-253) ########
////
// Output a form textarea field
function tep_draw_textarea_field($name, $wrap, $width, $height, $text = '', $parameters = '', $reinsert_value = true) {
$field = '<textarea name="' . tep_output_string($name) . '" wrap="' . tep_output_string($wrap) . '" cols="' . tep_output_string($width) . '" rows="' . tep_output_string($height) . '"';
if (tep_not_null($parameters)) $field .= ' ' . $parameters;
$field .= '>';
if ( (isset($GLOBALS[$name])) && ($reinsert_value == true) ) {
$field .= tep_output_string_protected(stripslashes($GLOBALS[$name]));
} elseif (tep_not_null($text)) {
$field .= tep_output_string_protected($text);
}
$field .= '</textarea>';
return $field;
}
####################################
####################################
######## AFTER that ADD these lines ########
////
// 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;
}
###########################
I found on a post higher up something saying to make function tep_draw_fckeditor($name, $width, $height, $text) {
into: function tep_draw_fckeditor($name, $width, $height, $text = '') {
and where the install said to put it, I entered:
// Output a form textarea field with fckeditor
function tep_draw_fckeditor($name,$width,$height,$text='') {
$oFCKeditor = new FCKeditor($name);
$oFCKeditor -> Width = $width;
$oFCKeditor -> Height = $height;
$oFCKeditor -> BasePath = 'FCKeditor/'; (!! I've tried this both upper and lowercase as mentioned on the FCKeditor forum pages: http://www.oscommerce.com/forums/lofiversion/index.php?f7.html - B Payne, resulting in the same problem)
$oFCKeditor -> Value = $text;
$field = $oFCKeditor->Create($name);
return $field;
}
////
Sorry to be a pain! :blush: