Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

CableCompany

Pioneers
  • Posts

    3
  • Joined

  • Last visited

Profile Information

  • Real Name
    TMA

CableCompany's Achievements

  1. I know I'm replying to an old post, but there are always people out there looking for a solution ending up in this topic. Thanks to the advise of Chris I managed to get TinyMCE Anywhere working with my previously installed contribution called "Category Description" which uses the modified categories.php file to process the description in stead of a separate category_description.php file. The following code did the job for me: <?php // START tinyMCE Anywhere for the products part 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']."],"; } //end for each language $mce_str = rtrim ($str,","); // 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 for the products part ?> <?php // START tinyMCE Anywhere for the category part if ($action == 'edit_category') { // 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.="categories_description[".$languages[$i]['id']."],"; } //end for each language categories_description $mce_str = rtrim ($str,","); // 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 for the category part ?> Hope it helps somebody.
  2. I installed the contrib and it works fine. Thanks! The text entered into the Category Description however does not seem to get indexed by the standard osC search function. What lines in advanced_search_result.php need alteration to fix this? I hope anyone can help me out on this one. Cheers!
×
×
  • Create New...