View Single Post
  #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