For the Scottish community

Blogs

Time to pick a winner for the Drupal site Blueprints book giveway

Okay, i've randomly picked out a winner and for the Drupal site Blueprints...

congratulations! pierrelbz was the chosen winner.

You will be contacted on Twitter, please reply to receive your free book.

How did i pick the winner:
To decide who gets the free book each new followers' names on my Twitter list was written on a piece of paper and folded up, then shuffled around in a box. Without looking into the box, I then proceeded to pick out a random name.

Thanks to all that followed me.

<!--



-->

Getting Stuff Done

Basically, an initial patch went in, we opened followup issues for cleanup, the followup issues never got followed up, so what's in HEAD is a bit of a mess. — catch, in a recent issue comment

This happens far too often. I'm not linking to the specific issue in the Drupal 7 queue because I don't want to point fingers; this suffices to exemplify my point.

Free Book giveaway: Drupal 6 Site Blueprints

giveaway prize The lovely Packt Publishing has given me a free book to giveaway. The book is Drupal 6 Site Blueprints.

To enter all you need to do is follow me on Twitter. Simple as that and i'll randomly select a winner from the list.

This contest starts from today and will end on the 23rd Feb (next Tuesday), that's one week from today.

Good luck to everyone.

Note: Winners from the UK will receive a printed copy. All other countries will receive a downloadable PDF version.

<!--



-->

Services, or How I Learned We're All Just Secretly hook_menu()

I am now batting nodes, complete with imagefield, between separate instances of Drupal with merriment and glee. For yes, I do have a working beta of Content distribution.

I'm about to quickly write a service to get CCK's content_fields() array from the remote, distributing site, so that the retrieving site can show a UI of possible values for a Views nodereference argument. Try it. It all makes sense once you do.

Why Is Writing Drupal Documentation Harder Than Writing Wikipedia?

I used to write on Wikipedia, years ago when it was a wild frontier, we had barely 30 thousand articles, and not even my geek friends had heard of it from a source other than my blathering on about it.

Files Aren't Visible From All Domains Of A Site

I had a fun afternoon a few months back when all the imagecache images broke on a site I'd just taken live. I've just figured it out, so I'm telling you about it.

This was the situation:

  • subsite.client.com was where I was developing the site, one of a family of multisites.
  • subsite.com was a parked domain that went to just this site. It was this I'd just pointed to the IP of the box and that wasn't showing any images.

On the development domain, all worked fine. On the subsite domain, nothing.

Book Review: Drupal 6 Site Blueprint by Timi Ogunjobi

Drupal 6 Site Blueprint Drupal 6 Site Blueprint by Timi Ogunjobi is a hands on practical examples of building 12 different sites. This book is actually very useful if you are starting out with Drupal for the first time. As anyone can tell you with the abundant of modules available it takes a long time to familiarise yourself with which module to choose to get the job done, as well as the time it takes to test them out. read more »

<!--



-->

Book Review: Drupal 6 Social Networking by Michael Peacock

Drupal 6 Social Networking by Michael Peacock Ask around any Open Source community and you'll get a positive response that Drupal is a very flexible platform to build social networking sites. But with any powerful and highly configurable CMS there will inevitably be a steep learning curve.

This is where this book Drupal 6 Social Networking by Michael Peacock aims to compliment Drupal by lowering the barrier and learning curve so any one with very little programming knowledge can build their own social network site. So does this book really live up to its expectations and teach many site builders the easy way of setting up a social network?  read more »

<!--



-->

Multisite On localhost Without Virtual Hosts

I've been putting off setting up multisite on my localhost for ages, mostly because in the past I've found getting Apache virtual hosts to work can be a bit tricky: not impossible, but the sort of thing where I could easily lose an hour on a minor thing I've forgotten to do. And after all, with a shiny new iMac and a hard drive whose proportions I can't even remember, why not just 'drush dl' all over again?

But I'm actually working on a multisite project at the moment, and suddenly getting this to work becomes more interesting than having another SVN copy of my code kicking around.

Given multisite can respond to subfolders, I was wondering if this could work when Drupal itself is in a subfolder, like this:

Counting Hooks

This (fairly long) one-liner counts the number of implementations of each hook in your Drupal installation:

ack "Implements? hook_" | perl -e 'while (<>) { m[(hook_\w+)] and $hooks{$1}++; } foreach (keys %hooks) { print "$_ - $hooks{$_}\n"; }'

To count only install file hooks, which was what I was doing, give ack the option "-G '.install'" thus:

ack "Implements? hook_" -G '.install' | perl -e 'while (<>) { m[(hook_\w+)] and $hooks{$1}++; } foreach (keys %hooks) { print "$_ - $hooks{$_}\n"; }'