osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 

FCK editor showing code with content

This is a discussion on FCK editor showing code with content within the osCommerce 2.2 Modification Help forums, part of the osCommerce 2.2 Forums category; Hi all, Very first post here! I am using FCKeditor for Product Descriptions in my oscommerce install. The problem I'm ...



Find us on Facebook
Go Back   osCommerce and osCMax shopping cart software forums > osCommerce 2.2 Forums > osCommerce 2.2 Modification Help

Connect with Facebook Register FAQDonate Members List Calendar Mark Forums Read


Reply

 

LinkBack Thread Tools
  #1  
Old 09-14-2008, 10:48 AM
Lurker
 
Join Date: Sep 2008
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
praisehim is on a distinguished road
Exclamation FCK editor showing code with content

Hi all,

Very first post here! I am using FCKeditor for Product Descriptions in my oscommerce install. The problem I'm having is that when I code to preview my description, it is mixed with code so for example:

This is a test

would so up as

_/p_This is a test _/p_

How can I change this please? On another server, I have TinymCE installed, but am having no problems with that. Only with this server. During installation I had NO issues, NO error messages. At all. The editor still shows up fine, and when I work within the editor, no code shows. But when I want to preview what I had just written, I get HTML tags mixed up with the content.

Can anyone point me in the right direction?

Thanks
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2  
Old 09-14-2008, 05:38 PM
jpf's Avatar
jpf jpf is offline
Moderator

 
Join Date: Sep 2003
Location: Manitoba, Canada
Posts: 2,681
Thanks: 12
Thanked 214 Times in 196 Posts
Rep Power: 20
jpf has much to be proud ofjpf has much to be proud ofjpf has much to be proud ofjpf has much to be proud ofjpf has much to be proud ofjpf has much to be proud ofjpf has much to be proud ofjpf has much to be proud ofjpf has much to be proud of
Default Re: FCK editor showing code with content

FCKEditor and TinyMCE are two different product to do the same thing.

If you have a plain OSC MS2/MS2a install - recheck all of your editing.

If you have osCMax installed - I can not reproduce this error - please list exactly what you did to have this error.

If you DON'T have osCMax installed - why not try it out. It already has the editor and many other REALLY GOOD things already in it.

See below for links.

Good Luck
__________________
JPF - osCMax Fourm Moderator - To contact, post on the forum or click here
Try out our osCMax at: Live Catalog Demo
Limited access Admin: Live Admin Demo
Feel free to add products they way you want and then purchase them -=+=- Sorry nothing will be billed or shipped!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3  
Old 09-15-2008, 07:07 AM
Lurker
 
Join Date: Sep 2008
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
praisehim is on a distinguished road
Default Re: FCK editor showing code with content

wowwy, i must admit i am very impressed! Its like a super dpper souped up version of osc. I might look into it in the near future, since I have about 2 new e-store in the making right now. btw, I solved my issue. It had something to do with the database.php file stripping (or not stripping) tags. Is it ok if I post the solution here, even though it was from osc? I'm sure it could help somone, but I'm not to sure if thats allowed.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4  
Old 09-15-2008, 07:49 AM
michael_s's Avatar
osCMax Developer


 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 15,758
Thanks: 139
Thanked 609 Times in 521 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
Default Re: FCK editor showing code with content

Yes, go ahead an post the solution. We do not disallow open discussion like other forums
__________________
Michael Sasek
osCMax Developer

*** Do not PM me requesting paid help. The only paid work I do is for AABox Web Hosting customers ***

Stay Up To Date with everything osCMax:
Free osCMax Newsletters - Security notices, New Releases, osCMax News
osCMax on Twitter - Up to the minute info as it happens. Know it first.

osCMax User Manual - osCMax Templates - Advanced Template Tutorial

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5  
Old 08-11-2009, 04:42 AM
New Member
 
Join Date: Aug 2009
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
PoolmanZZ is on a distinguished road
Default Re: FCK editor showing code with content

