Hi, I'm Tim Millwood. I am a Web Developer from Abergavenny, UK, and work for Mark Boulton Design, specializing in Drupal. This is my blog!
Drupal 6
Media queries & Drupal
Media queries are getting more and more popular in web design to allow your web site to change depending on the screen resolution, or screen orientation.
It is very simple to add media queries to your Drupal theme.
To define a CSS file in your Drupal theme's info file you would usually write declarations such as
stylesheets[all][] = style.css
or
stylesheets[screen][] = style.css
etc.
To use media queries you can write declarations such as
stylesheets[screen and (max-width: 600px)][] = screen-600.css
or
Are you looking for a freelancer?
There has been a lot of press regarding how many Drupal jobs are currently available. Many people have been commenting on the lack of experienced Drupal developers. Well, I am here to help.
As many people maybe aware I work full time for Mark Boulton Design, as a key member of their development team. Although in my spare time I have around 10 hours a week to take on freelance projects.
Simple Twitter Anywhere Drupal integration
Yesterday Twitter announced their Anywhere API (http://dev.twitter.com/anywhere/begin). So I quickly added it to a custom module.
Here's how...
function module_name_init(){
drupal_set_html_head('<script src="http://platform.twitter.com/anywhere.js?id=YourTwitterAPIKey&v=1" type="text/javascript"></script>');
$js = "twttr.anywhere(function(twitter) {";
$js .= "twitter.hovercards();";
$js .= "twitter.linkifyUsers();";
$js .= "});";
drupal_add_js($js, 'inline');
}Drippic - A Twitpic clone built in Drupal
Last week I had the crazy idea that I could build my own version of Twitpic with Drupal. It turns out that I can.
In under 300 lines of code I wrote the Drippic module that allows posting of photos from Tweetie for iPhone.
Here’s what is does:-
Allow posting of photos (and a tweet) via a post request.
Photos saved as an ImageField and tweets saved as the title of a node.
Allow commenting on photos, posting the comment back to Twitter.
User generated, and verified with Twitter when posting a photo or comment.
Short URLs created using the Shorten module.
Mark Boulton Design studio site now using Drupal
We've just launched the new Mark Boulton Design studio site using Drupal.
Multi-site Drupal installations
One of the great things about Drupal is that you can run more that one site off one installation. This saves disk space and load on your server, it also saves maintenance time. With only one installation to manage and update the time spent administering your site drops greatly.
So, how do you setup a multi-site? well, it’s very easy.
- Firstly install Drupal as you would normally. Download it into your web root, copy the settings.php file, add a files directory, setup a database. etc. The domain name for this site for example would be http://www.example.com.
Drupal book update
As mentioned in previous posts I am writing a Drupal book. I can officially announce the book will be entitled “Professional Drupal Module development”, it will be published by Wrox Press, who are a brand of Wiley, the book will fall into their Professional series.
Review: Drupal 6 JavaScript and jQuery - Matt Butcher
With this book Butcher has touched upon a great topic for the Drupal community, and the great thing I found when starting to read the book is not much JavaScript knowledge is needed. When reading the book I quickly scanned Chapter 1: Drupal and JavaScript and Chapter 2: Working with JavaScript in Drupal. The first chapter gives a good overview of coding languages used, Drupal and Javascript, the second gives a good overview of how Drupal can use JavaScript within a theme, and how the theming system works.
Review: Drupal 6 Themes - Ric Shreves
Earlier in the year I was asked by Packt Publishing if I would like to review some of their Drupal books on my blog, obviously I jumped at the offer and quickly e-mailed back a big fat "YES". A week or two ago a copy of "Drupal 6 Themes" by Ric Shreves landed on my door mat, since then I have been working my way through the book and compiling this review.
Streamline Drupal CVS checkout
Today I had the task of checking out Drupal core and a load of modules for a new site, but all those CVS commands made me think there must be an easier way. So I started looking into scripting the process. This is when I came across Patrick Corbett's blog post "Drupal CVS Checkout Shortcuts".












