Drupal blogging information, tips, tricks

Title Updated datesort icon
Drupal disaster recovery with the Backup and Migrate module

I recently had a small disaster on this site -- the database which contains the Drupal config and data for this site, well, it went insane. Certain things were blowing up either with screwed up display or what's known as the "white screen of death". And I could not get them corrected. This is one of the downsides of Drupal is when things go wrong it's often nigh on impossible to diagnose the problem or repair it.

Drupal, Drupal Planet
2010-01-14 14:50
Review: Pro Drupal Development (second edition)

Drupal is a very powerful content management system that can also serve as an excellent web application development framework. The features provided by Drupal are very comprehensive, flexible, and there is a large community of excited people supporting its development. Pro Drupal Development is a developers tome worthy of the system it documents.

Drupal, Drupal Planet
2010-01-14 14:49
Drupal layout mysteriously broken on Internet Explorer?

On my Drupal-based forum site there was a problem - On Internet Explorer the page layout was horribly broken. The content, instead of laying out in a 2 or three column arrangement, had each section of the right/center/left columns one after another. It was as if some of the style sheets simply hadn't loaded. Fortunately you could still use the site meaning missing style sheets didn't interfere with usability except that the site was horrible to look at and probably turned off any Internet Explorer visitors.

Drupal Planet, Drupal Themes
2010-01-14 14:48
Fix for when Drupal's cron.php redirects to a page rather than run cron.php

I've been having a headscratcher on a website for awhile and just found what the problem is. PROBLEM: When cron.php is requested, instead of running cron.php it redirects to some page on the site. This means the cron hooks aren't executed because instead some other page gets loaded. Drupal does a lot of maintenance stuff in the cron hooks, so it's bad news if they don't get executed.

Documentation of the normal setup for cron.php: http://drupal.org/cron .. I had done all that, and their troubleshooting section did not cover the problem I had.

Drupal, Drupal Planet
2010-01-14 14:48
Review: Drupal 5 Views Recipes

It's curious that Drupal 5 Views Recipes is a brand new book, right? Drupal 6 has been available for nearly a year and Drupal 7 is just a few months away, why bother with a book about Drupal 5?

Drupal, Drupal Planet
2010-01-14 14:47
Review: Flash with Drupal

What does Flash have to do with Drupal? Quite a lot, potentially. Flash is the ubiquitous multimedia technology from Adobe (originally Macromedia) that enables all sorts of rich media, animation and user interface effects on websites all over the Internet.

Drupal, Drupal Planet, flash, Multimedia
2010-01-14 14:47
Feedback modules for Drupal

inspiration.jpgLooking at a colleague's website (organicJar.com) and was jealous over the Feedback button on the side of the page of that website. It's an AJAX'y button at the side, themed so it stands out well over any background content, and plops up a nice form letting visitors give feedback. See the image to the right. It's of course important to get feedback from your visitors, to engage visitors, and perhaps if they have a good experience on your site they'll return again in the future.

Drupal, Drupal Planet
2010-01-14 14:45
Advanced drupal 6.x hierarchical taxonomy list pages

A good quality taxonomy listing page can act as a really good sitemap. Good sitemap pages are great for internal linking effects that helps visitors browse your site, and coincidentally aids in SEO. Most (?all?) nodes will have taxonomy terms attached to them. Hence it's a pretty good start to aid someone to browse your site. The problem is the core taxonomy module doesn't make good quality listing of taxonomy terms. For instance it ignores the term hierarchy, it doesn't display links to child term pages, etc.

Drupal, Drupal Planet, Drupal Taxonomy
2010-01-14 14:45
Website nodes for Drupal as a key to building reference lists and footnoting

For several years I've used a CCK content type named 'Website'. The purpose has been to simply list links to websites for my reference and others benefit. The traffic on my sites shows that the website links (specifically the taxonomy pages listing the website nodes) are popular and in some cases the most popular part of the sites. In general "resources" pages are an old practice on the web, you'd see a "Resources" page on most sites that's a simple list of links to useful sites.

Drupal, Drupal CCK, Drupal Planet, Drupal Tutorial
2010-01-14 14:44
Using CCK's nodereference field for a kind of footnote

In two prior blog posts (see the references section below) I've discussed using a website content type to create resources lists. In this post I want to discuss another use, for a kind of footnoting system. You can see it in action below.

Drupal, Drupal CCK, Drupal Planet, Drupal Tutorial
2010-01-14 14:43
Using Views 2 in Drupal 6 to replace the Tracker module

