What am I talking about?

Open Source Music Player - A Follow-Up on MP3s

I actually have loads of exciting things to blog (well, what you may find exciting is a very subjective thing, but you know what I mean). In the last week I've been back full time on WhatTalent, the "beta" version of Mums+ is practically ready and I've released another module (more about that in my next entry).

MP3s And Drupal - What Works?

I've been doing more planning than Drupaling over the last few weeks, hence the lack of blog posts, but here's a new one for you:

Final Version of Views for 5.x Has Taxonomy Issues

The other day I decided to use the "Terms in XXXXX" taxonomy filter type in Views 5.x-1.6 and I noticed a little bit of a problem. In my list of taxonomy terms, the first/lightest term was missing so I couldn't select it. This was the same when the filter was exposed. Since I was using it on WhatTalent.com to allow people to select a community to view media from, it was a real problem!

Flexiforum Released

I have created a project page on Drupal.org for Ben's module, Flexiforum:
http://drupal.org/project/flexiforum

It's a great little alternative to the core forum which I sincerely hope will go from strength to strength. Please do download it and try it out. It should work with BBCode and Node Comments as well as supporting forum search and reply with quote - neat features. =)

Duplicate Keys: Repairing The Sequences Table

So normal service resumes. Well, just about, at any rate.

Just a quick entry today about the 'sequences' table in the Drupal database. If you've ever seen this sort of error and not known what to do, then you'll find this post extremely useful:

Duplicate entry '4' for key

Now For Something Completely Different

in

I am currently out of action because of this:
http://www.facebook.com/album.php?aid=18464&l=8335a&id=508063631

My beautiful baby daughter was born on Sunday and I'm now a full time carer for the next few weeks. Drupal blog will resume shortly.

Form Redirection: A Special Case

Most of you are probably familiar with using the Form API (either via hook_form_alter or when building your own form) to set the destination a user is sent to after submitting a form.

<?php
function mymodule_form_alter($form_id, &$form) {
  if (
$form_id == 'page_node_form') {
   
$form['#redirect'] = 'my/new/page';
  }
}
?>

This usually works, but today I came across a special case.

What if you want to redirect users back to the referring page after they submit a new node? Sounds simple enough, right? You'd probably do something like this:

<?php

CVS Saviour

If you want to contribute to the Drupal project, you need to know how to use CVS. It's a version control system, like Subversion, but older and clunkier. Still, Drupal have been using it for *years* so I can hardly blame them for not switching. From the command line in Linux it's straightforward enough, and anyway, I can't talk because they're not switching from CVS for the same reason I'm not switching from Windows (even though it would make far more sense for me to abandon Microsoft and install Ubuntu). In a word: hassle!

Meaningless mysqli Errors

I was installing a fresh copy of Drupal on Ubuntu this morning when I hit upon a problem. Half way through the installation script, Drupal kept throwing this at me:

PHP Warning: mysqli_error() [function.mysqli-error]: invalid object or resource mysqli

Followed by the equally useless:

Unable to connect to database server. The MySQL error was: .

Well thank you very much, Drupal. The message might as well just read "Something broke!"

Learning Linux

Let's be honest, Linux is a bit of a faff. It's great once you've gotten your head around it, but getting there is a slow and painful journey and even when you're there, if you don't use something for a while you inevitably forget about it and find yourself scratching around forums again, just to achieve something really basic and simple.

Don't get me wrong, most of our home computers now are running Ubuntu without issue, and that's nice and user-friendly, but CentOS, for example, is not. And as a web developer there is no hiding from the fact you need to know how to use bash.

Syndicate content