| |

Random Code Generator 1.0

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!

A couple of weeks ago, when I officially launched the redesign, I mentioned the forthcoming release of a plugin I wrote for the redesign. Random Code Generator is that plugin. I needed a plugin that generated a random promotional code and stored it in a database. I’m currently using it on Manifest Development to manage various promotions and ‘prizes’ I have going on, to make sure people can get a code, but cannot use it twice. Here is the official description:

A simple plugin that genrates a random string of characters and stores it in a database. By default the length is 10 characters (A-Z, a-z, 0-9, @!@#$%^&*()) and the strings are unique.

Right now it’s a bare bones plugin, with only major functionality done and the requirement to use a template tag. In the next build I plan on adding a delete code function and a hook to add the random code into any post or page.

If you want to check out the plugin, you can do it here or on the official WordPress page.

Similar Posts

  • |

    Out Now: Responsive Design with WordPress

    I’m happy to announce that my second book, Responsive Design with WordPress is out today online and in bookstores. It’s published through Peachpit/New Riders and I couldn’t be happier with the way it turned out.  

  • Workflow, Responsible Responsive Design, And More Friday Links

    I have already come across a few things this morning that I’ve wanted to share out, so it seems a short blog post is in order! Profession Workflows & Best Practices | WPSessions: Brian over at WPSessions is hosting a free seminar on best practices for development and you shouldn’t miss it! It’s going to be…

  • |

    40 Days of Help

    I went to Catholic school my entire life, from Pre-K all the way up to when I got my Master’s Degree. While I haven’t always been the best at practicing my religion, something I have always done was adhere to the activities surrounding Lent: no meat on Fridays, and to ‘give something up’. The real…

  • | | |

    Version 4.0

    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!The New TehJoey is officially launched. You may have been noticing over the last few days, when layouts were switching back…

  • | |

    2015: Resolving to Do More, and Less

    Every year I publish my list of resolutions as well as a scorecard from the previous year. For 2015, I’ve redesign the site (well, I used HTML5 Boilerplate) and broke my resolutions down into 2 categories: “Do More” and “Do Less.”

  • | | |

    Learning HTML and CSS (with My New Book, Out Now!)

    I’ve always been a learn-by-doing kind of guy. Maybe it’s because I’m thinking about other things when something is explained to me, or maybe people are bad at explaining things. But either way, a concept doesn’t really sink in until I do it, or until I see an immediate application for it. When I learned…