The core Tracker module is a convenient way to look at recent traffic on a Drupal site. It shows a list of recently posted (or modified) nodes along with useful data items for each node. However with Views 2 there is a more flexible way to implement the same functionality, without enabling another module.

The task is really pretty simple. Just download and enable the Views module, then in the Views configuration interface enable the Tracker view. Yup, coming bundled with the Views module is a predefined view which does every task the Tracker module does.

Drupal Planet, Drupal Tutorial, Drupal Views
2010-01-14 14:42
Creating a resources page in Drupal using a CCK content typeAn earlier blog post (see references below) discussed a website node type that I frequently use. One purpose for the website node type is to build "resources" web pages. The "resources" page is an old practice on the Web where a site might host a resources page listing useful sites. These resources pages can be a gold mine of information for users, but I suppose it can be a pain to maintain if the page is a static page you have to remember to edit to add a new resource link.Drupal, Drupal CCK, Drupal Planet, Drupal Tutorial, Drupal Views 2010-01-14 14:41
Using views to publish both full and partial feeds in Drupal

There's a long standing debate over the content of RSS feeds. For the greatest convenience of your readers the full RSS feed is great, because they can read your articles in their feed aggregator. However as a publisher who needs to earn a living from my writing I only want to publish a teaser so that the reader will feel incentivized to visit my site. For me the feed is a lure to bring people to my site, and I cannot do justice to others' viewpiont.

Drupal Planet, Drupal Tutorial, Drupal Views, RSS Feeds
2010-01-14 14:40
Reducing bandwidth use, decreasing page load times, for better Drupal user experience

One of my sites has a high traffic load (2000 visits per day, over 6000 page views per day) and has been using up the bandwidth allotment on the shared hosting account where it's hosted. Concerns are that a large download per page would turn off visitors due to a long page load time, and also the environmental impact of excessive bandwidth usage. Initially the only measurement tool I had was the realtime bandwidth statistics provided by the hosting provider (see the screenshots below) and it was only later when Firebug became functional on firefox 3.5 and YSlow was then usable.

Apache Tricks, Drupal Management, Drupal Planet, Green Web Hosting, Usability
2010-01-14 14:39
Drupal as social media platform, what's needed next?

I came to the Drupal community with (to the best of my recollection) Drupal 4.6. That makes me a sort of old timer though really there was a lot of Drupal releases before my time. In the 4.6 days most extension of Drupal meant writing modules whereas you youngsters today don't know how easy you have it with Views and CCK ... What drew me to Drupal was the tagline "Community Plumbing" as I was looking for a platform with which to build online communities or what's now known as social networking. My vision is the use of online community to create positive social change.

Drupal, Drupal Planet, Online Community, Social Media
2010-01-14 14:39
How to use Mercurial to hack Drupal Core without killing kittens

In the Drupal community there's a paradigm that every time you hack core you kill a kitten. And who would want to kill a kittens? The point is that any time you hack core (modify the Drupal core files) it becomes a nightmare to forward-migrate your changes as Drupal core is updated. The Drupal team does routinely update Drupal (about every 2 months) and it's best to keep your Drupal installation up-to-date especially as many of the fixes are for security bugs.

Drupal, Drupal Planet, Mercuial
2010-01-14 14:38
A simple way to create a 'related posts' block using Views 2 in Drupal 6

Looking at the traffic data google Analytics collects on my web sites I see a high "bounce" rate which means many visitors leave right away. It means they come to the site, then look only at the one page, presumably to go elsewhere. I've been pondering what might be a good way to entice them to stay and look around. After all, my websites exist to instruct people, so the more pages they look at on my sites the more instruction I'm able to impart. Oh, and there's a higher chance they'll click on an ad or something.

Drupal Planet, Drupal Tutorial, Drupal Views
2010-01-14 14:38
Using MAMP for local Drupal development on a Mac

MAMP makes it pretty darn simple to do web development on a Mac. While Mac OS X comes bundled with Apache and PHP, MAMP bundles together the latest versions of both along with MySQL. It "installs a local server environment in a matter of seconds on your Mac OS X computer" and is completely self-contained. You can run MAMP alongside the Apache that's built-in to Mac OS X, you can remove MAMP at any time, etc. It's very convenient and flexible.

Drupal, Mac, MAMP
2009-06-15 22:30
Repairing book navigation on a Drupal site

