Drupal 6.x + jQuery 1.4.2 = New Possibilities
jQuery is the bread and butter of rapidly developing a highly-interactive websites, and Drupal has long made use of it, and indeed includes it as part of its core install. There's only one catch......
View ArticleModify Views SQL Query in Drupal, Restrict View to Search Term
So I wanted to be able to pass a default value to the the Views search filter, to filter by a view by a search term, to display that view in a block.EDIT: There is an easier way to do this, which...
View ArticleThe Butterfly Effect
The Butterfly Effect is a term from chaos theory that is designed to illustrate how one tiny change can have enormous consequences to the overall system down the line.If we abstract butterfly to bug,...
View Articledrupal_write_record() Can Return a False Positive on Updates
Today I discovered that the 6.x version of drupal_write_record() returns '2' (or SAVED_UPDATED) even if no record was updated.In order to update a record via drupal_write_record(), you have to provide...
View ArticleWordPress Stylesheets: wp_enqueue_style
If you're building a WordPress plugin, or simply dealing with including WordPress stylesheets in your theme, there are a few approaches you can take. For the most part, I've included stylesheets for...
View ArticleCustomizing ShareThis WordPress plugin
I wrote about this on my personal blog after realizing that having the ShareThis links at the end of my blog posts might actually prevent them from being shared as much, assuming that most people won't...
View ArticleCustom CKeditor Classes in Style Dropdown
While looking up how to add custom styles to CKeditor's dropdown, I came across a helpful yet tiny custom module from my friend rootwork.Turn it on and hack on it to add new styles. You can't add...
View ArticleMaking Drupal Happy: When Themes and Modules use the same name
We came across an issue with a site recently, where the name of the custom module file was the same as the name of the theme. So, for example, if the theme name was Bork, the module name was...
View ArticleUpdating your Drupal site using Drush
A few weeks ago, Alan wrote about how to find out if your Drupal and Wordpress sites are up to date. So, what if you find out your Drupal site is horribly out of date - core, modules and all? What...
View ArticleDelicious Feed Broken? Delicious Changed Its Domain Name
I ran into an issue recently where Delicous links weren't being updated as expected. It turned out sometime in August 2010 Delicious switched from using http://delicious.com/ to...
View ArticleSet Sitewide Default Context in Drupal
In Context 3 they removed the sitewide default context, that is, the context that can be set to be enabled when no other context is active. The sitewide context, which is enabled at all times, is still...
View ArticleKeep Drush Up to Date
UPDATE: See Three Ways to Get Drush on OS X for a newer guide.We're big fans of Drush. It's installed on all of our servers and it's a great way to perform maintenance tasks, download core and modules,...
View ArticlePreventing empty CCK-based blocks from printing
Today I learned that if you have a Views-powered block that uses CCK fields; and the CCK fields are empty for all the returned rows; then Views doesn't realize you've got an empty set and it still...
View ArticleRemoving Behaviors Using a GMap Macro
I'm building some maps for a client using the GMap module and came across the following simple problem: using a GMap macro, how do you remove a default attribute?The GMap module lets you set a number...
View ArticleNode.js and NPM on CentOS
Update: This no longer appears to be necessary as of nodejs 0.8.0. It may have been fixed earlier but I noticed neither of these changes are necessary anymore. Something new though, I had problems with...
View ArticleEJS Views Helpers With Backbone-Rails
Backbone-Rails is a useful gem for setting up Backbone.js in your Rails 3.1 app by providing all the necessary javascript files & dependencies (easy future upgrades with bundler), as well as some...
View ArticleVideo Thumbnails with Media and YouTube or Vimeo in Drupal 7
Today, one of the designers I work with asked me a pretty simple question about a Views-based list of videos. The listing displays thumbnails of videos being pulled from YouTube and Viemo. The question...
View ArticleRedirect all port 80 requests to port 8080
In my previous post, I walked through how to set up a local environment using Nginx running on port 8080 so as to avoid running anything as root or with sudo. Something that I've found incredibly...
View ArticleNever touch your local /etc/hosts file in OS X again
In each of my posts on setting up a localdevelopmentenvironmenton OS X, it's mentioned that you need to add your website's domain, even though it's local, in your /etc/hosts file. My preferred way to...
View ArticleCreating Custom Formatters with Display Suite
Here at EchoDitto, we've been making heavy use of the Display Suite module. It obliterates a lot of the more tedious theming issues we typically run into when building out a Drupal site, and for the...
View Article