Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

jrheisey

Archived
  • Posts

    4
  • Joined

  • Last visited

Profile Information

  • Real Name
    J.R. Heisey

jrheisey's Achievements

  1. Hi, I'm having the same problem. Did you find a solution? I've narrowed it down to a problem with the code in /includes/boxes/coolmenu.php. The code is rendering html into a <script> block. I'm running this under Windows so I think it may have something to do with these files containing carriage return and line feed characters rather than just line feed characters. There is character substitution code to replace the line feed characters. JR
  2. You need to do a little extra checking. However I'm pretty sure that one or more of you category names contains letters that need special attention. See my previous post on apostrophes. - Use IE and try to view you osCommerce site. - Note down the line number and Char number of the error. - Close the error window that you described. - In IE select the menu item View / Source. Notepad will open and you will see the resulting html that the osCommerce PHP code generates. - Select View / Status bar to see the line number where the cursor is located at the bottom of Notepad. - Scroll down until you are on the line number causing the error. - You should see the line starte with oCMenu.makeMenu( - The third single quoted parameter after oCMenu.makeMenu( is your category name with the offending character. - The Char number you jotted down is the position from the left on that line where the offending character is located. - If you have an apostrophe in you category name see my previous post for the solution. - Other characters may cause such an error in Javascript. If you cannot identify the character post offending line to this forum. JR
  3. Displaying categories_name with apostrophes in CoolMenus Since an apostrophe is a meaning character in Javascript they must be replaced with the html entity equivalent of ' At line 198 of CoolMenu.php change the lines: // remove blanks $categories[$i]['text'] = substr($categories[$i]['text'], 12*$blank_length); to: // substitute apostrophes with the ' entity $category_text = str_replace("'", "'", $categories[$i]['text']); // remove blanks $categories[$i]['text'] = substr($category_text, 12*$blank_length); I will also add this in a text to the CoolMenus contribution files. J.R. Heisey http://www.druesfinejewelry.com
×
×
  • Create New...