Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

FCK WYSIWYG HTML editor


spooks

Recommended Posts

Check your install again, edits to html_output.php

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.

Link to comment
Share on other sites

Hi Spooks,

 

I checked it all many times, I had a friend look at it only to find that it was my fault.

 

I neglected to add the codes to the appropriate php files.

 

Thanks for your response & sorry to waste your time (embarrassed)

 

Peter :)

Link to comment
Share on other sites

When I first started my site I painfully added 600+ items the default way, adding br code etc

I have just installed this editor and bloody hell HOW MUCH EASIER is it.

Many thanks for this. Simply Superb :lol: :blush:

 

I only encountered one problem. I had to make a folder in public_html called "userfiles"

Nothing goes in there when I upload pictures etc. Is that right, cheers

Edited by SimpleSi
Link to comment
Share on other sites

When I first started my site I painfully added 600+ items the default way, adding br code etc

I have just installed this editor and bloody hell HOW MUCH EASIER is it.

Many thanks for this. Simply Superb :lol: :blush:

 

I only encountered one problem. I had to make a folder in public_html called "userfiles"

Nothing goes in there when I upload pictures etc. Is that right, cheers

 

Yes pics are redirected to the osc default, that dir is used for other media (flash etc)

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.

Link to comment
Share on other sites

Just a heads up...

 

I was having difficulty with the html tags being stripped from my html email messages when using FCKEditor and found a solution.

 

In the ADMIN>FCKEDITOR>fckconfig.js file around line 35 change FCKConfig.FullPage = false ; change false to true and tags like HTML; BODY: BASE HREF etc. will stay intact.

 

VERY cool contribution btw!

Gaver

diplomacy is the art of saying "nice doggie" - while you look for a rock.

Link to comment
Share on other sites

Just a heads up...

 

I was having difficulty with the html tags being stripped from my html email messages when using FCKEditor and found a solution.

 

In the ADMIN>FCKEDITOR>fckconfig.js file around line 35 change FCKConfig.FullPage = false ; change false to true and tags like HTML; BODY: BASE HREF etc. will stay intact.

 

VERY cool contribution btw!

 

 

When I input "test..." in send email box, it shows "<p>test...</p>" in customer's email. How to remove <p></p>? Many thanks!

Link to comment
Share on other sites

  • 2 weeks later...

Hello All,

 

I've just finished installing the latest version of FCK editor 2.6.3 + Spooks install version 2.7.

The editor works fine in Descriptions, Email and Newsletter manager.

Also after installing Spooks Mod for sending HTML Email the images are displayed perfectly in an HTML email created via the admin.

But, when i make an newsletter with the FCK editor and send it out then the images are not displayed?

When i look into the source of the message the images source only holds the folder and file info but not the full path including domainname.

 

Is there a way to get this fixed?

 

Many thanks in advance,

Richard

Link to comment
Share on other sites

Hi Sam,

 

first to say is "THANK YOU" for this great contrib. I did install both OSC and this contrib with the latest versions today. Everything works fine. The only problem is the already discussed image problem. When I try to access the image folder an error message appears saying that the directory can't be created.

 

My question now is the following. Has this code in the config file to stay like it is or do I have to adept it to my site:

 

$Config['UserFilesPath'] = '/catalog/userfiles/' ;

and

$Config['UserFilesAbsolutePath'] = '/home/mysite/public_html/catalog/userfiles/' ;

 

The full path to my site as stored in configure.php is very different from this one.

 

Thanks for any help or basic instructions to these to lines of code. Maybe it will be usefull to add this information to the Install instructions.

 

Regards

 

Alex

Link to comment
Share on other sites

My question now is the following. Has this code in the config file to stay like it is or do I have to adept it to my site:

 

$Config['UserFilesPath'] = '/catalog/userfiles/' ;

and

$Config['UserFilesAbsolutePath'] = '/home/mysite/public_html/catalog/userfiles/' ;

 

The full path to my site as stored in configure.php is very different from this one.

 

