1
fredski
Oscommerce Module, Product description WYSIWYG Hack
  • 2004/7/29 14:02

  • fredski

  • Quite a regular

  • Posts: 265

  • Since: 2004/1/26


Ive installed the WYSIWYG HTML editor for product descriptions V1.7 hack ( Found Here! )and although I can now create product descriptions the way I want them to apear my admin page for the products is screwed up, please see the following screen shot.

Resized Image

Anyone know what might be causing that?

The Categories.php file in zip format is
HERE categories.zip Please take a look at it and tell me where I've gone wrong.

2
intel352
Re: Oscommerce Module, Product description WYSIWYG Hack
  • 2004/7/29 16:52

  • intel352

  • Module Developer

  • Posts: 824

  • Since: 2003/11/23


i didn't think xOSC would support regular OSC contributed mods... that might be the reason for your error.

3
fredski
Re: Oscommerce Module, Product description WYSIWYG Hack
  • 2004/8/4 10:44

  • fredski

  • Quite a regular

  • Posts: 265

  • Since: 2004/1/26


I've used a number of mods designed for the standard osc on my xoppsosc module and generaly they just need references to catalogue changing to shop and the sql's adding xoops_shop rather than catalogue. I would be gratefull is someone could look at the categories file as I'm sure it's just an error I've made with that. i,e the info box on the right not showing correctly. Apart from the look of it, everything functions great.

4
fredski
Re: Oscommerce Module, Product description WYSIWYG Hack
  • 2004/8/4 11:16

  • fredski

  • Quite a regular

  • Posts: 265

  • Since: 2004/1/26


Ok I've fixed the right info box problem, all I need to get done now is fix the wysiwyg editor problems with the categorie editor the categories.php file can be found HERE

Resized Image

I think the problem is around line 1076 where its not seeing it as php, but as I'm not to clever on php I'm just a beginer then I'm going to leave it up to you experts to tell me

5
fredski
Re: Oscommerce Module, Product description WYSIWYG Hack
  • 2004/8/5 7:42

  • fredski

  • Quite a regular

  • Posts: 265

  • Since: 2004/1/26


*BUMP* Come on guys & girls, I'm 99.9% sure that this is just a little php code error around line 1076, but I'm not sure how to correct it. Im pretty sure it should be in php and not html as it's being shown but where do I add the php tags to it at the right points??????

Blah Blah Blah Ok Code Before Line 1076 ?>
} else { // create category/product info
          $heading[] = array('text' => '<b>' . EMPTY_CATEGORY . '</b>');

          $contents[] = array('text' => TEXT_NO_CHILD_CATEGORIES_OR_PRODUCTS);
        }
        break;
    }

    if ( (tep_not_null($heading)) && (tep_not_null($contents)) ) {
      echo '            ' . "n";

      $box = new box;
      echo $box->infoBox($heading, $contents);

      echo '            ' . "n";

      // Add neccessary JS for WYSIWYG editor of category image
      if($action=='edit_category'){
        if (HTML_AREA_WYSIWYG_DISABLE != 'Disable'){
          echo '
                  <script language="JavaScript1.2" defer>
                  var config = new Object();  // create new config object
                  config.width  = "250px";
                  config.height = "35px";
                  config.bodyStyle = "background-color: white; font-family: Arial; color: black; font-size: 12px;";
                  config.debug = ' . HTML_AREA_WYSIWYG_DEBUG . ';
                  config.toolbar = [ ["InsertImageURL"] ];
                  config.OscImageRoot = "' . trim(HTTP_SERVER . DIR_WS_CATALOG_IMAGES) . '";
                  editor_generate("categories_image",config);
                 </script>
               ';
        }
      }

    }
          </tr>
        </table></td>
      </tr>
    </table>
<?php Blah Blah Blah Ok Code After where I think the problem lies

6
fredski
Re: Oscommerce Module, Product description WYSIWYG Hack
  • 2004/8/9 14:55

  • fredski

  • Quite a regular

  • Posts: 265

  • Since: 2004/1/26


????????????????????????????

Anyone

????????????????????????????


7
fredski
Re: Oscommerce Module, Product description WYSIWYG Hack
  • 2004/8/13 11:40

  • fredski

  • Quite a regular

  • Posts: 265

  • Since: 2004/1/26


*Bump*

??

8
fredski
Re: Oscommerce Module, Product description WYSIWYG Hack
  • 2004/8/16 8:20

  • fredski

  • Quite a regular

  • Posts: 265

  • Since: 2004/1/26


Errrr

Hello???

Anyone here

A little help please

9
philou
Re: Oscommerce Module, Product description WYSIWYG Hack
  • 2004/8/16 9:17

  • philou

  • Quite a regular

  • Posts: 384

  • Since: 2002/5/6 8


Hi !!!
I'm back from holidays today....

I think your problem is a quote or double quote in the code

10
rowdie
Re: Oscommerce Module, Product description WYSIWYG Hack
  • 2004/8/16 9:49

  • rowdie

  • Just can't stay away

  • Posts: 846

  • Since: 2004/7/21


Pretty sure all you need to do is remove the ?> at line 1075

Delete it and your page should work again

Rowd

Login

Who's Online

243 user(s) are online (151 user(s) are browsing Support Forums)


Members: 0


Guests: 243


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits