osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 

FCKeditor for Product Descriptions

This is a discussion on FCKeditor for Product Descriptions within the New osCommerce Contributions forums, part of the osCommerce 2.2 Forums category; This is my first contribution to osCommerce, and I really don't know if this is going to work for ...


Go Back   osCommerce and osCMax shopping cart software forums > osCommerce 2.2 Forums > New osCommerce Contributions

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Reply

 

LinkBack Thread Tools
  #1  
Old 10-31-2007, 11:33 PM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 9,628
Thanks: 65
Thanked 281 Times in 267 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
Post FCKeditor for Product Descriptions

This is my first contribution to osCommerce, and I really don't know if this is going to work for everyone, but it worked for me so here goes.

I don't know if this matters, but I use GoDaddy.com for my hosting. In order for me to get this contribution to work, I had to include "../" (without the quotes) whenever the path to FCKeditor was referenced.

So for example, where the instructions state to insert the following code in html_output.php:

require("fckeditor/fckeditor.php");


I needed to change the code statement to:

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

Similarly, in the same file, the instructions tell us to insert the following code (also in html_output.php):

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

I had to change the BasePath line to read '../fckeditor/'

If I didn't make these changes, I would end up with a copy of my web site in the editor area, with no editing capabilities at all.

The text file that is included is only the installation instructions for Beaman's update below.

I hope this can help someone out there.

More...
__________________
Michael Sasek
osCMax Developer


osCMax Templates - Hundreds of premium quality templates. New designs every month!

xShop for osCMax - Windows Based osCMax administration. Improved workflow, security, speed and convenience


osCMax Hosting - From basic hosting to High Availability, Load Balanced arrays, the most experienced osCMax host.

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
FCKeditor for Product Descriptions michael_s New osCommerce Contributions 0 10-29-2007 07:47 AM
FCKeditor for Product Descriptions michael_s New osCommerce Contributions 0 10-05-2007 01:02 AM
Product Tabs , for some reason i have 2 Product descriptions theengineer osCMax v2 Customization/Mods 4 04-23-2007 01:07 PM
Product Descriptions coblasingame osCMax v1.7 General Mods Discussion 1 01-29-2006 12:26 PM
Product descriptions not appearing crispin osCMax v2 Installation issues 2 11-04-2005 11:18 PM


All times are GMT -8. The time now is 04:22 AM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
Copyright 2008 osCMax