![]() |
if you get the document.all error..
this was posted as a fix, seems to work, i no longer get the error ------------------------------- This block of code which calls the function has to be placed specifically after the textarea tags AND before the closing </FORM> tags example: <textarea name = txtAreaName .... etc etc</textarea> <script language="JavaScript1.2" defer> editor_generate("txtAreaName"); </script> </FORM> ---------------------------------- |
4.0.4 Users
4.0.4 Users:
/main/product_details.tpl {* $Id: product_details.tpl,v 1.15.2.3 2004/08/23 12:54:31 max Exp $ *} {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} {capture name=dialog} <TABLE border="0" cellpadding="4" cellspacing="0" width="100%"> <FORM action="product_modify.php" method="POST" name="modifyform"> <INPUT type="hidden" name="productid" value="{$product.productid}"> <INPUT type="hidden" name="section" value="{$section}"> <INPUT type="hidden" name="mode" value="product_modify"> {if $productids ne ''} <TR> <TD width="15" class="TableSubHead"></TD> <TD class="TableSubHead" colspan="2">* {$lng.lbl_note}: {$lng.txt_edit_product_group}</TD> </TR> {/if} {if $config.Appearance.show_thumbnails eq "Y"} <TR> {if $productids ne ''}<TD width="15" class="TableSubHead"></TD>{/if} <TD colspan="2">{include file="main/subheader.tpl" title=$lng.lbl_product_thumbnail}</TD> </TR> <TR> {if $productids ne ''}<TD width="15" class="TableSubHead"><INPUT type="checkbox" value="Y" name="fields[thumbnail]"></TD>{/if} <TD class="ProductDetails" valign="top"><FONT class="FormButton">{$lng.lbl_thumbnail}</FONT> {$lng.lbl_thumbnail_msg}</TD> <TD class="ProductDetails"> {include file="product_thumbnail.tpl" productid=$product.productid image_x=$product.image_x image_y=$product.image_y product=$product.product} <TABLE border="0" cellpadding="0" cellspacing="0" width="100%"> <TR> <TD> <INPUT type="button" value="{$lng.lbl_change_image}" onclick='javascript: if (confirm("{$lng.txt_change_image_text|strip_tags}" )){ldelim}popup_image_selection("T", "{$product.productid}", "{$query_string}");{rdelim}'> <INPUT type="button" value="{$lng.lbl_delete_image}" onclick='javascript: if (confirm("{$lng.txt_change_image_text|strip_tags}" )){ldelim}self.location="product_modify.php?mode=d elete_thumbnail&productid={$product.productid}"{rd elim}'> </TD> <TR> {if $file_upload_data.file_path} <TR> <TD> {$lng.txt_save_thumbnail_note} </TD> </TR> {/if} </TABLE> </TD> </TR> {/if} <TR> {if $productids ne ''}<TD width="15" class="TableSubHead"></TD>{/if} <TD colspan="2"> {include file="main/subheader.tpl" title=$lng.lbl_product_owner}</TD> </TR> <TR> {if $productids ne ''}<TD width="15" class="TableSubHead"></TD>{/if} <TD class="FormButton" width="20%" nowrap>{$lng.lbl_provider}:</TD> <TD class="ProductDetails" width="80%"> {if $usertype eq "A" and $new_product eq 1} <SELECT name="provider" class="InputWidth"> {section name=prov loop=$providers} <OPTION value="{$providers[prov].login}">{$providers[prov].login} ({$providers[prov].title} {$providers[prov].lastname} {$providers[prov].firstname})</OPTION> {/section} </SELECT> {else} {$provider_info.title} {$provider_info.lastname} {$provider_info.firstname} ({$provider_info.login}) {/if} </TD> </TR> <TR> {if $productids ne ''}<TD width="15" class="TableSubHead"></TD>{/if} <TD colspan="2"> {include file="main/subheader.tpl" title=$lng.lbl_classification}</TD> </TR> <TR> {if $productids ne ''}<TD width="15" class="TableSubHead"><INPUT type="checkbox" value="Y" name="fields[categoryid]"></TD>{/if} <TD class="FormButton" nowrap>{$lng.lbl_main_category}:</TD> <TD class="ProductDetails"> <SELECT name="categoryid" class="InputWidth"> {section name=cat_num loop=$allcategories} <OPTION value="{$allcategories[cat_num].categoryid}" {if $allcategories[cat_num].categoryid eq $product.categoryid or $allcategories[cat_num].categoryid eq $default_categoryid}selected{/if}>{$allcategories[cat_num].category_path}</OPTION> {/section} </SELECT> {if $top_message.fillerror ne "" and $product.categoryid eq ""}<FONT class="Star"><<</FONT>{/if} </TD> </TR> <TR> {if $productids ne ''}<TD width="15" class="TableSubHead"><INPUT type="checkbox" value="Y" name="fields[categoryids]"></TD>{/if} <TD class="FormButton" nowrap>{$lng.lbl_additional_categories}:</TD> <TD class="ProductDetails"> <SELECT name="categoryids[]" class="InputWidth" multiple size="8"> {section name=cat_num loop=$allcategories} <OPTION value="{$allcategories[cat_num].categoryid}" {if $allcategories[cat_num].productid eq $product.productid and $product.productid ne "" and $allcategories[cat_num].main ne "Y"}selected{/if}>{$allcategories[cat_num].category_path}</OPTION> {/section} </SELECT></TD> </TR> <TR> {if $productids ne ''}<TD width="15" class="TableSubHead"><INPUT type="checkbox" value="Y" name="fields[forsale]"></TD>{/if} <TD class="FormButton" nowrap>{$lng.lbl_availability}:</TD> <TD class="ProductDetails"> <SELECT name="forsale"> <OPTION value="Y" {if $product.forsale eq "Y"}selected{/if}>{$lng.lbl_avail_for_sale}</OPTION> <OPTION value="H" {if $product.forsale eq "H"}selected{/if}>{$lng.lbl_hidden}</OPTION> <OPTION value="N" {if $product.forsale eq "N"}selected{/if}>{$lng.lbl_disabled}</OPTION> {if $active_modules.Product_Configurator} <OPTION value="B" {if $product.forsale eq "B"}selected{/if}>{$lng.lbl_bundled}</OPTION> {/if} </SELECT> </TD> </TR> {if $product.forsale eq 'H'} <TR> {if $productids ne ''}<TD width="15" class="TableSubHead"><INPUT type="checkbox" value="Y" name="fields[categoryids]"></TD>{/if} <TD class="FormButton" nowrap>{$lng.lbl_product_url}:</TD> <TD class="ProductDetails">{$catalogs.customer}/product.php?productid={$product.productid}&cat={$p roduct.categoryid}</TD> </TR> {/if} <TR> {if $productids ne ''}<TD width="15" class="TableSubHead"></TD>{/if} <TD colspan="2"> {include file="main/subheader.tpl" title=$lng.lbl_details}</TD> </TR> <TR> {if $productids ne ''}<TD width="15" class="TableSubHead"></TD>{/if} <TD class="FormButton" nowrap>{$lng.lbl_sku}:</TD> <TD class="ProductDetails"> <INPUT type="text" name="productcode" size="20" value="{$product.productcode}" class="InputWidth"> </TD> </TR> <TR> {if $productids ne ''}<TD width="15" class="TableSubHead"><INPUT type="checkbox" value="Y" name="fields[product]"></TD>{/if} <TD class="FormButton" nowrap>{$lng.lbl_product_name}:</TD> <TD class="ProductDetails"> <INPUT type="text" name="product" size="45" class="InputWidth" value="{$product.product|escape}"> {if $top_message.fillerror ne "" and $product.product eq ""}<FONT class="Star"><<</FONT>{/if} </TD> </TR> {if $active_modules.Egoods ne ""} {include file="modules/Egoods/egoods.tpl"} {/if} <TR> {if $productids ne ''}<TD width="15" class="TableSubHead"><INPUT type="checkbox" value="Y" name="fields[descr]"></TD>{/if} <TD class="FormButton" nowrap>{$lng.lbl_short_description}* :</TD> <TD class="ProductDetails"> <TEXTAREA name="descr" cols="45" rows="6" class="InputWidth">{$product.descr|escape:"html"}< /TEXTAREA> {if $top_message.fillerror ne "" and $product.descr eq ""}<FONT class="Star"><<</FONT>{/if} </TD> </TR> <TR> {if $productids ne ''}<TD width="15" class="TableSubHead"><INPUT type="checkbox" value="Y" name="fields[fulldescr]"></TD>{/if} <TD class="FormButton" nowrap>{$lng.lbl_det_description}* :</TD> <TD class="ProductDetails"> <TEXTAREA name="fulldescr" cols="45" rows="10" class="InputWidth">{$product.fulldescr|escape:"htm l"}</TEXTAREA> </TD> </TR> <TR> {if $productids ne ''}<TD width="15" class="TableSubHead"></TD>{/if} <TD colspan="2"> {$lng.txt_html_tags_in_description} </TD> </TR> <TR> {if $productids ne ''}<TD width="15" class="TableSubHead"><INPUT type="checkbox" value="Y" name="fields[price]"></TD>{/if} <TD class="FormButton" nowrap>{$lng.lbl_price} ({$config.General.currency_symbol})</TD> <TD> <INPUT type="text" name="price" size="18" value="{if $product.productid eq ""}0.00{else}{ $product.price }{/if}"> {if $top_message.fillerror ne "" and $product.price eq ""}<FONT class="Star"><<</FONT>{/if} </TD> </TR> <TR> {if $productids ne ''}<TD width="15" class="TableSubHead"><INPUT type="checkbox" value="Y" name="fields[list_price]"></TD>{/if} <TD class="FormButton" nowrap>{$lng.lbl_list_price} <SPAN class="Text"> ({$config.General.currency_symbol})</SPAN></TD> <TD> <INPUT type="text" name="list_price" size="18" value="{if $product.productid eq ""}0.00{else}{$product.list_price}{/if}"> </TD> </TR> <TR> {if $productids ne ''}<TD width="15" class="TableSubHead"><INPUT type="checkbox" value="Y" name="fields[avail]"></TD>{/if} <TD class="FormButton" nowrap>{$lng.lbl_quantity_in_stock}</TD> <TD class="ProductDetails"> <INPUT type="text" name="avail" size="18" value="{if $product.productid eq ""}1000{else}{ $product.avail }{/if}"> {if $top_message.fillerror ne "" and $product.avail eq ""}<FONT class="Star"><<</FONT>{/if} </TD> </TR> <TR> {if $productids ne ''}<TD width="15" class="TableSubHead"><INPUT type="checkbox" value="Y" name="fields[low_avail_limit]"></TD>{/if} <TD class="FormButton" nowrap>{$lng.lbl_lowlimit_in_stock}</TD> <TD class="ProductDetails"> <INPUT type="text" name="low_avail_limit" size="18" value="{if $product.productid eq ""}10{else}{ $product.low_avail_limit }{/if}"> {if $top_message.fillerror ne "" and $product.low_avail_limit le 0}<FONT class="Star"><<</FONT>{/if} </TD> </TR> <TR> {if $productids ne ''}<TD width="15" class="TableSubHead"><INPUT type="checkbox" value="Y" name="fields[min_amount]"></TD>{/if} <TD class="FormButton" nowrap>{$lng.lbl_min_order_amount}</TD> <TD class="ProductDetails"> <INPUT type="text" name="min_amount" size="18" value="{if $product.productid eq ""}1{else}{$product.min_amount}{/if}"> </TD> </TR> <TR> {if $productids ne ''}<TD width="15" class="TableSubHead"><INPUT type="checkbox" value="Y" name="fields[weight]"></TD>{/if} <TD class="FormButton" nowrap>{$lng.lbl_weight} ({$config.General.weight_symbol})</TD> <TD class="ProductDetails"> <INPUT type="text" name="weight" size="18" value="{if $product.productid eq ""}0.00{else}{ $product.weight }{/if}"> </TD> </TR> {if $active_modules.RMA ne ''} <TR> {if $productids ne ''}<TD width="15" class="TableSubHead"><INPUT type="checkbox" value="Y" name="fields[return_time]"></TD>{/if} <TD class="FormButton" nowrap>{$lng.lbl_return_time}</TD> <TD class="ProductDetails"> <INPUT type="text" name="return_time" size="18" value="{$product.return_time}"> </TD> </TR> {/if} <SCRIPT type="text/javascript" language="JavaScript 1.2"> <!-- function ChangeTaxesBoxStatus() {ldelim} if (document.modifyform.free_tax.value=='Y') disabled = true; else disabled = false; document.modifyform.elements('taxes[]').disabled = disabled; {rdelim} --> </SCRIPT> <TR> {if $productids ne ''}<TD width="15" class="TableSubHead"><INPUT type="checkbox" value="Y" name="fields[free_tax]"></TD>{/if} <TD class="FormButton" nowrap>{$lng.lbl_tax_exempt}</TD> <TD class="ProductDetails"> <SELECT name="free_tax" onchange="javascript:ChangeTaxesBoxStatus();"> <OPTION value='N' {if ($product.free_tax eq 'N')} selected {/if}>{$lng.lbl_no}</OPTION> <OPTION value='Y' {if ($product.free_tax eq 'Y')} selected {/if}>{$lng.lbl_yes}</OPTION> </SELECT> </TD> </TR> {if $taxes} <TR> {if $productids ne ''}<TD width="15" class="TableSubHead"><INPUT type="checkbox" value="Y" name="fields[taxes]"></TD>{/if} <TD class="FormButton" nowrap>{$lng.lbl_apply_taxes}</TD> <TD> <SELECT name="taxes[]" multiple{if $product.free_tax eq "Y"} disabled{/if}> {section name=tax loop=$taxes} <OPTION value="{$taxes[tax].taxid}"{if $taxes[tax].selected gt 0 and $product.productid ne ""} selected{/if}>{$taxes[tax].tax_name}</OPTION> {/section} </SELECT> {$lng.lbl_hold_ctrl_key} {if $usertype eq "P" or $active_modules.Simple_Mode ne ""} {$lng.lbl_click_here_to_modify_vat}{/if} </TD> </TR> {/if} <TR> {if $productids ne ''}<TD width="15" class="TableSubHead"><INPUT type="checkbox" value="Y" name="fields[free_shipping]"></TD>{/if} <TD class="FormButton" nowrap>{$lng.lbl_free_shipping}</TD> <TD class="ProductDetails"> <SELECT name="free_shipping"> <OPTION value='N' {if ($product.free_shipping eq 'N')} selected {/if}>{$lng.lbl_no}</OPTION> <OPTION value='Y' {if ($product.free_shipping eq 'Y')} selected {/if}>{$lng.lbl_yes}</OPTION> </SELECT> </TD> </TR> <TR> {if $productids ne ''}<TD width="15" class="TableSubHead"><INPUT type="checkbox" value="Y" name="fields[shipping_freight]"></TD>{/if} <TD class="FormButton" nowrap>{$lng.lbl_shipping_freight} ({$config.General.currency_symbol})</TD> <TD class="ProductDetails"> <INPUT type="text" name="shipping_freight" size="18" value="{if $product.shipping_freight eq ""}0.00{else}{$product.shipping_freight}{/if}"> </TD> </TR> <TR> {if $productids ne ''}<TD width="15" class="TableSubHead"><INPUT type="checkbox" value="Y" name="fields[discount_avail]"></TD>{/if} <TD class="FormButton" nowrap>{$lng.lbl_apply_global_discounts}</TD> <TD class="ProductDetails"> <INPUT type="checkbox" name="discount_avail" value="Y" {if $product.productid eq ""}checked{elseif $product.discount_avail eq "Y"}checked{/if}> </TD> </TR> {if $active_modules.Extra_Fields ne ""} {include file="modules/Extra_Fields/product_modify.tpl"} {/if} <TR> <TD colspan="3" align="center"> <INPUT type="submit" value=" {$lng.lbl_save} "></TD> </TR> <script language="JavaScript1.2" defer> editor_generate('fulldescr'); </script> </FORM> </TABLE> {/capture} {include file="dialog.tpl" title=$lng.lbl_product_details content=$smarty.capture.dialog extra="width=100%"} P.S Just one problem: when click on link (name of product) got this mesage: "This page contains both secure and nonsecure items Do you want to display the nonsecure items?" |
Use for full description:
<script language="JavaScript1.2" defer> editor_generate('fulldescr'); </script> Use for short description: <script language="JavaScript1.2" defer> editor_generate('descr'); </script> |
That did it .... Thank YOU! :D
|
Quote:
GM, I may have not had enough sleep these days and am missing something, but can you elaborate on these instructions a bit. I cannot find reference to spell checker nor can I find the line number or close proximity which you refer to for the HTML changes. I understand what you are saying, but am missing where to do the changes. Thanks in advance for the help. |
I would like to thank Emerson for this fine mod and all that helped work out the little bugs due to vs changes.
I just isnstalled this on my site and it looks like a dream. No more need to swap files back and forth between DreamWeaver to add simple html style to the cart. WOO HOO! Anyway, I have the GiftRegistry. The thing I hear more from end users is the lack of html knowledge and their desire for me to "Fix Them Up" with a posting for their event. Well, I thought if this could be worked into the Gift Registry, I would not longer need to "Fix Them Up", I could just sell sell sell. Anyone have any idea on this? I tried playing with the code and I didn't even manage to generate errors. lol Anyway, any help would be much appreciated. Thanks to everyone again! |
bump, anyone at all have an idea?
|
htmlarea3 and x-cart 4.0.9 - Please help
Can anyone offer suggestions to integrate htmlarea3 with X-cart 4.0.9 ?? I need to have the htmlarea3 because of the compatability with Mac - I have read the threads on integrating previous versions.. thought I could just rename the editor.js with the htmlarea.js... with no luck. I'm fairly new to this - any help would be very much appreciated!!
After reading threads in this forum and reading the documentation for htmlarea3 release, I've tried the following combinations: #1 - skin1/single/home.tpl: Code:
<head> skin1/main/product_modify.tpl: Code:
<script language="JavaScript1.2" defer> #2 - skin1/single/home.tpl: Code:
<script type="text/javascript"> skin1/main/product_modify.tpl: Code:
<script type="text/javascript"> I also double-checked my htmlarea folder location. Again, any help would be greatly appreciated!! [/code] |
One thing I notice is the path to htmlarea - you have it listed as ../../htmlarea - when if you loaded into the main x-cart root directory it should just be ../htmlarea -
That do the trick? Instinctual Colorado X-Cart Versions 3.5.x - 4.0.x |
I can't believe that no one has tried to implement this into the Gift registry Mod for end users.
anyone out there? |
Quote:
Mark, I plan on getting to this in the next day or so...in the middle of template design and such. If no one gets to it before I do, I'll have a go at it and have something to share in the next 48 hours. 8) |
Quote:
Sweet! I have been trying to do this and have not been generating errors, but the interface just does not show up for some reason. I have used several different variations of the call tags (for type box area) but none of them have worked so I am missing something here. I will watch closely because I think this will make things better for the end user that knows little to nothing about HTML and use of the Gift Registry. Thanks for your time and efforts!! |
Anyone ever get this working
If so how and what was changed?
Cheers |
remember to wrap any java code in {literal}{/literal} tags
cant see why you need to add code to customer/home.tpl as you only use html area in the admin which is dealt with by single/home.tpl |
Quote:
Need to remember if you wish to add this to the Gift Registry there is a text box for end user to send html greetings, invites and cards to their guests or event goers. The majority of the end users will not know html, so I thought this would be great to add it into this add on. If this is done, it may need to go into the customer/home.tpl, unless the java could go on same page as the text box (in some cases can) |
Quote:
Hooter, were you successful with getting this to work with the Gift Registry yet? I thought I would play with it again this weekend, but did not see if you were successful yet via posting. |
^@markwhoo
Sorry Mark, no I haven't yet - other priorities keep getting in the way :oops: I intend to do it at least for myself in the near term, and will post results as soon as I'm finished. Apologize for the delay. |
Quote:
I totally understand. My pile just keeps getting larger each hour myself. Like I said, I will try to play with this over the weekend as well, so maybe with luck, I can figure out how to get it added. If so, I too will post results. If not, I will watch to see if you have success... :wink: |
Here we go...
HTML Area for the Gift Registry addon 4.x. This assumes that you have the htmlarea directory inside the root of your cart. (eg. /xcart/htmlarea/) Open skin1/customer/home.tpl and in between the <HEAD></HEAD> tags add: Code:
{literal} Now open /skin1/modules/Gift_Registry/event_modify.tpl and find: Code:
<TEXTAREA cols="50" rows="20" name="event_details[html_content]">{$event_data.html_content}</TEXTAREA> Code:
{literal}<script language="JavaScript1.2" defer> And that should do it. HTH ;) |
AAAHHHH,
I was so close. I was using the same call for text area, but only one half or the other at a time. I was trying to mirror the other areas and their text fields and did not take the entire line. Anyway, This works great. For others that use this, remember to look closely at the way your HTML folder location is called. This could cause problems if not in same location. Mine is in site root, not xcart root. Makes a difference as noted by Emerson above. Thanks for the help Emerson, this works great. Now all I need to do is tweak the html interface a bit to allow end user to call up possible templates to use if they know totally nothing, but want a nice layout and then ability for them to personaslize. I think this is going to be a real hit with them. Thanks again. 8) |
WOW, I think I found my answer to the template issue.
Allow end user to pick from a line up of templates that are pre defined and allow them to edit in order to personalize them. I will be working on this for the next little while and when I get it done, if anyone interested I will let you know. Also found a way to load images for the end user to pick from list and insert into their cards, invites etc. This will definately be a huge hit for end users using the Gift Registry and know absolutley nothing about HTML. Now it will appear they know much more... 8) |
Hi,
How do i get this mod woking in 4.0.11? Thanks! |
Quote:
Read the thread. Implement the code. Test your work. AND BACK UP! In case Murphey Sticks his ugly nose in it. :wink: |
I have read the thread - On the 3rd page is code for v4.0.4 but i can not find "/main/product_details.tpl"
Quote:
|
Quote:
Actually, this code works all the way through the thread for all versions, you just need to know what you want and apply it. Where are you wanting to place this editor? Anywhere else you want to place this code, just look for the references, and apply the code, it will work. Any questions, place a post. I am not in your version, but I may be able to help. I am sure others may chime in as well. |
Hi,
I want it for the detailed descriptions when adding/modifying an item. I gave placed the original code into product_modify.tpl but had no luck. (very new to php/xcart) |
Quote:
Did you find the xcart/skin1/main/product_details.tpl ? |
Quote:
Yes i have found that, what code do i place in this file? Also does the code have to be in a particular spot? Thanks again |
Quote:
OK, Here is mine, it is in Version 4.0.11, not sure what your is, may want to edit your details to reflect version if you really want others to help you in the future, it helps due to so many code changes in cart. Now look at my code close, I have made your changes inside the stars, and don't forget to remove the stars or it won't work. Code:
{* $Id: product_details.tpl,v 1.15.2.5 2004/11/05 12:48:25 max Exp $ *} Add what is inside the stars to your file and remove the stars for petes sake, if you don't, it wont work. (BOLD WAS NOT WORKING FOR SOME REASON) Make sure your HTML Text Area File has been uploaded into the root of your site and is configured properly, then test it. Hope this works for ya. Remember to BACK UP ALL FILES!!! |
Thanks heaps, its working now.
Is there a htmlarea version thats compatible with FireFox Browser? |
Quote:
Well, it is possible, but I would imagine it is a special progie and you would have to purchase though AND you would have to do a search that would probably take a while. I know there are multiple versions out there by different companies, but have not looked at them as close as I have this one. AND ITS FREE! With this one, the version 3 beta that was released was just started not too aweful long ago that made it compatible with the mozilla browsers. |
|
How can I remove the default "
" and " </P>" tags. I use CSS for my site and the default tags interfers with this code. TEXT</P> the only place I found the tags was in the editor.js file. I've taken that out and it still exist. Please help! |
Ok, this editor will work on almost all browsers(IE 5.5+, Firefox 1.0+, Mozilla 1.3+ and Netscape 7+)
go here to download FCKeditor: http://prdownloads.sourceforge.net/fckeditor/FCKeditor_2.0rc3.zip?download unzip and upload that to your server 1.Add: Code:
<script type="text/javascript" src="http://www.yoursite.com/FCKeditor/fckeditor.js"></script> To: meta.tpl right after the Code:
{* $Id: meta.tpl,v 1.18.2.4 2004/12/23 12:50:34 svowl Exp $ *} 2.Then go to /main/product_details.tpl and add this Code:
<script type="text/javascript"> Code:
</FORM> and thats it, just make sure that step 1 is pointed to the right spot on your server |
I messed and messed and messed with that damn code. The only thing I can get it to do is to show my "page not found" page where the text area should be. I double quadruple checked my locations, renamed and moved them, updating the line of code along the way to match.
Still won't work. Any ideas? This is FCKEditor btw, not the original code posted by the thread starter. |
the end of product_details.tpl should look like this:
Code:
{if $active_modules.Extra_Fields ne ""} Do the samples that come with fckeditor work? there in the "_samples" folder of your fckeditor folder, if they dont work it might be your server. |
I'm not sure what you mean by "the end". Can you post exactly where that code is to go?
I did as you said, but it messed up my entire page. Here is my code BEFORE: Code:
{* $Id: product_details.tpl,v 1.15.2.5 2004/11/05 12:48:25 max Exp $ *} Here is my code AFTER: Code:
{* $Id: product_details.tpl,v 1.15.2.5 2004/11/05 12:48:25 max Exp $ *} |
your after code is of "product_modify.tpl" not "product_details.tpl" but heres my product_details.tpl code anyways:
Code:
{* $Id: product_details.tpl,v 1.15.2.5 2004/11/05 12:48:25 max Exp $ *} |
Sorry about that. I fixed it. I just copy/paste the wrong code. Either way, it's still telling me page not found.
Here is my meta.tpl file: Code:
{* $Id: meta.tpl,v 1.18.2.4 2004/12/23 12:50:34 svowl Exp $ *} |
try the samples that come with the editor, if they dont work its a problem with your server
you can just copy and paste the code from my product_details.tpl above into yours since we have the same version |
All times are GMT -8. The time now is 03:58 AM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.