Thanks for any help or basic instructions to these to lines of code. Maybe it will be usefull to add this information to the Install instructions.

 

Regards

 

Alex

 

Hi Alex

 

You need to adapt those lines to your situation.

 

If you have no idea, then ask your webhosting company for your full path. Or you can check it via your Administration - Backup

in the middle just below your backup files there is a little line stating the location of your backup folder.

You can use this info to set up the full path for FCK Editor.

 

Hope this helps.

 

Best regards

Richard

Link to comment
Share on other sites

  • 2 weeks later...

I have been reading this thread over and over to learn as I am a newbie. I have not posted any questions as I have been using the search and again, reading, and reading, and reading.

 

I have uploaded the latest version of FCK Editor .... I am using a fresh install of OSC and have installed per instructions with the 2.7 post. I pointed fck to my images folder on my server... I can get it to see all the images in my IMAGES folder. My problem is, when it uploads to the editor, it shows a break/image. When I do a property right click on the broken image... it shows a extra IMAGES folder in the path.

 

Any ideas?

 

I have almost memorized the /catalog/admin/fckeditor/editor/filemanager/connectors/php/config.php file, and cannot see the problem.

 

Any and all help is appreciated!

Edited by txngent
Link to comment
Share on other sites

post your code, then we may see the error.

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.

Link to comment
Share on other sites

post your code, then we may see the error.

 

 

 

Okay, here it is... I have two catalog files (catalog and catalog2) catalog2 is for testing my OSC contributes for error, catalog is live. So, that is the reason for my "catalog2". I found that when I left off the "images" part of my direct... FCK made a images file in my core root. I want the images to all fall into the catalog/images folder if at all possible.

 

The only thing I changed in my actual config file was my site name to xxxxxx.

 

With this setup as the config I am getting to see the images in FCK editor when I click on either one of the image buttons -> browse server, but then once I select the image, I get a broken image sign or the words "submit query".

 

Thanks again for all the help to one old man.

 

 

 

 

 

*****************************************************************

<?php

/*

* FCKeditor - The text editor for Internet - http://www.fckeditor.net

* Copyright © 2003-2008 Frederico Caldeira Knabben

*

* == BEGIN LICENSE ==

*

* Licensed under the terms of any of the following licenses at your

* choice:

*

* - GNU General Public License Version 2 or later (the "GPL")

* http://www.gnu.org/licenses/gpl.html

*

* - GNU Lesser General Public License Version 2.1 or later (the "LGPL")

* http://www.gnu.org/licenses/lgpl.html

*

* - Mozilla Public License Version 1.1 or later (the "MPL")

* http://www.mozilla.org/MPL/MPL-1.1.html

*

* == END LICENSE ==

*

* Configuration file for the File Manager Connector for PHP.

*/

 

global $Config ;

 

// 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 ;

 

 

// Path to user files relative to the document root.

 

$Config['UserFilesPath'] = '/home/content/t/x/n/txngent/html/xxxxxxxxxxx/catalog2/images/' ;

 

// Fill the following value it you prefer to specify the absolute path for the

// user files directory. Useful if you are using a virtual directory, symbolic

// link or alias. Examples: 'C:\\MySite\\userfiles\\' or '/root/mysite/userfiles/'.

// Attention: The above 'UserFilesPath' must point to the same directory.

 

 

 

$Config['UserFilesAbsolutePath'] = '/home/content/t/x/n/txngent/html/xxxxxxxxxx/catalog2/images/' ;

 

// Due to security issues with Apache modules, it is recommended to leave the

// following setting enabled.

 

 

$Config['ForceSingleExtension'] = true ;

 

 

// Perform additional checks for image files.

// If set to true, validate image size (using getimagesize).

 

 

 

$Config['SecureImageUploads'] = true;

 

// What the user can do with this connector.

 

 

$Config['ConfigAllowedCommands'] = array('QuickUpload', 'FileUpload', 'GetFolders', 'GetFoldersAndFiles', 'CreateFolder') ;

 

