Creative Web Design & Development

MindPalette™ LLC is a creative web development company based in Indianapolis, IN. We are currently in a state of transition, and will be shifting most of our development focus to:

  • PHP Form Processing Scripts (new versions to replace NateMail and ProcessForm)
  • Joomla! Extensions (Components, Modules, Plug-ins & Templates)
  • WordPress Themes & Plugins
  • jQuery and JavaScript Plugins & Scripts

Though no longer actively developed, we will continue to offer free downloads of our GoLive Actions. The older Scripts and Tutorials are also still available, though future content and development will be in our new Development Blog.

PHP: Round Number to Minimum Precision

While working on an e-commerce system, I needed to use PHP to round a number to a minimum number of decimal places, but allow for more if needed. For instance, if the value was 1.2, I’d want it rendered as $1.20, but if it was 1.256, I’d want it to keep the precision and render as $1.256. I ended up converting the number to a string, splitting by the decimal, enforcing the minimum precision and then using PHP’s number_format() function, like: Read More »

Joomla 2.5 Component Categories Sub-Nav

I recently found Joomla’s feature to easily add custom component-specific nested Categories. It makes for a quick way to create categories similar to what is used in com_content and an interface to manage those categories without having to build it all manually. You can use JForm to easily add a select menu of your custom categories. The categories interface can even include a custom sub-menu to easily get back to the rest of your component.

Read More »

Joomla! 2.5 Toolbar Popup Link Icon

Today I needed to add a new toolbar button to a custom Joomla! component. In the past, I’ve used a more convoluted method of overriding the submitbutton() (or Joomla.submitbutton) JavaScript function and triggering the modal popup manually, but stumbled upon a better solution. Read More »