lateralus Posted April 27, 2007 Share Posted April 27, 2007 Please, can anybody send or post his admin/categories.php file to configure the image part of the contrib???<br>That would be very nice cz I'm not the only one not to understand this stuff ;)<br>I had a look at the CRELOADED, but TinyMCE seems not to be integrated the same way <img style="vertical-align: middle;" emoid=":blink:" src="http://www.oscommerce.com/forums/style_emoticons/default/blink.gif" border="0"><br><br> Quote sub-total (tax free), Bookmark, Browse by Categories 2.5, Category box enhancement, Contact us choice 1.0.1, Featured products 1.5.5.1, MultiGeoZone MultiTable Shipping 1.101, Os Active Desktop 2.3, Paymenttypes 1.2, Phpmyvisites 2.1, Session counter, Skype Contact 1.0, Stats products per month 1, Store Pick Up Version 1.4, Updated spiders.txt, Who's Online Enhancement 2.00, BackButtons, Google Analytics, stats_sales_csv_1.2, google_position_1.3, Customers List Improved 1.4, boxe defilante Link to comment Share on other sites More sharing options...
lateralus Posted April 27, 2007 Share Posted April 27, 2007 Please, can anybody send or post his admin/categories.php file to configure the image part of the contrib??? That would be very nice cz I'm not the only one not to understand this stuff :rolleyes: I had a look at the CRELOADED, but TinyMCE seems not to be integrated the same way :'( Quote sub-total (tax free), Bookmark, Browse by Categories 2.5, Category box enhancement, Contact us choice 1.0.1, Featured products 1.5.5.1, MultiGeoZone MultiTable Shipping 1.101, Os Active Desktop 2.3, Paymenttypes 1.2, Phpmyvisites 2.1, Session counter, Skype Contact 1.0, Stats products per month 1, Store Pick Up Version 1.4, Updated spiders.txt, Who's Online Enhancement 2.00, BackButtons, Google Analytics, stats_sales_csv_1.2, google_position_1.3, Customers List Improved 1.4, boxe defilante Link to comment Share on other sites More sharing options...
lateralus Posted April 27, 2007 Share Posted April 27, 2007 Ouuups, sorry about the lasts posts ;)  TinyMCE & reviews :  1/ Copy the tiny_mce folder to your folder catalog/includes/javascript/  2/ Add between <head></head> in catalog/product_reviews_write.php  <head>.... <?php $mce_str = 'product_reviews_write'; echo '<script language="javascript" type="text/javascript" src="includes/javascript/tiny_mce/tiny_mce.js"></script>'; include "includes/javascript/tiny_mce/general.php";?> ...</head>  3/ Configure some settings in catalog/includes/javascript/tiny_mce/general.php  <script language="javascript" type="text/javascript"> // Configuration file for tinyMCE editor: general tinyMCE.init({ mode : "textareas", elements: "<?php echo $mce_str ?>", language: "fr", theme : "advanced", plugins : "advhr,advimage,advlink,iespell,contextmenu,paste,autosave,emotions", theme_advanced_buttons1 : "fontselect,fontsizeselect,forecolor,backcolor,bullist,numlist", theme_advanced_buttons2 : "undo,redo,cut,copy,paste,pastetext,pasteword,link,unlink,image", theme_advanced_buttons3 : "",  fullscreen_settings : { theme_advanced_path_location : "top"}, document_base_url : "<?php echo HTTP_SERVER.DIR_WS_CATALOG ?>", content_css : "<?php echo HTTP_SERVER.DIR_WS_CATALOG ?>stylesheet.css", external_image_list_url : "tinymce_images.js.php", width : "100%", height : "350", //theme_advanced_disable : "image", theme_advanced_toolbar_location : "top", theme_advanced_toolbar_align : "left", theme_advanced_path_location : "bottom", extended_valid_elements : "a[name|href|target|title|onclick],img[class|src|border=0|alt|title|hspace|v space|width|height|align|onmouseover|onmouseout|name],hr[class|width|size|noshade ],font[face|size|color|style],span[class|align|style]" }); </script>  4/ For those who uses the french translation, the file is totally wrong catalog/includes/javascript/tiny_mce/plugins/advimage/langs/fr.js  DOWNLOAD MY FILES HERE Quote sub-total (tax free), Bookmark, Browse by Categories 2.5, Category box enhancement, Contact us choice 1.0.1, Featured products 1.5.5.1, MultiGeoZone MultiTable Shipping 1.101, Os Active Desktop 2.3, Paymenttypes 1.2, Phpmyvisites 2.1, Session counter, Skype Contact 1.0, Stats products per month 1, Store Pick Up Version 1.4, Updated spiders.txt, Who's Online Enhancement 2.00, BackButtons, Google Analytics, stats_sales_csv_1.2, google_position_1.3, Customers List Improved 1.4, boxe defilante Link to comment Share on other sites More sharing options...
MnM Posted May 8, 2007 Share Posted May 8, 2007 You are right, there is a problem with the ACA module for tinyMCE Anywhere when used with PHP5. I'll have a look at it and post the solution on the ACA forum when I found it (the solution). - Rigadin2  Hi,  Did you find a solution for this problem? One.com will be upgrading to php 4.1 any day now in preparation for a general upgrade to php 5 so I will need a solution soon.  Thans in advance.  MnM Quote Link to comment Share on other sites More sharing options...
Guest Posted May 9, 2007 Share Posted May 9, 2007 I just posted a new file for tinyMCE Anywhere images, the init file now forced tinyMCE to return the image path with the server info. In some configurations, the server was not returned it in front of the absolute path and it was causing problems. Â For ACA users, the module pack has been updated and modules are now PHP5 compatible. Â Chris Quote Link to comment Share on other sites More sharing options...
MnM Posted May 10, 2007 Share Posted May 10, 2007 Hey Chris, Â I tried your updates (tinymce & aca modules), uploaded all the new files and changed to php5 but have a problem now with the Products Image box. I no longer get the iBrowser upload window here. IBrowser does work however in the text editer. Any idea what is causing this. I changed back to php4 but that did not help. Â MnM Quote Link to comment Share on other sites More sharing options...
MnM Posted May 10, 2007 Share Posted May 10, 2007 Hey Chris, I tried your updates (tinymce & aca modules), uploaded all the new files and changed to php5 but have a problem now with the Products Image box. I no longer get the iBrowser upload window here. IBrowser does work however in the text editer. Any idea what is causing this. I changed back to php4 but that did not help.  MnM  Think I found the solution. I changed the new product_image_abs.php into product_image.php but then the code in your tinymce.php has to be changed instead of the categories.php as you stated in your helpfile. No? Problem was solved when I upped the product_image_abs.php file.  MnM Quote Link to comment Share on other sites More sharing options...
Guest Posted May 16, 2007 Share Posted May 16, 2007 Is any body seeing Source code displayed in the comments section. ( Admin > Orders > edit) When I edit the order and insert comments with the order it displays the source code once updated. I have installed the TinyMCE contribution with an HTML fix that helped when sending emails to they to dont display HTML in the Email also. Â So the comments is the area at the bottom of every order with a history of the orders progress. EXAMPLE: <p>Thank you for your order,we will dispatch first thing tomorrow morning.</p><p>Best regards</p> Â Can any body help here? Quote Link to comment Share on other sites More sharing options...
Guest Posted May 16, 2007 Share Posted May 16, 2007 The comment box is showing the text saved in database, so html tags are displayed too. You should filter the text before displaying it, in admin as well as in catalog where customer can see comments. There is a php function to remove html tags, but cant remember which one. Â - Chris Quote Link to comment Share on other sites More sharing options...
redfoxmedia Posted May 23, 2007 Share Posted May 23, 2007 I just posted a new file for tinyMCE Anywhere images, the init file now forced tinyMCE to return the image path with the server info. In some configurations, the server was not returned it in front of the absolute path and it was causing problems.  For ACA users, the module pack has been updated and modules are now PHP5 compatible.  Chris   Hi Chris,  I have just installed this contrib and it appears to be working! Thanks alot for your hard work! I have also just installed the update for "product_image_abs.php which you posted on 09/05/2007 - I have read through the install intructions and I am just a bit stuck on:  3b) If you are not using ACA, you should have somewhere a function that cleans the code tinyMCE is sending. Update that function to:   function _filter_save_image ($products_delete_image) { $products_delete_image = htmlspecialchars(stripslashes($products_delete_image)); $products_delete_image = ereg_replace('<img ', '', $products_delete_image); // Remove: <img $products_delete_image = ereg_replace('src=', '', $products_delete_image); // Remove: src= $products_delete_image = ereg_replace('"', '', $products_delete_image); // Remove: " $products_delete_image = ereg_replace('/>', '', $products_delete_image); // Remove: /> $products_delete_image = ereg_replace(HTTP_SERVER.DIR_WS_CATALOG . DIR_WS_IMAGES, '', $products_delete_image); // Remove: absolute path return $products_delete_image; }  I am not using ACA and I am not sure where to find that fiunction you mention.  Please help!!  Thanks  Lance Quote Link to comment Share on other sites More sharing options...
m_ring2003 Posted May 30, 2007 Share Posted May 30, 2007 Hi Chris and Everyone, Â I've installed this successfully and it works great! Â On the tinymce editor for the admin/newsletters.php page (likewise for mail.php), when I click on the insert image button (integrated in the editor), I can select any images from a drop-down list. But it also means that I got to goto "File Manager or FTP" to upload images first. Is that right? Any way to counter this? Â Cos previously i used FCKeditor and was able to upload images via the editor itself. Â Hope to hear from you guys. Â Many thanks and cheers Quote Link to comment Share on other sites More sharing options...
Guest Posted June 7, 2007 Share Posted June 7, 2007 Help!!!!  I have lost my images using the iBrowser feature. I dont know how this has happened. I also dont know what file(s) to fix! ON some products my preview image is broken! The link reads as follows in my admin panel while editing a product:  http://989gear.com//EV05.jpg  On my other products that are fine they look like this:   ../../../../../catalog/images/Jordans%202%2005F.jpg  And now every image I add for previews looks broken! Can someone please tell me what file I have to "fix"  Can someone please help!!!? Quote Link to comment Share on other sites More sharing options...
redfoxmedia Posted June 11, 2007 Share Posted June 11, 2007 Hi Chris,  I have just installed this contrib and it appears to be working! Thanks alot for your hard work! I have also just installed the update for "product_image_abs.php which you posted on 09/05/2007 - I have read through the install intructions and I am just a bit stuck on:  3b) If you are not using ACA, you should have somewhere a function that cleans the code tinyMCE is sending. Update that function to: function _filter_save_image ($products_delete_image) { $products_delete_image = htmlspecialchars(stripslashes($products_delete_image)); $products_delete_image = ereg_replace('<img ', '', $products_delete_image); // Remove: <img $products_delete_image = ereg_replace('src=', '', $products_delete_image); // Remove: src= $products_delete_image = ereg_replace('"', '', $products_delete_image); // Remove: " $products_delete_image = ereg_replace('/>', '', $products_delete_image); // Remove: /> $products_delete_image = ereg_replace(HTTP_SERVER.DIR_WS_CATALOG . DIR_WS_IMAGES, '', $products_delete_image); // Remove: absolute path return $products_delete_image; }  I am not using ACA and I am not sure where to find that fiunction you mention.  Please help!!  Thanks  Lance  has anyone got the answer to this? Quote Link to comment Share on other sites More sharing options...
Guest Posted June 12, 2007 Share Posted June 12, 2007 Hi Chris and Everyone, I've installed this successfully and it works great!  On the tinymce editor for the admin/newsletters.php page (likewise for mail.php), when I click on the insert image button (integrated in the editor), I can select any images from a drop-down list. But it also means that I got to goto "File Manager or FTP" to upload images first. Is that right? Any way to counter this?  Cos previously i used FCKeditor and was able to upload images via the editor itself.  Hope to hear from you guys.  Many thanks and cheers  The insert image button you are speaking about is the one that comes with tinyMCE and has no upload function. The solution is to use iBrowser or buy the image manager from the makers of tinyMCE.   If somebody has successfuly installed this contribution into categories.php, please post your code/instructions on the contribution page. I'm using ACA so I don't need to modify categories.php, and I won't do it just for fun.  - Chris Quote Link to comment Share on other sites More sharing options...
lenamtl Posted July 20, 2007 Share Posted July 20, 2007 Hi, Â quick question about background color css of the editor. it is tacking my site background color which is black, and want the editor background another color. Â I used to fix it once in another application. Â could you point me which files to modify? Â thanks Quote Lenamtl Link to comment Share on other sites More sharing options...
lenamtl Posted July 21, 2007 Share Posted July 21, 2007 Hi, quick question about background color css of the editor. it is tacking my site background color which is black, and want the editor background another color.  I used to fix it once in another application.  could you point me which files to modify?  thanks  ok I solved it!  we need to add this to the site css  body.mceContentBody { background: #FFF; } Quote Lenamtl Link to comment Share on other sites More sharing options...
lenamtl Posted July 21, 2007 Share Posted July 21, 2007 (edited) Hi,  I like to use Tiny with Contribution Title: edit pages info http://www.oscommerce.com/community/contri...,edit_pagesinfo   I don't understand how to implement the editor on other page...  TinyMCE in other placesIf you have installed article manager, define mainpage, extra pages or whatever where tinyMCE is useful, you can do so: - place in $mce_str the list of textareas where tinyMCE is to be used. - between <head> and </head>, place this code:  $mce_str = YOURCODEHERE // Comma separated list of textarea names // You can add more textareas to convert in the $mce_str, be careful that they are all separated by a comma. echo '<script language="javascript" type="text/javascript" src="includes/javascript/tiny_mce/tiny_mce.js"></script>'; include "includes/javascript/tiny_mce/general.php";   any help appreciate Edited July 21, 2007 by lenamtl Quote Lenamtl Link to comment Share on other sites More sharing options...
Guest Posted July 22, 2007 Share Posted July 22, 2007 Hi all  I have just installed this and I am getting the following error messages in ASA categories but so far no error messages in products: I am a novice to osCommerce and would be VERY grateful if someone can spare the time to help me resolve this. I am sure I am just doing something really stupid.  Thank you  Mick  Warning: main(includes/functions/categories_description.php): failed to open stream: No such file or directory in /hsphere/local/home/goslas/xxxx.co.uk/admin/includes/modules/categories/category_description.php on line 14  Warning: main(includes/functions/categories_description.php): failed to open stream: No such file or directory in /hsphere/local/home/goslas/xxxx.co.uk/admin/includes/modules/categories/category_description.php on line 14  Warning: main(includes/functions/categories_description.php): failed to open stream: No such file or directory in /hsphere/local/home/goslas/xxxx.co.uk/admin/includes/modules/categories/category_description.php on line 14  Warning: main(): Failed opening 'includes/functions/categories_description.php' for inclusion (include_path='.:/usr/local/lib/php:/usr/local/share/pear') in /hsphere/local/home/goslas/xxxx.co.uk/admin/includes/modules/categories/category_description.php on line 14  Category Description 1 Htmlarea 1.7 Javascript for categories Jpsy image uploader 3 TinyMCE for category description 5 Header Tags Controller 1 Module Directory: /hsphere/local/home/goslas/xxxxx.co.uk/admin/includes/modules/categories/ Htmlarea 1.7 Wysywyg Editor for category description   Htmlarea 1.7 Editor for category description (module v2.0)  Enable Html Area 1.7 True  Sort order of process. 3 Quote Link to comment Share on other sites More sharing options...
Guest Posted July 22, 2007 Share Posted July 22, 2007 This is the information from the category_description.php for the above problem.  <?php /* $Id: category_description.php,v 2.2 2006/04/28 Rigadin 22:26:32 Exp $  osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com  Copyright © 2005 osCommerce  Released under the GNU General Public License * ACA2 category module for Category Description v1.9 by Rigadin ([email protected]) */  include (DIR_WS_FUNCTIONS.'categories_description.php'); // Includes some functions needed for this contribution  class category_description { var $code, $title, $description, $sort_order, $enabled, $is_image_handler, $cInfo;  // class constructor function category_description() { $this->code = 'category_description'; $this->title = MODULE_ACACAT_CATDESC_TEXT_TITLE; $this->description = MODULE_ACACAT_CATDESC_TEXT_DESCRIPTION . ' (module v2.2)'; $this->sort_order = MODULE_ACACAT_CATDESC_SORT_ORDER; $this->enabled = (ALLOW_CATEGORY_DESCRIPTIONS == 'true');  $this->is_image_handler=false; $this->cInfo = new objectInfo(array('categories_heading_title' =>'')); } // class contructor end  function set_image_handler (&$handler) { //Returns own name if want to take care of saving images. Otherwise returns $handler. Called only if module enabled $handler=$this->code; }  function check_action($actions){ global $HTTP_POST_VARS; //This happens when going from category preview (if used) back to edit: if (isset($HTTP_POST_VARS['cedit_x']) || isset($HTTP_POST_VARS['cedit_y'])){ $actions['action'] = 'edit_category_ACD'; $actions['display_file']='categories_edit.php'; $actions['action_class']=''; $actions['action_method']=''; // If category description is used, send to full page editor instead of right panel } elseif ((($actions['action']=='new_category')OR ($actions['action']=='edit_category'))) { $actions['action']=$actions['action'].'_ACD'; $actions['display_file']='categories_edit.php'; $actions['action_class']=''; $actions['action_method']=''; } elseif ($actions['action']=='new_category_preview') { $actions['display_file']='categories_preview.php'; $actions['action_class']=''; $actions['action_method']=''; if (($this->is_image_handler)AND($HTTP_POST_VARS)) { // Take care of image if necessary $categories_image = new upload($this->code.'__categories_image'); echo 'UPLOAD'; $categories_image->set_destination(DIR_FS_CATALOG_IMAGES); if ($categories_image->parse() && $categories_image->save()) { $HTTP_POST_VARS[$this->code]['categories_image'] = $categories_image->filename; } else { $HTTP_POST_VARS[$this->code]['categories_image'] = $HTTP_POST_VARS[$this->code]['categories_previous_image']; } } } return $actions; }  function insert_table_categories_description (&$sql_data_array, $languages_id) { // This function returns an array with variables to insert into TABLE_CATEGORIES_DESCRIPTION $sql_data_array['categories_heading_title'] = $this->cInfo->categories_heading_title[$languages_id]; $sql_data_array['categories_description'] = $this->cInfo->categories_description[$languages_id]; }  function update_table_categories_description (&$sql_data_array, $languages_id) { $sql_data_array['categories_heading_title'] = $this->cInfo->categories_heading_title[$languages_id]; $sql_data_array['categories_description'] = $this->cInfo->categories_description[$languages_id]; }  function after_update ($categories_id) { if (isset($this->cInfo->categories_image) && tep_not_null($this->cInfo->categories_image)){ if ($this->cInfo->categories_image == 'none') $save_image = ''; else $save_image = $this->cInfo->categories_image; tep_db_query("update " . TABLE_CATEGORIES . " set categories_image = '" . $save_image . "' where categories_id = '" . (int)$categories_id . "'"); } }  function load_db_values ($categories_id) { $arr=array(); $categories_query = tep_db_query("SELECT categories_image FROM " . TABLE_CATEGORIES ." WHERE categories_id = '" . (int)$categories_id . "'"); $categories = tep_db_fetch_array($categories_query); $this->cInfo->objectInfo($categories); $languages = tep_get_languages(); for ($i=0, $n=sizeof($languages); $i<$n; $i++) { $languages_id = $languages[$i]['id']; // Load product parameters from database, called when editing a product $category_query = tep_db_query("SELECT categories_description, categories_heading_title FROM " . TABLE_CATEGORIES_DESCRIPTION . " WHERE categories_id = '" . (int)$categories_id . "' and language_id = '" . (int)$languages_id . "'"); $category = tep_db_fetch_array($category_query); $arr['categories_description'][$languages_id]=$category['categories_description']; $arr['categories_heading_title'][$languages_id]=$category['categories_heading_title']; } // End for each language $this->cInfo->objectInfo($arr); }  function load_post_values ($post) { global $HTTP_POST_VARS; // Should use $post passed as parameter!! // The $post contains only post values for this module // cInfo is an array [field name]=value, for not language-specific parameters // [field name][language id]=value for language-specific parameters $this->cInfo->objectInfo ($post); }  function repost_values () { // Repost all values that are not arrays foreach ($this->cInfo as $key=>$val) { if (!is_array($val)) { echo tep_draw_hidden_field($this->code .'['.$key.']', stripslashes($val))."\n"; } // end if } // end for for each pInfo $languages = tep_get_languages(); for ($i=0, $n=sizeof($languages); $i<$n; $i++) { echo tep_draw_hidden_field($this->code .'[categories_heading_title][' . $languages[$i]['id'] . ']', htmlspecialchars(stripslashes($this->cInfo->categories_heading_title[$languages[$i]['id']])))."\n"; echo tep_draw_hidden_field($this->code .'[categories_description][' . $languages[$i]['id'] . ']', htmlspecialchars(stripslashes($this->cInfo->categories_description[$languages[$i]['id']])))."\n"; } } // end function  function display_edit(&$contents){ // Displayed in the right panel $category_inputs_string = ''; $languages = tep_get_languages(); for ($i = 0, $n = sizeof($languages); $i < $n; $i++) { if ($i==0) $title=TEXT_EDIT_CATEGORIES_HEADING_TITLE; else $title=''; $category_inputs_string = tep_image(DIR_WS_CATALOG_LANGUAGES . $languages[$i]['directory'] . '/images/' . $languages[$i]['image'], $languages[$i]['name']) . ' ' . tep_draw_input_field($this->code.'[categories_heading_title][' . $languages[$i]['id'] . ']', $this->cInfo->categories_heading_title[$languages[$i]['id']]); $contents[] = array('text' => $title.'<BR>'.$category_inputs_string); }//end foreach language  for ($i = 0, $n = sizeof($languages); $i < $n; $i++) { $languages_id=$languages[$i]['id']; if ($i == 0) $title= TEXT_EDIT_CATEGORIES_DESCRIPTION; else $title=''; $m=' <table border="0" cellspacing="0" cellpadding="0">'."\n"; $m.=' <tr>'."\n"; $m.=' <td class="main" valign="top">' .tep_image(DIR_WS_CATALOG_LANGUAGES . $languages[$i]['directory'] . '/images/' . $languages[$i]['image'], $languages[$i]['name']).' </td>'."\n"; $m.=' <td class="main">' .tep_draw_textarea_field($this->code.'[categories_description][' . $languages[$i]['id'] . ']', 'soft', '70', '15', $this->cInfo->categories_description[$languages[$i]['id']] ).'</td>'."\n"; $m.=' </tr>'."\n"; $m.=' </table>'."\n"; $contents []= array ('text' => $title.'<BR>'.$m);   }//end foreach language if ($this->is_image_handler) { $contents['image'] = array('text' => TEXT_EDIT_CATEGORIES_IMAGE . '<BR>' . tep_draw_file_field('categories_image').'<BR>'.$this->cInfo->categories_image .' '. tep_draw_hidden_field($this->code.'[categories_previous_image]', $this->cInfo->categories_image)); } }//end method  function display_preview(&$contents, $languages) { // Only when preview is shown on a full page $contents []= array('text'=>$this->cInfo->categories_description[$languages['id']], 'params' => 'class="main"'); }  //===================================== // Functions for modules administration //=====================================  function check() { if (!isset($this->_check)) { $check_query = tep_db_query("select configuration_value from " . TABLE_CONFIGURATION . " where configuration_key = 'ALLOW_CATEGORY_DESCRIPTIONS'"); $this->_check = tep_db_num_rows($check_query); } return $this->_check; }  function install() { tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) values ('Enable Category Description', 'ALLOW_CATEGORY_DESCRIPTIONS', 'true', 'Do you use Category Description? ', '6', '1', 'tep_cfg_select_option(array(\'true\', \'false\'), ', now())"); tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Sort order of process.', 'MODULE_ACACAT_CATDESC_SORT_ORDER', '1', 'Sort order of process. Lowest is processed first.', '6', '0', now())"); }  function remove() { tep_db_query("delete from " . TABLE_CONFIGURATION . " where configuration_key in ('" . implode("', '", $this->keys()) . "')"); }  function keys() { return array('ALLOW_CATEGORY_DESCRIPTIONS', 'MODULE_ACACAT_CATDESC_SORT_ORDER'); }  } //class end ?> Quote Link to comment Share on other sites More sharing options...
Guest Posted July 26, 2007 Share Posted July 26, 2007 The ACA module for category description does not include the category description contribution. Download the contribution, copy the missing file to its destination and make also the needed modifications on the catalog side. Â - Chris Quote Link to comment Share on other sites More sharing options...
Guest Posted July 26, 2007 Share Posted July 26, 2007 The ACA module for category description does not include the category description contribution. Download the contribution, copy the missing file to its destination and make also the needed modifications on the catalog side. - Chris  Thanks for the advice, unfortunately there are several category description contributions and I could not find the one which needed me to copy a file. Would you be so kind as to paste a link for me.  Thanks  Michael Quote Link to comment Share on other sites More sharing options...
Guest Posted July 26, 2007 Share Posted July 26, 2007 Hi  I think I found the correct one. I have installed the file and edited the files along with updating the sql.  I am not getting this error when I select catalog in admin  Parse error: parse error, unexpected T_CASE in /hsphere/local/home/goslas/xxxx.co.uk/admin/categories.php on line 173  173 if (USE_CACHE == 'true') { 174 tep_reset_cache_block('categories'); 175 tep_reset_cache_block('also_purchased'); 176 }  I am also getting the following error in ACA for categories  Fatal error: Cannot redeclare do_magic_quotes_gpc() (previously declared in /hsphere/local/home/goslas/themagiccompany.co.uk/admin/includes/functions/compatibility.php:18) in /hsphere/local/home/goslas/themagiccompany.co.uk/admin/includes/functions/compatibility.php on line 18   Any help would be gratefully appreciated  Sorry im a newbie !!  Michael Quote Link to comment Share on other sites More sharing options...
GvdS Posted July 27, 2007 Share Posted July 27, 2007 I am also looking for more info on how to add the TinyMCE to other places. I have added a categories description contribution, and I would like to use the TinyMCE editor for the description textarea. I am changing the admin\categories.php  When I look at the code I have changed it to this, but now TinyMCE is also gone by the product description  <?php // START tinyMCE Anywhere if ($action == 'new_product') { // No need to put JS on all pages. $languages = tep_get_languages(); // Get all languages // Build list of textareas to convert for ($i = 0, $n = sizeof($languages); $i < $n; $i++) { $str.="products_description[".$languages[$i]['id']."],"; $str2.="categories_description[".$languages[$i]['id']."],"; } //end for each language $mce_str = rtrim ($str,$str2,","); // Removed the last comma from the string. // You can add more textareas to convert in the $str, be careful that they are all separated by a comma. echo '<script language="javascript" type="text/javascript" src="includes/javascript/tiny_mce/tiny_mce.js"></script>'; include "includes/javascript/tiny_mce/general.php"; } // END tinyMCE Anywhere ?>  Is this the way to do it? Please give some pointers on how to add TinyMCE to other textareas. Quote Link to comment Share on other sites More sharing options...
Guest Posted July 27, 2007 Share Posted July 27, 2007 The code you modified starts with  if ($action == 'new_product') { Which means that it will be processed only when editing a product, so won't work for categories.  Better duplicate the code and adapt it for categories: the action can be found in the URL when editing a category. The $str must be filled with the categories description textarea names, this can be found where textareas are created in categories.php, or in the html when editing a category.  - Chris Quote Link to comment Share on other sites More sharing options...
Guest Posted July 28, 2007 Share Posted July 28, 2007 (edited) Hi all  I am getting the following error message when I select ACA- Categories in admin.  >>>Fatal error: Cannot redeclare do_magic_quotes_gpc() (previously declared in /hsphere/local/home/goslas/themagiccompany.co.uk/admin/includes/functions/compatibility.php:18) in /hsphere/local/home/goslas/themagiccompany.co.uk/admin/includes/functions/compatibility.php on line 18<<<  function do_magic_quotes_gpc(&$ar) { if (!is_array($ar)) return false; while (list($key, $value) = each($ar)) { if (is_array($ar[$key])) { do_magic_quotes_gpc($ar[$key]); } else { $ar[$key] = addslashes($value); } } reset($ar); }  Any advice greatly appreciated.  Thanks Edited July 28, 2007 by Templer Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.