// Allowed Resource Types.

 

 

$Config['ConfigAllowedTypes'] = array('File', 'Image', 'Flash', 'Media') ;

 

 

// For security, HTML is allowed in the first Kb of data for files having the

// following extensions only.

 

 

$Config['HtmlExtensions'] = array("html", "htm", "xml", "xsd", "txt", "js") ;

 

 

// After file is uploaded, sometimes it is required to change its permissions

// so that it was possible to access it at the later time.

// If possible, it is recommended to set more restrictive permissions, like 0755.

// Set to 0 to disable this feature.

// Note: not needed on Windows-based servers.

 

 

$Config['ChmodOnUpload'] = 0777 ;

 

 

// See comments above.

// Used when creating folders that does not exist.

 

 

$Config['ChmodOnFolderCreate'] = 0777 ;

 

/* xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

 

Configuration settings for each Resource Type

 

- AllowedExtensions: the possible extensions that can be allowed.

If it is empty then any file type can be uploaded.

- DeniedExtensions: The extensions that won't be allowed.

If it is empty then no restrictions are done here.

 

For a file to be uploaded it has to fulfill both the AllowedExtensions

and DeniedExtensions (that's it: not being denied) conditions.

 

- FileTypesPath: the virtual folder relative to the document root where

these resources will be located.

Attention: It must start and end with a slash: '/'

 

- FileTypesAbsolutePath: the physical path to the above folder. It must be

an absolute path.

If it's an empty string then it will be autocalculated.

Useful if you are using a virtual directory, symbolic link or alias.

Examples: 'C:\\MySite\\userfiles\\' or '/root/mysite/userfiles/'.

Attention: The above 'FileTypesPath' must point to the same directory.

Attention: It must end with a slash: '/'

 

- QuickUploadPath: the virtual folder relative to the document root where

these resources will be uploaded using the Upload tab in the resources

dialogs.

Attention: It must start and end with a slash: '/'

 

- QuickUploadAbsolutePath: the physical path to the above folder. It must be

an absolute path.

If it's an empty string then it will be autocalculated.

Useful if you are using a virtual directory, symbolic link or alias.

Examples: 'C:\\MySite\\userfiles\\' or '/root/mysite/userfiles/'.

Attention: The above 'QuickUploadPath' must point to the same directory.

Attention: It must end with a slash: '/'

 

NOTE: by default, QuickUploadPath and QuickUploadAbsolutePath point to

"userfiles" directory to maintain backwards compatibility with older versions of FCKeditor.

 

This is fine, but you in some cases you will be not able to browse uploaded files using file browser.

 

Example: if you click on "image button", select "Upload" tab and send image to the server, image will appear in FCKeditor correctly, but because it is placed

directly in /userfiles/ directory, you'll be not able to see it in built-in file browser.

 

The more expected behaviour would be to send images directly to "image" subfolder.

To achieve that, simply change

 

$Config['QuickUploadPath']['Image'] = $Config['UserFilesPath'] ;

 

$Config['QuickUploadAbsolutePath']['Image']= $Config['UserFilesAbsolutePath'] ;

 

 

into:

 

$Config['QuickUploadPath']['Image'] = $Config['FileTypesPath']['Image'] ;

 

$Config['QuickUploadAbsolutePath']['Image'] = $Config['FileTypesAbsolutePath']['Image'] ;

 

 

xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

*/

 

$Config['AllowedExtensions']['File'] = array('7z', 'aiff', 'asf', 'avi', 'bmp', 'csv', 'doc', 'fla', 'flv', 'gif', 'gz', 'gzip', 'jpeg', 'jpg', 'mid', 'mov', 'mp3', 'mp4', 'mpc', 'mpeg', 'mpg', 'ods', 'odt', 'pdf', 'png', 'ppt', 'pxd', 'qt', 'ram', 'rar', 'rm', 'rmi', 'rmvb', 'rtf', 'sdc', 'sitd', 'swf', 'sxc', 'sxw', 'tar', 'tgz', 'tif', 'tiff', 'txt', 'vsd', 'wav', 'wma', 'wmv', 'xls', 'xml', 'zip') ;

 

 

