Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

[Contribution] FCKosc 2.2 Support


Recommended Posts

  • Replies 89
  • Created
  • Last Reply

Top Posters In This Topic

Is there no one who can help me with the problem i mentioned below. :'(

Fantom, it sounds like a permissions issue. Check the permissions you have on your folders. Also, if you're trying to store the image in the root, you might want to try another folder instead. That way it's easy to change the permissions on the folder to see if it is a permissions problem.

Link to comment
Share on other sites

Fantom, it sounds like a permissions issue.  Check the permissions you have on your folders.  Also, if you're trying to store the image in the root, you might want to try another folder instead.  That way it's easy to change the permissions on the folder to see if it is a permissions problem.

Thanks that you're willing to help me :thumbsup:

 

Problem is that i don't see any otner folder in the screen so i don't know were the fck editor is poiting at. How do i change the default image location of the fck editor?

Link to comment
Share on other sites

Hi and thanks for a great contribution computrguru

 

Do you or anyone else know if it is possible to change the html code FCK generates?

 

When creating a new row with Return-button on keyboard you get this code: <br/>

I don't really know if that is a problem, but I have learned to write it like this: <br>

 

Anyone have an idea about this?

 

I will try creating all other stuff with fckeditor soon.

 

BR Oskar aka jollyjim

Link to comment
Share on other sites

Hello,

 

I would like to be able to add the possibility of downloading the image of the product with fckeditor as one could do it with old the wysiwyg.

 

Would have an idea how to put it into practice, that make almost 2 days that I am in trein to seek and I board still not the solution.

 

Please excuse me for my English who is not my language.

Link to comment
Share on other sites

Hello,

 

Following the post above I started to integrate the following code to modify the field image of the products.

 

In admin/includes/fonction/html_output.php to replace:

 

// Output a form filefield
 function tep_draw_file_field($name, $required = false) {
$field = tep_draw_input_field($name, '', '', $required, 'file');

return $field;
 }

 

By:

 

// Output a form filefield
 function tep_draw_file_field($name, $required = false) {
$oFCKeditor = new FCKeditor($name); 
$oFCKeditor->BasePath = HTTP_SERVER . DIR_WS_ADMIN . 'FCKeditor/';
$oFCKeditor->ToolbarSet = 'Image'; 
$oFCKeditor->Width = '435'; 
$oFCKeditor->Height = '400'; 
$oFCKeditor->Value = $html; 

$field = $oFCKeditor->CreateHtml($name);
//$field = tep_draw_input_field($name, '', '', $required, 'file');

return $field;
 }

 

In admin/FCKeditor/fckconfig.js to replace:

 

FCKConfig.ToolbarSets["Image"] = [
['Source','Image','-','About']
];

 

Just below:

 

FCKConfig.ToolbarSets["Basic"] = [
['Bold','Italic','-','OrderedList','UnorderedList','-','Link','Unlink','-','About']
];

ATTENTION to empty your mask in your navigator after modification of the file fckconfig.js

 

In admin/categories.php to replace:

 

case 'new_product_preview':
// copy image only if modified
	$products_image = new upload('products_image');
	$products_image->set_destination(DIR_FS_CATALOG_IMAGES);
	if ($products_image->parse() && $products_image->save()) {
	  $products_image_name = $products_image->filename;
	} else {
	  $products_image_name = (isset($HTTP_POST_VARS['products_previous_image']) ? $HTTP_POST_VARS['products_previous_image'] : '');
	}
	break;

 

by:

 

	  case 'new_product_preview':
// copy image only if modified
  case 'new_product_preview':
	  if (isset($HTTP_POST_VARS['products_image']) && tep_not_null($HTTP_POST_VARS['products_image']) && ($HTTP_POST_VARS['products_image'] != 'none')) {
		$products_image_name = $HTTP_POST_VARS['products_image'];
	  } else {
		$products_image_name = (isset($HTTP_POST_VARS['products_previous_image']) ? $HTTP_POST_VARS['products_previous_image'] : '');
	  }		
	break;

 

Conclusion:

 

Currently fckeditor posts me in source for the image the following code:

 

< img width="649 "height="564" src="/Projets/ms2_avec_fckeditor/boutique/images/Image/g_dg834g.jpg "alt =" "/>

 

Whereas to function correctly it would be necessary to post:

 

Image/g_dg834g.jpg

 

I do not find the solution for reformater the source code which fckeditor gives, the remainder seems well to function.

 

If one can find the solution I could put a new version of the contribution, with the last stable version of fckeditor 2.0

Edited by delaballe
Link to comment
Share on other sites

Hi,

 

Almost everything is working fine with FCK2.2. It's a great contrib :thumbsup:

 

I only have a small issue with inserting an image.

When i click on the insert image button i get a pop-up with three tabs.

On the first tab you can click on "Browse on server"

When i click it i get a screen were i should be able to upload an image.

When i'm trying to upload an image it's not working.

