Search Results
Getting started with Drupal
Posted on: 12 March 2008
A few weeks ago, I decided that the best foundation for the site I'm working on would be Drupal. After some discussions around the scale of the site and the likely complexity of our customisations, this seemed to be the natural choice. One of the key factors in this decision was the perceived strength of Drupal's architecture.
Drupal Tutorials
Posted on: 19 March 2008
I'm starting to get the hang of Drupal now, largely thanks to Robert Safuto's video tutorials (especially the one about CCK and Views) - nice one Robert!
Importing Data Into Drupal CCK
Posted on: 20 March 2008
I've now got a bunch of structured data in a relational database, and need to get it into Drupal. I've created my content types using CCK. Fortunately, there's a great overview here which highlights some of the core Drupal tables I need to populate which aren't immediately apparent.
Everything is pretty straightforward, apart from populating deltas for repeating fields in CCK.
What tokens are available in Drupal?
Posted on: 31 March 2008
Drupal has a very powerful module called Tokens, which makes various pieces of data available in other modules. As an example, the Pathauto module will create friendly URLs for any piece of content based on some feature of that content, using token substitution. By default, a new piece of content will be available at the URL http://www.mysite.com/node/5 (assuming you have enabled clean URLs).
Drupal pages sometimes come up blank!
Posted on: 01 May 2008
OK - pretty weird problem today. My local dev Drupal site was acting a bit strange. Most page requests worked fine, but some (e.g. /logout) brought back a completely blank page. "View source" on the page showed that the source was completely blank too. No errors in the apache error log, and nothing in the Drupal watchdog table.
IE6 Hover The jQuery Way
Posted on: 23 June 2008
Drupal includes the jQuery framework by default, which gives you easy access to a bunch of neat javascript eye-candy. I've been meaning to look into this properly for a while now, but I have at least figured out how to resolve a fairly common Drupal requirement - displaying submit buttons as text links.
Simple video comments
Posted on: 28 August 2008
One of the things we're really eager to get going on Save A Million Shots is the idea of video conversation threads. The trouble is, commenting is a fundamentally different activity from posting.
If you're posting an article, you're putting in a reasonable amount of time and effort (probably!), which could include making a video file, saving it to your computer somewhere, and uploading it when you write your post
Styling file upload form buttons in Drupal
Posted on: 07 November 2008
I've used a nice bit of CSS to style all the buttons throughout our web site, but it all falls down a bit on the file upload button. For reasons best known only to the various browser developers, this button only has limited styling capability, if indeed any at all.
There are a few solutions out there, but they are all pretty messy in terms of adding a lot of cruft to your site code. I was looking for something a bit more elegant, and which would fit neatly in with the architecture of my Drupal-based site.
The dangers of multiple Drupal database connections
Posted on: 20 October 2009
Our latest venture, www.analyticsseo.com, is a pretty complex app for a Drupal site. There are two parts to the system:
1. a back-end application, which crawls the web, analyses sites and competitors, and does all kinds of clever stuff
2. a front-end application, which summarises this data, generates tasks, and manages workloads
Fortunately, Drupal makes it really easy to work with multiple databases. Simply add two database connection strings in the settings.php:
Force Drupal User Logout
Posted on: 14 January 2010
I had an interesting problem this morning. One of our team had been demonstrating Analytics SEO to a potential reseller, and had forgotten to log out of the site at the end of the demo. He didn't really want to leave them with access to his account (which is a rather powerful administrator-type account), but also didn't really want to phone them and ask them to log out. The reseller is in South Africa, so I can't exactly sneak in and delete their login cookie either.