Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Recommended Posts

Posted

Hello everyone,

 

I've been trying different mods on my new OSC store (running MS2), and I came across the excellent "Information Pages Unlimited" mod.

 

http://www.oscommerce.com/community/contributions,1026

 

Anyways...I have also been experimenting with the WYSIWYG HTMLArea mod. What I am trying to do is add the WYSIWYG functionality to the Information Pages Unlimited mod. This would allow me to create HTML information pages right on the admin panel.

 

The author of the WYSIWYG mod did something similar to allow WYSIWYG editing of the Category Descriptions mod (yet another great mod). I would like to adapt this to work with the info pages mod.

 

Here is the code used to add the WYSIWYG editor to the Category Descriptions mod (code goes in admin/categories.php)

 

<?php if (HTML_AREA_WYSIWYG_DISABLE == 'Disable') {} else { ?>

   <script language="JavaScript1.2" defer>

       // MaxiDVD Added WYSIWYG HTML Area Box + Admin Function v1.7 Categories Description HTML - Head

          var config = new Object();

          config.width = "<?php echo HTML_AREA_WYSIWYG_WIDTH; ?>px";

          config.height = "<?php echo HTML_AREA_WYSIWYG_HEIGHT; ?>px";

          config.bodyStyle = 'background-color: <?php echo HTML_AREA_WYSIWYG_BG_COLOUR; ?>; font-family: "<?php echo HTML_AREA_WYSIWYG_FONT_TYPE; ?>"; color: <?php echo HTML_AREA_WYSIWYG_FONT_COLOUR; ?>; font-size: <?php echo HTML_AREA_WYSIWYG_FONT_SIZE; ?>pt;';

          config.debug = <?php echo HTML_AREA_WYSIWYG_DEBUG; ?>;

          // More Configs can added here:

          // Dreamscape added Dynamic Language Function

       <?php for ($i = 0, $n = sizeof($languages); $i < $n; $i++) { ?>

          editor_generate('categories_description[<?php echo $languages[$i]['id']; ?>]',config);

    <?php } } ?>

 </script>

 

I think that combining these two mods (WYSIWYG and Unlimited Info Pages) would be very useful. However, I am somewhat of a newbie to OSC and my PHP skills are not quite up to the task yet.

 

If someone is willing to help me out, I could send $10 PayPal.

 

I'm sure that there are other mods that the WYSIWYG HTMLArea could be applied to. I would do it all myself, but as I said, I am still very new to PHP. :oops:

Posted

Bump.

 

Another thought,

 

Is there anyone else here that is interested in applying the WYSIWYG HTMLArea mod to a variety of other mods? Maybe a series of code patches to enable it for various mods that are already out there.

 

Or maybe I'm just dreaming.

:?

Posted
Bump.
It's generally not a good idea to put bump in your post, as bumping is against the rules. The fact that you added more information makes it all right, but you may want to be careful about the wording to avoid having your post locked or deleted.

 

Good luck,

Matt

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...