$Config['DeniedExtensions']['File'] = array() ;

 

 

$Config['FileTypesPath']['File'] = $Config['UserFilesPath'] . 'file/' ;

 

$Config['FileTypesAbsolutePath']['File']= ($Config['UserFilesAbsolutePath'] == '') ? '' : $Config['UserFilesAbsolutePath'].'file/' ;

 

$Config['QuickUploadPath']['File']= $Config['FileTypesPath']['File'] ;

 

$Config['QuickUploadAbsolutePath']['File']= $Config['FileTypesAbsolutePath']['File'] ;

 

$Config['AllowedExtensions']['Image'] = array('bmp','gif','jpeg','jpg','png') ;

 

$Config['DeniedExtensions']['Image'] = array() ;

 

$Config['FileTypesPath']['Image'] = $Config['UserFilesPath'] . '../images/' ;

 

$Config['FileTypesAbsolutePath']['Image'] = ($Config['UserFilesAbsolutePath'] == '') ? '' :$Config['UserFilesAbsolutePath'].'../images/' ;

 

//($Config['UserFilesAbsolutePath'] == '') ? '' :

 

$Config['QuickUploadPath']['Image'] = $Config['FileTypesPath']['Image'] ;

 

$Config['QuickUploadAbsolutePath']['Image']= $Config['FileTypesAbsolutePath']['Image'] ;

 

$Config['AllowedExtensions']['Flash'] = array('swf','flv') ;

 

$Config['DeniedExtensions']['Flash'] = array() ;

 

$Config['FileTypesPath']['Flash'] = $Config['UserFilesPath'] . 'flash/' ;

 

$Config['FileTypesAbsolutePath']['Flash']= ($Config['UserFilesAbsolutePath'] == '') ? '' : $Config['UserFilesAbsolutePath'].'flash/' ;

 

$Config['QuickUploadPath']['Flash'] = $Config['FileTypesPath']['Flash'] ;

 

$Config['QuickUploadAbsolutePath']['Flash']= $Config['FileTypesAbsolutePath']['Flash'] ;

 

$Config['AllowedExtensions']['Media'] = array('aiff', 'asf', 'avi', 'bmp', 'fla', 'flv', 'gif', 'jpeg', 'jpg', 'mid', 'mov', 'mp3', 'mp4', 'mpc', 'mpeg', 'mpg', 'png', 'qt', 'ram', 'rm', 'rmi', 'rmvb', 'swf', 'tif', 'tiff', 'wav', 'wma', 'wmv') ;

 

$Config['DeniedExtensions']['Media'] = array() ;

 

$Config['FileTypesPath']['Media'] = $Config['UserFilesPath'] . 'media/' ;

 

$Config['FileTypesAbsolutePath']['Media']= ($Config['UserFilesAbsolutePath'] == '') ? '' : $Config['UserFilesAbsolutePath'].'media/' ;

 

$Config['QuickUploadPath']['Media'] = $Config['FileTypesPath']['Media'] ;

 

$Config['QuickUploadAbsolutePath']['Media']= $Config['FileTypesAbsolutePath']['Media'] ;

 

?>

 

 

 

 

**************************************************

 

Thanks again!

Edited by txngent
Link to comment
Share on other sites

Sorry for the long post. It seems that I cannot edit it out.

 

UPDATE:

I have reinstalled the whole contribution in hopes to fix anything that I may have screwed up. I am still getting the broken picture image when I select a image from the server. If I accept the broken image and go to the editor page, I get "submit query". Any ideas? Am I missing something? I admit to reading and reading, but maybe I am missing something in translation. All I have edited was the two areas instructed in the update. Thanks again for all the help and support.

Link to comment
Share on other sites

Sorry for the long post. It seems that I cannot edit it out.

 

UPDATE:Fixed.... I somehow managed to point the editor config to the correct file. Thanks again for all the help.

Edited by txngent
Link to comment
Share on other sites

Is there a way to place all the images uploaded in a folder instead of just dropping them into the "images" folder with everything else? When I change the path from /userfiles/ , to /userfiles/products/ .... it goes back to the broken image thing and I don't want that ever again!!!! :rolleyes:

Edited by txngent
Link to comment
Share on other sites

How many image will the editor allow in a product description? Can I just use button images in the editor and when the customer clicks on them they will popup as a enlargement?

 

My goal is to have 15 images in the description. It would be great to do this with FCK versus having to go with another contribution that may conflict with the editor.

 

Thanks again.

Link to comment
Share on other sites

You can have as many images as you wish, no limit.

 

To link to large image, insert the small image, then use the link option within image properties to point to the large image on the server.

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.

Link to comment
Share on other sites

You can have as many images as you wish, no limit.

 

To link to large image, insert the small image, then use the link option within image properties to point to the large image on the server.

 

Thanks Spooks. I have added a slideshow to my items, but still would like to have all the pics in the description.

Thanks again for the help!

Link to comment
Share on other sites

hello everyone i have clean install of v2.2 rc2 oscommerce

 

i have tried to install the latest version fckeditor 2.6.3 i keep getting this message

 

 

Fatal error: Class 'FCKeditor' not found in /home/freemywi/public_html/catalog/admin/includes/functions/html_output.php on line 273

 

i have checked and checked but i cant find the problem , can some one please help me.

 

i have included the code below

 

 

 

 

$compare);
 }

////
// Output a form textarea field
 function tep_draw_textarea_field($name, $wrap, $width, $height, $text = '', $parameters = '', $reinsert_value = true) {
global $HTTP_GET_VARS, $HTTP_POST_VARS;

$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 ( ($reinsert_value == true) && ( (isset($HTTP_GET_VARS[$name]) && is_string($HTTP_GET_VARS[$name])) || (isset($HTTP_POST_VARS[$name]) && is_string($HTTP_POST_VARS[$name])) ) ) {
  if (isset($HTTP_GET_VARS[$name]) && is_string($HTTP_GET_VARS[$name])) {
	$field .= tep_output_string_protected(stripslashes($HTTP_GET_VARS[$name]));
  } elseif (isset($HTTP_POST_VARS[$name]) && is_string($HTTP_POST_VARS[$name])) {
	$field .= tep_output_string_protected(stripslashes($HTTP_POST_VARS[$name]));
  }
} elseif (tep_not_null($text)) {
  $field .= tep_output_string_protected($text);
}

$field .= '</textarea>';

return $field;
 }

////
// 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;
 }

Edited by missery
Link to comment
Share on other sites

Do the install again, as despite your 'checking' you have clearly failed to follow the instructions!!!!

 

 

 

ps require("fckeditor/fckeditor.php");

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.

Link to comment
Share on other sites

Do the install again, as despite your 'checking' you have clearly failed to follow the instructions!!!!

 

 

 

ps require("fckeditor/fckeditor.php");

 

 

thanks for your reply , sorry to sound so noobish

 

but what does " ps require("fckeditor/fckeditor.php"); mean ?"

 

can you point me in the right direction , also do you have an updated install guide , i am using this guide

 

this version is compatible with the recent version of oscommerce of 13 November 2005
the version called:
osCommerce 2.2 Milestone 2 Update 051113 


FCKeditor for Product Descriptions
created by Nick Marques 6 Feb 2005