Maybe nobody else will find themselves in the situation that's in my hands right now. During the upgrade of this site from Drupal 5 to 6 the book navigation structure got screwed up. Drupal's book content is a tree structured set of pages which are loosely thought of as a "book". It's not really a book, but still the tree structure is a useful arrangement. I've published a lot of pages using the book structure and it was alarming that the structure got lost during the upgrade.

Drupal
2009-06-10 17:10
Messaging & Notifications modules for Drupal

One key part of a community web site is a way to notify your users of activity on the site. It helps to bring them back if they receive a notification. Otherwise they might forget about the site. Out of the box Drupal doesn't offer notification capabilities but there are addon modules which do this. I've been using the subscriptions module on my main site however it hasn't been all that pleasant.

Drupal
2009-05-07 15:45
A strange Drupal error while running update.php: Call to undefined function: phptemplate_get_ie_styles()

I've upgraded and updated my Drupal installs a zillion times. A strange error has occurred on the last couple of them which has me scratching my head. I want to share some observations in the hope it will help some others..

Upon applying the updates and running update.php I get this error: Fatal error: Call to undefined function: phptemplate_get_ie_styles() in .../themes/garland/maintenance-page.tpl.php on line 23

Drupal 6
2009-05-04 15:29
Text Size module for Drupal

The Text Size project provides a neat handy little gizmo to let people change the text size on your site. Have users who need a little help seeing text? This is the thing to let users set their preferred size.

It offers a block you position anywhere blocks go. The block has gizmos letting people set their preferred text size. That's about it.

Drupal Themes
2009-04-27 13:40
To tweet or not to tweet, let's help the tweeters do their magic

Twitter is this up and coming social platform which I still don't quite grok the usefulness. However it can draw some traffic to your site and I have managed to learn a few interesting things through twitter. It's growing on me. In any case since there's a lotta twitterers tweeting away it is helpful for website promotion purposes to assist them in any way to tweet about your site.

Drupal, Twitter Applications
2009-02-06 21:37
Better comment support with the disqus service & drupal module.. maybe

Disqus is an interesting service that fills a very web-2.0-style role. There's a zillion sites out there which support the users leaving comments. The web 2.0 model has community involvement front and center, contrasting with the old model of businesses pushing content or services or products at you. But the problem with this is having to register with each and every website on which you want to leave comments.. and further site administrators dealing with comment spam and desiring a better solution.

Disqus, Drupal, Online Community
2009-02-06 16:13
Simplified maintenance of contributed modules on a Drupal installation

One of the chores which comes with running a Drupal website is keeping the drupal install and contributed modules up to date. Prior to the Available Updates feature (itself a contributed module in Drupal 5 and core drupal in Drupal 6) this was a manual process. You'd occasionally browse the contributed modules list on drupal.org and hopefully you remember all the installed modules. With the Available Updates feature the system notifies you when your modules are out of date, and it tells you which one. But you still need to do a few things.

Drupal Management
2009-01-18 19:12
1st steps to creating video podcasts (for Drupal)

The latest episode of the Seven Generations Technosanity Podcast is a video as will be the next few episodes. I've been resisting doing video work partly because it's harder to edit but also the technology is far more complex. But for the episodes in question I need to show some things, not describe them. For technical context, the podcast is on a Drupal site meaning the solution has to fit the Drupal workflow.

Drupal, ffmpeg, H264, Podcasting, Video
2009-01-05 10:16
Drupal and clean URL's

What do I mean by "clean" URL's? The URL is of course the string appearing in the browser location bar, and means 'Universal Resource Locator'. Theoretically the URL is used by computer software and maybe it doesn't matter to the user what the URL contents are. However people do share URL's with each other, they read URL's over the phone, write them down on note paper, post them on billboards, etc. For those human uses it is helpful to make URL's useful to humans.

Drupal
2008-12-31 09:44
Fun or useful doodads

The Drupal community has developed or incorporated many useful gadgets (doodads) that supposedly improve the user experience.

WebSnapr Preview Bubble and Snap Preview Anywhere both extend links to external websites to have a popup window that shows a preview of the page being linked. This should help with letting your visitors know that it's an external link, and what's on that destination. These add to page download times, however.

Drupal
2008-12-23 08:12
Adding a flash player to the Drupal RSS Remote Enclosure module

On 7gen.com I am running a podcast about sane uses of technology and am using the RSS Remote Enclosure module to handle creating the podcast feed. A podcast is merely an RSS feed where the items have enclosure tags referencing audio or video files which are the podcast episodes. Out of the box Drupal creates enclosure tags if you upload a file, but the server on which 7gen.com is hosted doesn't have much disk space.

