Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

Want a WYSIWYG detailed description text area?

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions
 
Thread Tools Search this Thread
  #1  
Old 05-02-2004, 08:27 AM
 
Emerson Emerson is offline
 

X-Man
  
Join Date: Mar 2004
Location: Atlanta, GA
Posts: 2,209
 

Default Want a WYSIWYG detailed description text area?

Does anyone have a need for a WYSIWYG mod for your detailed description text area?

Here is what it looks like...

http://www.ewdhosting.com/images/xcart-wysiwyg.gif

If anyone wants it, I'll put a howto together
__________________
Emerson
Total Server Solutions LLC- Quality X-Cart Hosting
Recommended X-Cart Hosting Provider - US and UK servers
Does your host backup your site? We do EVERY HOUR!!!
Shared Hosting | Managed Cloud | Dedicated Servers
Reply With Quote
  #2  
Old 05-02-2004, 08:46 AM
  adpboss's Avatar 
adpboss adpboss is offline
 

X-Man
  
Join Date: Feb 2003
Location: Ontario, Canada
Posts: 2,389
 

Default

Emerson,

Only finished mods here. Post it!!!

Don't tease us!



Reply With Quote
  #3  
Old 05-02-2004, 09:11 AM
 
Emerson Emerson is offline
 

X-Man
  
Join Date: Mar 2004
Location: Atlanta, GA
Posts: 2,209
 

Default

Hello everyone!
Just a little something you might find usefull.

After installation, you'll be able to use the Full Description are as a WYSIWYG editor. Kind of like FrontPage and Dreamweaver.

You can find details about it at http://www.interactivetools.com/products/htmlarea/documentation.html

Here we go...

First download the file from http://www.ewdhosting.com/htmlarea.zip

Unzip it to your computer and upload the entire 'htmlarea" folder into your xcart root directory (eg: /xcart/htmlarea )

Now open the following (according to your version) and add the following right in between the <head> and </head> tags...

Pro: open /xcart/skin1/admin/home.tpl
Gold: open /xcart/skin1/single/home.tpl

Code:
<head> {literal} <script language="Javascript1.2"><!-- // load htmlarea _editor_url = "../htmlarea/"; // URL to htmlarea files var win_ie_ver = parseFloat(navigator.appVersion.split("MSIE")[1]); if (navigator.userAgent.indexOf('Mac') >= 0) { win_ie_ver = 0; } if (navigator.userAgent.indexOf('Windows CE') >= 0) { win_ie_ver = 0; } if (navigator.userAgent.indexOf('Opera') >= 0) { win_ie_ver = 0; } if (win_ie_ver >= 5.5) { document.write('<scr' + 'ipt src="' +_editor_url+ 'editor.js"'); document.write(' language="Javascript1.2"></scr' + 'ipt>'); } else { document.write('<scr'+'ipt>function editor_generate() { return false; }</scr'+'ipt>'); } // --></script> {/literal} </head>

Now open /xcart/skin1/main/product_modify.tpl and add the following to the top of the file...

Code:
<script language="JavaScript1.2" defer> editor_generate('fulldescr'); </script>

That should be it!

Now log into to admin and try to add or edit a product. Your detailed description box should be just like the screenshot in the first post
__________________
Emerson
Total Server Solutions LLC- Quality X-Cart Hosting
Recommended X-Cart Hosting Provider - US and UK servers
Does your host backup your site? We do EVERY HOUR!!!
Shared Hosting | Managed Cloud | Dedicated Servers
Reply With Quote
  #4  
Old 05-02-2004, 11:10 AM
  70challenger's Avatar 
70challenger 70challenger is offline
 

Advanced Member
  
Join Date: May 2003
Posts: 71
 

Default

I could only find home.tpl in customer, fulfilment and single? Using the lastest 3.5 xcart version.
Reply With Quote
  #5  
Old 05-02-2004, 11:29 AM
 
Emerson Emerson is offline
 

X-Man
  
Join Date: Mar 2004
Location: Atlanta, GA
Posts: 2,209
 

Default

That is weird!
You should definitely have that file in the admin directory.
__________________
Emerson
Total Server Solutions LLC- Quality X-Cart Hosting
Recommended X-Cart Hosting Provider - US and UK servers
Does your host backup your site? We do EVERY HOUR!!!
Shared Hosting | Managed Cloud | Dedicated Servers
Reply With Quote
  #6  
Old 05-02-2004, 11:31 AM
  adpboss's Avatar 
adpboss adpboss is offline
 

X-Man
  
Join Date: Feb 2003
Location: Ontario, Canada
Posts: 2,389
 

Default

it's single/home.tpl
Reply With Quote
  #7  
Old 05-02-2004, 01:49 PM
 
Emerson Emerson is offline
 

X-Man
  
Join Date: Mar 2004
Location: Atlanta, GA
Posts: 2,209
 

Default

Sorry about the mix up.
I have updated the howto to show which file to edit depending on your version of xcart
__________________
Emerson
Total Server Solutions LLC- Quality X-Cart Hosting
Recommended X-Cart Hosting Provider - US and UK servers
Does your host backup your site? We do EVERY HOUR!!!
Shared Hosting | Managed Cloud | Dedicated Servers
Reply With Quote
  #8  
Old 05-04-2004, 04:25 AM
 
POSDepot POSDepot is offline
 

Advanced Member
  
Join Date: Sep 2002
Posts: 52
 

Default htmlarea - working?

Looking for confirmation that someone else has this working?

I'm on 3.5.3 Gold and I can't seem to get the HTML editor to show up.

Randy
Reply With Quote
  #9  
Old 05-04-2004, 04:52 AM
  carlisleglass's Avatar 
carlisleglass carlisleglass is offline
 

eXpert
  
Join Date: Aug 2003
Location: Carlisle, UK
Posts: 316
 

Default

I'm running v3.5.7 and it aint showing up on mine either !
__________________
Darren Kierman
Carlisle Glass (http://www.carlisleglass.co.uk/)
... running X-Cart Gold 4.4.5 [unix]
Reply With Quote
  #10  
Old 05-04-2004, 04:54 AM
 
Emerson Emerson is offline
 

X-Man
  
Join Date: Mar 2004
Location: Atlanta, GA
Posts: 2,209
 

Default

Please post the path to your xcart install and the path for the htmlarea directory.
__________________
Emerson
Total Server Solutions LLC- Quality X-Cart Hosting
Recommended X-Cart Hosting Provider - US and UK servers
Does your host backup your site? We do EVERY HOUR!!!
Shared Hosting | Managed Cloud | Dedicated Servers
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 08:36 AM.

   

 
X-Cart forums © 2001-2020