When i try to create i get an error that i don't have the permission to create a directory.

Also i don't see any directory's in the right column.

 

My shop is running from the root so i don't have removed the catalog directory.

I run FCKeditor V2.00 RC3 for OsCommerce 2.2

 

Is there a setting i need to change.

How do i solve this?

 

Thanks in advance.

 

Regards,

Fantom

 

 

I have the same issue.

 

I applied the a fix I found in the connector.php file

 

// Get the "UserFiles" path.
$GLOBALS["UserFilesPath"] = '/';

$GLOBALS["UserFilesDirectory"] = '/home/httpd/vhosts/domain.com/httpdocs/images' . $GLOBALS["UserFilesPath"];

 

 

I don't get any errors when uploading files in FCKeditor. It just says uploading then nothing.

 

If I try and create a new folder it says I don't have permission

 

I have 777 the following folders

 

/images

/images/UserFiles

 

I'm assuming that it's not looking at the right directory but where is it looking???

 

It gives no error messages to debug the problem :(

Link to comment
Share on other sites

  • 3 weeks later...
Somebody know how we can add more than 01 image with fck editor ???

 

got the same question here ... as for the moment we can use a transparent table and insert as many image as we want no !?

MS2

Link to comment
Share on other sites

got the same question here ... as for the moment we can use a transparent table and insert as many image as we want no !?

 

I use fck editor from DELABALLE, when we insert a new item, on the image section, it's write :

 

"do not inseret more then 01 pics"

 

But you say (AZER) that we can add many images because we use a transparent table.

 

Some modification must be do ????

 

Or you can add more than 01 pics on the image section ????

 

I always post this question on french forum, without any response.

 

Post on french forum about fck editor

 

Thanks for all response.

Link to comment
Share on other sites

Ok have nearly got it working, the only thing now is this 404error in products where the editor should be,

 

The requested URL /catalog/admin/path/from/public_html/to/FCKeditor/editor/fckeditor.html was not found on this server.

 

Any help would be appreciated

 

Norri

Link to comment
Share on other sites

  • 4 weeks later...
  • 4 weeks later...

I've got the same image problems as quite a few people who have posted here. The editor works great, until you try and ad an image. I get NO errors, but can not upload an image. It simply waits and waits and nothing happens.

 

I have my persmissions set correctly (I think) - I basically just chmod all of FCK editor and made it all 777. I'm thinking this SHOULD make all of the files contained within the install folder WRITEABLE.

 

Am I missing something here?

 

Please help... I'm lost.

Link to comment
Share on other sites

  • 4 weeks later...

Hi Jody...

I love your work, but when I moved to SSL, my icons and menu bar in define_mainpage disappered.

Here is a post I made, but you might not see it.

My apologies for the really dumb question...I am still a newbie...MANY THANKS!!!

I suspect it is simply an adressing question, but I don't know how to include the subdomain and our SSL...

If I look at the old non-secure interpretation of the same Apache database, it displays perfectly!

:rolleyes:

------------------------------------------------------------------------------------------------

HI there... Please advise...

Strange things happen, sometimes...

The friendly menubar is gone and its generic icons are broken~don't display (only scattered descriptive texts) on

https://secure.oursite.xyz//catalog/admin/d...ne_mainpage.php +++++++

when we went to SSL

 

Everything else is fine, SSL locks down perfectly, etcetera.

Curious and inconvenient, too! Would love to repair it & use it more!

 

...We are using...

 

FCKeditor V2.00 RC3 for OsCommerce 2.2 */

/***************************************************************/

/* Released March 3, 2005 */

/* FCK Editor for OsCommerce 2.2:

 

Anybody know what I missed please? cool.gif

Many Many Thanks for your ideas and suggestions!

Edited by CPRG
Link to comment
Share on other sites

i m using fckeditor 2.00 final and , could u tell me if :

 

1.u got a 100 % usage of your cpu during 5 to 10 seconde when u want to modify a page in admin taht use field with fck editor ( i got a 3800+ athlon 64 cpu !)

 

2. u got a crash of your apache server in local web server like i have each time i click on update and save my product taht i have edited with fck editor ?

 

on this local server under easyphp apache crash : Apache 1.3.27 - PHP 4.3.3 - MySQL 4.0.15 -

on my host no problem : Apache 1.3.33 - PHP 4.4.0 - MySQL 3.23.58 -

 

3.when I click on image then Browse the server , i see the folder catalog/images/Image

where can i configure where the webbroswer open ?

 

4. does someone is intersted on trying to update the fck contribution for oscommerce to fckeditor 2.20 ?

 

best regards my friends

MS2

Link to comment
Share on other sites

  • 4 weeks later...

I am having trouble installing this. I am finding the isntallation instructions hard to understand. I am new to OSC and don't know my way around as far as the file structuring.

 

What is the full path to the catalog folder where I need to install this?

 

The rest I see that I need to cut and replace what is currently there in the files it says.

 

Thanks

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...