I too also have a problem but not sure if it is FCK editor or Easy Populate. I fill in the description box with information in WYSIWYG mode as below:




When I create a CSV file for export and edit it in excel or any other editor, it shows the source code in the description column like this:



I do have cells in the description area on a lot of products(just not the one in the picture,I am running the latest version of OScommerce (not beta), the latest version of the FCK editor, latest version of Easy Populate. I would like to remove the code without destroying the description area when I upload the csv file after editing. I did edit EP for the 3 options for export type and had no luck. I have set it back to .csv. My store is presently offline being built. I like to get bugs out before going live.

I have heard a lot of good things about OSmax and considering changing over if it will help my issue.

I tried asking for help in the EP forum but only one person replied and was rather rude. If anyone has a solution or even if there is a different program(s), please let me know. Your help would be greatly appreciated.

Many thanks,

Cory
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6  
Old 08-14-2009, 07:24 AM
jpf's Avatar
jpf jpf is offline
Moderator

 
Join Date: Sep 2003
Location: Manitoba, Canada
Posts: 2,681
Thanks: 12
Thanked 214 Times in 196 Posts
Rep Power: 20
jpf has much to be proud ofjpf has much to be proud ofjpf has much to be proud ofjpf has much to be proud ofjpf has much to be proud ofjpf has much to be proud ofjpf has much to be proud ofjpf has much to be proud ofjpf has much to be proud of
Default Re: FCK editor showing code with content

If you remove the html code then re-upload it - you lost all formatting of the text that was done in the WYSIWYG editor.


Typically what you download though EP is what you also what to upload. So ether setup the field NOT to export/import or download and upload the full diuscription.

Other than that - I don't know what your issue is.
__________________
JPF - osCMax Fourm Moderator - To contact, post on the forum or click here
Try out our osCMax at: Live Catalog Demo
Limited access Admin: Live Admin Demo
Feel free to add products they way you want and then purchase them -=+=- Sorry nothing will be billed or shipped!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7  
Old 08-14-2009, 11:34 AM
New Member
 
Join Date: Aug 2009
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
PoolmanZZ is on a distinguished road
Default Re: FCK editor showing code with content

Quote:
Originally Posted by jpf View Post
If you remove the html code then re-upload it - you lost all formatting of the text that was done in the WYSIWYG editor.


Typically what you download though EP is what you also what to upload. So ether setup the field NOT to export/import or download and upload the full diuscription.

Other than that - I don't know what your issue is.
Actually you answered my question. I was hoping to only download in text format and not loose the html format when uploading. Based on your reply, I don't think it is possible. I thought I was doing something wrong.

I appreciate the reply.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8  
Old 08-14-2009, 03:04 PM
pgmarshall's Avatar
osCMax Development Team
 
Join Date: Feb 2009
Location: London
Posts: 949
Thanks: 59
Thanked 192 Times in 165 Posts
Rep Power: 11
pgmarshall is a splendid one to beholdpgmarshall is a splendid one to beholdpgmarshall is a splendid one to beholdpgmarshall is a splendid one to beholdpgmarshall is a splendid one to beholdpgmarshall is a splendid one to beholdpgmarshall is a splendid one to beholdpgmarshall is a splendid one to behold
Smile Re: FCK editor showing code with content

PoolmanZZ,

jpf is quite right when he says that if you remove the html flags from the field you will lose all the formatting.

If you want to see this in action - go to a product in the admin section and go to FCK editor and click the Source button (top left) and you will see all the tags that the editor has put in for you to make the text come out how you want.

I would have thought that on your site you would want a pretty standard layout for your product descriptions so I would suggest that you upload using the tags created when using EP.

Regards,
__________________
pgmarshall
_______________________________
Test Site: www.cottonbarn.info
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9  
Old 08-14-2009, 05:05 PM
New Member
 
Join Date: Aug 2009
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
PoolmanZZ is on a distinguished road
Default Re: FCK editor showing code with content

Quote:
Originally Posted by pgmarshall View Post
PoolmanZZ,

jpf is quite right when he says that if you remove the html flags from the field you will lose all the formatting.

If you want to see this in action - go to a product in the admin section and go to FCK editor and click the Source button (top left) and you will see all the tags that the editor has put in for you to make the text come out how you want.

I would have thought that on your site you would want a pretty standard layout for your product descriptions so I would suggest that you upload using the tags created when using EP.

Regards,
pgmarshall,

Thanks for the reply. Sorry for the silly question but are you suggesting I would be better off without FCK editor and just use the regular OScommerce format? If you have another suggestion that may accomplish something similar to the editor without all the html code in the download for description I would be very interested in your idea. Possibly a site i can also see where your idea is used. Visual works best for me as I am very green at this but learning quick.

TIA
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10  
Old 08-15-2009, 03:21 AM
pgmarshall's Avatar
osCMax Development Team
 
Join Date: Feb 2009
Location: London
Posts: 949
Thanks: 59
Thanked 192 Times in 165 Posts
Rep Power: 11
pgmarshall is a splendid one to beholdpgmarshall is a splendid one to beholdpgmarshall is a splendid one to beholdpgmarshall is a splendid one to beholdpgmarshall is a splendid one to beholdpgmarshall is a splendid one to beholdpgmarshall is a splendid one to beholdpgmarshall is a splendid one to behold
Smile Re: FCK editor showing code with content

PoolmanZZ,

If you click the source button you can see the actual <html> that will be posted into your store database - this is what you see in easypopulate.

If you do require any html formatting on the text you display in your store then I suggest that you click the 'Source' button and enter the description of the product without any html markup - if you do this then when you use EP it will be just your text.

However, the flip side of this is that you can only enter plain text into your descriptions.

How you do this is up to you ... you could hard code some basic formatting into the product_info page ... but looking at your screen shot - not all your products have the same layout so I would try the following.

Leave the html tags in and simply copy and paste in EP - it is not hard to see how to do this. You can even do it in excel using concatenate ...

Eg.
This is what you have in EP:
Quote:
<tag><tag><b><h1>This is your text</h1></tag></tag>
Take one cell eg. C2 on your sheet
1. Copy and paste the tags before 'This is your text' to a new cell eg. <tag><tag><b><h1> to cell AA1
2. Copy and paste the tags after 'This is your text' to a new cell eg. <tag><tag><b><h1> to cell AA2
3. Type the text you want into cell AA3
4. Type into cell AA4 =concatenate(AA1,AA3,AA2)

This will then create the html tags around plain text for you. So you should be able to enter plain text through EP and add the tags using excel functions - you could even write a macro to go through column C and add generic html tags to the text - same method as above.

Obviously you will need to move the cells around a bit to do this in bulk but hopefully this give you the right idea of what you can do.

Hope this helps,
__________________
pgmarshall
_______________________________
Test Site: www.cottonbarn.info
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads

Thread Thread Starter Forum Replies Last Post
Proforma Content Management - Place Content Anywhere michael_s New osCommerce Contributions 0 05-26-2008 09:22 AM
New customer email - coupon code not showing chrismole osCMax v2 Features Discussion 4 01-14-2007 07:06 PM
Redeem Vouchers Code not showing anywhere fuzioneer osCMax v1.7 Installation 2 06-03-2005 10:51 PM
wysiwyg editor not showing techmatters osCMax v1.7 Installation 7 03-15-2005 05:49 PM
page content not showing up in Google Anonymous osCMax v1.7 Discussion 16 02-11-2004 06:40 AM


All times are GMT -8. The time now is 01:06 AM.


Powered by vBulletin®
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
SEO by vBSEO
Copyright 2009 osCMax
Inactive Reminders By Icora Web Design