siteplanet Posted July 30, 2003 Posted July 30, 2003 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: Quote
siteplanet Posted July 30, 2003 Author Posted July 30, 2003 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. :? Quote
Guest Posted July 30, 2003 Posted July 30, 2003 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 Quote
siteplanet Posted July 30, 2003 Author Posted July 30, 2003 Sorry about that. I'll be sure not to do that again. Quote
siteplanet Posted August 1, 2003 Author Posted August 1, 2003 Hello, It appears that MaxiDVD has already thought of this, and provided instructions in this thread http://www.oscommerce.com/forums/viewtopic.php...r=asc&start=210 at around the same time I started this thread. For anyone interested, check out the link. Quote
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.
Note: Your post will require moderator approval before it will be visible.