this version include:
- the firts verion created by Nick Marques on 6 Feb 2005-- Nick Marques [email protected] 
6 Feb 2.005 -- Version FCKeditor for Product Descriptions
- the firts fix: Doku-Fix version ,  kofl , 2 Oct 2005
- the second fix: Small Update (added "echo" for tep_draw_fckeditor , ckmuc , 30 Oct 2005
- and a fix to the version osCommerce 2.2 Milestone 2 Update 051113 





DESCRIPTION
-----------
Dir. contribution:
http://www.oscommerce.com/community/contributions,2900
This is my simple MOD to osCommerce 2.2 MS2 that adds the wonderful FCKeditor WYSIWYG 
editor to osCommerce. FCKeditor 2.0 RC2 is the version I am adding, but depending 
on updates, it should work with future versions. I am not a developer of FCKeditor... 
I'm just a user of it describing how to add it to osCommerce. FCKeditor is very easy 
to install and is completely usable sitewide, in place of virtually any textarea or 
textbox. It can be highly customized for your needs or preferences. This describes how 
to install it for editing product descriptions

Demo  FCKeditor: http://www.fckeditor.net/demo/demo02.html


INSTALLATION
-----------
1. Download FCKeditor
http://www.fckeditor.net/

version at 11/18/2.005: FCKeditor 2.1.1

this include a directory called FCKeditor





2. Installation of FCKeditor

2.1 put it in the admin directory
install it at http://www.yoursite.com/admin/FCKeditor/

in

catalog/admin/FCKeditor/


in
http://www.yoursite.com/admin/FCKeditor/_samples/default.html 
you can see a demo



2.2 changeds to files:
----------------------

######## OPEN ########
/admin/categories.php
######################

######## FIND (LINE 538) ########


<td class="main"><?php echo tep_draw_textarea_field('products_description[' . $languages[$i]['id'] . ']', 'soft', '70', '15', (isset($products_description[$languages[$i]['id']]) ? $products_description[$languages[$i]['id']] : tep_get_products_description($pInfo->products_id, $languages[$i]['id']))); ?></td>


#################################

######## REPLACE WITH ########
######## You may edit the 600 and the 300 in ########
######## this line to change the height and  ########
######## width of the editor				 ########


<td class="main"><?php echo tep_draw_fckeditor('products_description[' . $languages[$i]['id'] . ']','600','300',(isset($products_description[$languages[$i]['id']]) ? stripslashes($products_description[$languages[$i]['id']]) : tep_get_products_description($pInfo->products_id, $languages[$i]['id']))); ?></td>



##############################



######## OPEN ########
/admin/includes/functions/html_output.php
######################

######## FIND (LINE 13-14) ########


////
// The HTML href link wrapper function


###################################

######## BEFORE ADD ########


require("FCKeditor/fckeditor.php");


############################

######## 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 ADD ########


////
// 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;
 }


###########################

3. Go to Administration >> Catalog >> Categories/Products
edit any of the products to see the FCKeditor in the description of a product

 

 

 

 

 

 

 

regards

Edited by missery
Link to comment
Share on other sites

Group: Community Member

Posts: 44

Joined: 5-November 06

Member No.: 135,390

 

 

 

 

When I try to do a search for a product or fragrance in my shop I get this message:

 

1146 - Table 'zajanat_oscstore.TABLE_PRODUCTS_IMAGES' doesn't exist

 

select count(distinct p.products_id) as total from products p left join manufacturers m using(manufacturers_id) left join specials s on p.products_id = s.products_id left join TABLE_PRODUCTS_IMAGES pi on p.products_id = pi.products_id , products_description pd, categories c, products_to_categories p2c where p.products_status = '1' and p.products_id = pd.products_id and pd.language_id = '1' and p.products_id = p2c.products_id and p2c.categories_id = c.categories_id and pi.product_page = '1' and ((pd.products_name like '%vanilla%' or p.products_model like '%vanilla%' or m.manufacturers_name like '%vanilla%') )

 

the shop is http://www.zajanatural.com

 

It has been like this for about a week, I have been trying to find a fix. I believe the contrib I installed right before this happened was the FCK html editor, but that works fine (I remember having to tweak it a bit to work for me.) I did try to install more pics but that did not work so I gave up. Can anyone please help me find a solution to this error message? Thanks,

Always grateful for any help received!!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...