| |

Directory Handler at Theme Forest

Note: This article was published while I was in my early 20s. I was much younger and dumber. Please don't hold it against me. One of the perils of having a 20+ year old website!

I’m happy to announce my first Theme Forest component, Directory Handler. it’s a simple set of 2 classes that handle (in several ways) listing the contents of a directory. The main class, DirectoryHandler, includes several functions that:

  • Get and/or print the entire contents of a directory
  • Normalize the name of a file or directory (replace special characters with spaces)
  • Return the extension of a file
  • Return all of the files of a directory in an array
  • Return all of the sub directories of a directory in an array

TheImageDirectory class extends the functionality of DirectoryHandler by changing the get and print directory functions to:

  • Print a thumbnail version of the image
  • Integrate lightbox for easy image viewing/browsing.

You can view a live demo here and Download the full documentation here.

Similar Posts

  • Why I’m Shutting Down my Podcast Membership

    “The drums are the easiest instrument to play.” A friend in high school said that to me—a drummer—to my face! “Why do you say that?” I asked, trying not to lose my cool. “All you do is hit drums.” To someone who’s never sat down at a drum set and actually tried to sound good,……

  • |

    Prop Bets Are Bad for Sports

    Emmanuel Clase and Luis Ortiz’s betting charges are the latest in a long list of reasons (like death threats to players AND their families) why prop bets are bad for everyone. Sadly we can’t rely on MLB to ban them. And we probably can’t reply on the government to either. Read the story: https://www.nytimes.com/athletic/6792294/2025/11/09/mlb-clase-ortiz-betting-allegations/

  • You Should Create a Private Podcast

    Include how Relay FM, The Hustle, and Serious Trouble do private podcasts Get even more free content. Subscribe to my podcast, The Profitable Podcaster! Read the Article on Podcast Workflows

  • |

    Teach yourself how to program

    Note: This article was published while I was in my early 20s. I was much younger and dumber. Please don’t hold it against me. One of the perils of having a 20+ year old website!As some of you may know, I have taught myself a lot of the programming I know. It started with HTML,…

  • ConvertKit Rolls Out Sponsor Network (The Podcast Host)

    My latest piece for The Podcast Host is up, and I cover ConvertKit’s Sponsor Network, how it compares to Substack, and what it means for podcasters:

    If you’re wondering, “how can I take advantage of this network,” the short answer is you need to meet the three criteria above, first and foremost. But if we play the slightly long game, my recommendation is to build your mailing list on ConvertKit.

    According to our Podcaster Cares Survey, only 40% of podcasters feel a mailing list is a must-have. Programs like this may change that calculus, especially because of what’s coming.

    Read the whole thing here.