Drupal, Podcasting
2008-10-29 22:13
Methods to assist announcing Drupal-hosted content to social bookmarking & sharing sites

There are lots of social sites which facilitate sharing links to stories between the site members. They vary in form, but have a lot of similarity, with the main function being to post on a common site a story title, link, and description. A lot of traffic can be generated from these sites and thus it's useful to a website proprietor if their content gets promoted into these social sites. However there are dozens of these sites, with different mechanisms to post into each.

Drupal, Website Promotion
2008-09-14 09:41
Blog Theme module for Drupal

The Blog Theme module allows individual users to select different themes for their personal blog pages. Drupal allows easy switching of themes in that there is a theming layer which is very flexible in making the presentation of a drupal site customizable. This Blog Theme module uses that facility to allow a different theme to be used for blog postings by each user.

Drupal
2008-07-11 19:57
Activity Stream module for Drupal

The Activity Stream module for Drupal is a form of aggregation for Drupal. You configure it with a list of RSS feeds and it makes copies of (new) items as postings on your site. The idea is to collect all your "activity" from across several websites and collect all that on one site.

Drupal
2008-07-11 19:34
Wabi theme for Drupal

The wabi theme is a contributed theme for Drupal. It is recolorable in the style of the Garland theme. It has a few niceties in the look but the layout and look are very reminiscent of Garland.

Drupal Themes
2008-07-05 09:32
Twilight for Drupal

The Twilight theme looked like it might be a good theme for Drupal. It uses a dark base color with light color text. It can be recolored similarly to the Garland theme.

However once I installed the theme I found there are several layout bugs.

Drupal Themes
2008-07-05 09:09
Contented7 theme for Drupal

Contented is one of the better contributed themes for Drupal. This is a re-implementation of the Contented7 theme by Tom Rowan. This is a tableless, multi-column, fluid width layout. Parts of the design are ported from the K2 theme.

Nice things are that it does proper layout and it looks halfway decent. It properly handles switching between 2 and three column layout. The color scheme is an orange remniscient of leaves turning into fall colors.

Customizing contented7 is done by copying custom.example.css naming it custom.css and modifying to your choice.

Drupal Themes
2008-07-05 09:04
Advanced Theme Construction Kit (ATCK)

The default theme of Drupal is okay. Garland is much better than the earlier Drupal default theme but it has some, uh, issues. The typical way to develop a new theme is to start from one of the contributed themes and hack it up. ATCK offers a different route in terms of building a theme from scratch.

Instead of hacking up an existing theme ATCK has you use a WYSIWYG Grid Builder service which spits out HTML to implement the chosen grid. That's your starting point.

However I don't like this support and have deinstalled ATCK.

Drupal 6, Drupal Themes
2008-07-05 08:36
Table of Contents module

Table of contents 

Introduction

Table of Contents is a new module that adds some really nice new featureitis. You can see it in operation on this here page. It's an exciting new module in that it adds to the navigability of long documents.

Featuritis

The featuritis for this module is to scan page content and find the header tags (H1..H6). It uses the strings in the header tags to create listing of links to those headers. A.k.a. Table of Contents

Drupal 6
2008-06-28 13:16
Converted to Drupal 6

I've converted this site to Drupal 6 (precisely 6.2) and ohmygosh did this take a lot of work to do the conversion, but at the same time it's so worthwhile to do.

Drupal 6
2008-06-28 12:58
Liveblogging drupal 6 beta 3 installation

7:20 Unpacked distribution and moved files into webserver docroot

  1. $ mv drupal-6.0-beta3/* .
  2. $ mv drupal-6.0-beta3/.htaccess .

7:21 Set up database in the control panel

7:22 Connected with web browser to website. I'm taken directly to the Drupal install screen and can choose to install in English or other languages. To install in a different language requires downloading a language pack and unpacking it into the directory. This could be made smoother, I suppose.

Drupal, Drupal 6
2007-11-23 21:43
First impressions of Drupal 6

Drupal is moving forward, and the team is getting ready with Drupal 6. I'm doing a test installation and live-blogging what I see as I do it.

I first went into my web hosting control panel, and added a new mysql instance. Since the Drupal 6 beta 1 page says this beta version should not be used on production sites. We've resolved most errors reported so far, but there are outstanding known issues in bold letters, I'm not converting a production site (yet). Instead it's a test site on one of the "spare" (unused) domains I own.

Installation steps were:-

2007-09-21 21:16
Syndicate content