An Occasional Thought...

An infrequent take on WordPress, WooCommerce, and the web.

February 5, 2013
Generally speaking, Drupal does a great job of letting you bulk update content settings across your site. And where core falls short, usually a module called Views Bulk Operations (VBO) jumps in to save the day. But recently I needed a way to bulk update comment settings. I have a side project where I set commenting to be closed for a content type that I ultimately needed to open commenting on. I searched for a while, even giving VBO a run, but it doesn’t provide the ability to update comment settings. Unfortunately, there’s no module, so the next best thing was to update rows in the database manually. There are a couple places where rows need to be updated, so here’s the fastest and easiest way to update comment settings in the database. WARNING: While this is a fairly simple process, if you do not know what you are looking at in the database, this can be a very bad idea!
January 31, 2013
Earlier this week, I wrote an article over on the FliteHaus blog comparing responsive, adaptive, and mobile optimized sites. In addition to defining what they are, I also gave examples of when to use each for your latest project. Admittedly, the article was written for current and prospective clients, but I think the article offers some high-level insight into what each is and the situations for which each is designed. If you’re new to designing for the modern web, or just want to reaffirm your stance on each architecture, it’s a decent read.
January 12, 2013
While I’m a Drupal advocate for sites that require a content management system, I recognize that WordPress still holds the crown for most popular CMS. Through talking to others that work exclusively with WordPress, I’ve come across some of WordPress’s most popular modules. I know this list isn’t going to convert WordPress developers to Drupal (or vice versa hopefully), but I just thought it might be interesting to take a look at some of the similar modules. This isn’t, by any stretch of the imagination, a comprehensive list, just a quick recap of some of the most popular WordPress plugins and their Drupal module counterparts.
December 14, 2012
I’ve been a Vimeo user for several years, and a Vimeo Plus member for the last two. At FliteHaus, we have a Pro account as well to better serve our clients with video content online. The quick and simple reasons are this: great quality, broad device support, top-notch security, and video player customization. Let’s explore these more in-depth, one by one.
December 7, 2012
One of the greatest things about Drupal is the ease at which you can create different types of content – aptly named “content types”. The one area that we, as a company, had to iron out – and have been perfecting over the last few years – is the assignment of permissions for these content types. Anyone who has seen the Drupal permissions page knows it is a nightmare of checkboxes that must be precisely managed. While we – the core admins of the site – need to have full control over all aspects of the content, we also need to lock down certain areas that clients need to stay out of. After deliberating over how to structure our roles and permissions, we’ve solidly decided on a system of creating roles based on content types. For any given site we might have a “page admin”, “blog admin”, “gallery admin” and so on. In addition, we can also have roles like “blog author” that may add/edit/delete their own content, but not all blog content site-wide.
December 4, 2012
CSS-only ribbons are a popular effect. Sometimes you need a triangle that will make it look as though your element is wrapping in from the left, sometimes the right, and sometimes both. Below are a few snippets to help quickly create these little triangles to create the ribbon effect you desire. We will be using the :before and :after pseudo-elements to achieve this effect, so you will be limited to 2 triangles per element. Pseudo-element browser support for these is as follows: IE8+, Firefox, Chrome, Safari, Opera.
December 3, 2012
Let’s face it, we only type a password correctly about 50% of the time. And when you hit that wrong letter, you erase the entire password and start over. If you’re a fan of XKCD’s method for creating secure passwords, that’s a lot of letters to erase to start over! So why not make the password visible by default? When’s the last time someone was creeping over your shoulder to see your password? What if we create an option to hide the letters still if someone is nearby? Let’s do that with some simple jQuery!
November 15, 2012
When you develop websites for a living, it’s inevitable that you write the same lines of code over and over. While the goal for some of these repititions might be to create a generic stylesheet (a reset) or create a plugin for javascript code, sometimes it’s just not enough code to need to create a whole system for. It is, however, enough code that not having to write it each time would save you hours of time over the long run. Enter TextExpander. (Or any other text expansion software. This just happens to be my favorite.) TextExpander is one of many text expansion softwares available for developers and everyday computer users alike. Text expansion is basically the ability to set up shortened snippets of text that automatically convert to long lines of text. For example, I could set up a snippet that would tell the computer to type out my full name – Marcus Dustin Burnette – whenever I type my initials – “MDB”.