drupal

Posterous and single user Drupal blog

Posting to Drupal via Posterous requires that the blog module is enabled which is not what you want if you have a single user blog/site. Each new Posterous post will be created using the "blog entry" content type. I only use page and story content types so those entries ends up in it's own blog page.

A quick googling and I found the solution for single drupal users here: http://bmannconsulting.com/2830/web-development/posterous-doesnt-work-dr...

You only need to add a few lines to the blogapi.module and you can also disable the blog module.

Starting from line 187 in the blogapi.module:

...
if ($blogid !== 'blog') {
  if (($error = _blogapi_validate_blogid($blogid)) !== TRUE) {
    // Return an error if not configured type.
    return $error;
  }
} else {
  // change 'article' to your content type of choice
  $blogid = 'article';
}
...

I will initially probably only use Posterous to push photos that I want to upload to my site and flickr at the same time. It's a great feature to be able to do that using email only!

Fix PHP 5.3 timezone warnings for drupal

I recently installed drupal 6.14 on Snow Leopard and got these timezone warnings.

warning: strtotime() [function.strtotime]: It is not safe to rely on the system's timezone settings. 
You are *required* to use the date.timezone setting or the date_default_timezone_set() function. 
In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. 
We selected 'Asia/Tokyo' for 'JST/9.0/no DST' instead in /Users/<user>/Sites/drupal/sites/all/modules/views/modules/node/views_handler_argument_dates_various.inc on line 67.

Enable clean URLs for Drupal 6.x on Snow Leopard

By default clean URLs cannot be enabled on Snow Leopard (Macbook pro) unless one of the following prerequisites is done: