Drupal coder

Drupal

Panic Coda Drupal plugin now on GitHub

The plugin I wrote for Panic Coda, the excellent web developer IDE/editor, is now hosted on GitHub.

Nothing has changed since the last version but I hope this move to GitHub will blow some life into this little gem. I switched back to Textmate a while ago, so I won't be doing any more updates myself.

Have fun everyone!

March 14, 2011Coda, Coda Drupal plugin, Drupal

Drupal 7 book review : Drupal 7 module development

With the first official release of Drupal 7 imminent, the first books on Drupal 7 start appearing everywhere. Some of them are first editions, others are updates of their Drupal 6 counterpart. One of those updates are "Drupal 7 module development", published on Packt and written by some of the most brilliant contributors to the Drupal project: Matt Butcher, Larry Garfield, John Wilkins, Matt Farina, Ken Rickard and Greg Dunlap. Oh my. I'm also very proud to be one of the technical reviewers of the book.

In the past the bible for Drupal module development has been "Pro Drupal Development". Let's see if this new book is as good, or can be a nice extension to this epic title.

December 21, 2010Drupal 7, books, Drupal, reviews

Performance and SEO impact of not rewriting your urls to use or not use www

Here's a quick tip which will influence your performance and SEO. It's just about uncommenting 2 lines of code in the .htaccess file that ships with Drupal (and replacing some text), but I've seen a lot of sites that tend to forget this.

Suppose your domain is something like yourdomain.com. Check now if you can access your site by prefixing your domain with www. and by not doing it. So check if http://www.yourdomain.com is accessible and if http://yourdomain.com is (without redirection to one of the two). If so, this article is for you.

December 20, 2010Drupal, performance, SEO, url rewriting

Decoding raw PHP session values

Drupal overrides PHP's session handler and stores all sessions in its own sessions table. Normally, you should never be accessing that table directly since the session info is automatically loaded when it is initialized by a user.

Some time ago though, we needed direct access to the session table and found out this isn't as easy as it seems. The session variables are stored in the session field of the sessions table in a serialized state that isn't decodable with PHP's default unserialize or session_decode functions. Browsing the net, it seemed a lot of people had struggled to decode it and we couldn't find any working solution.

So I decided to give a go at this myself. Here's the solution we found to work in all of our test cases. I can't guarantee it works 100% since I haven't seen documentation on how the serialization is done. If you have more information on this, don't hesitate to comment on this post.

December 16, 2010Drupal, PHP

Newsletter subscription management in Drupal with E-mail Marketing Framework

Yesterday at the Belgian Drupal User Group (DUG) I presented the E-mail Marketing Framework module, also known as EMF. EMF is a Drupal module that makes an abstraction of the APIs of newsletter or e-mail marketing services like MailChilmp, Campaign Monitor, ... Think of it as the Wysiwyg module for e-mail marketing.

E-mail Marketing was developed based on the observation that most of these services like MailChilmp, Campaign Monitor, ... have kind of the same functionality. So EMF focusses on the UI and other functionality and leaves the actual hard work (subscriptions management, ...) to a plugin module. By writing a plugin module for your own mailing service you can immediately enjoy all functionality provided by EMF on your own site.

Still not clear? Watch my presentation:

December 15, 2010Drupal, emf, modules