archives

Posts tagged Custom Drupal module

Create a youth community site for actress Kimberley Crossman.
"It has been a pleasure working with you and your friendly team at cre8d design throughout the time in which you created us an amazing website. You took the time to understand exactly what we were trying to achieve, gave helpful recommendations when required and used your creativity and initiative to satisfy our brief. We would like you to know how pleased we are with the outstanding service you have given us and we look forward to a continuing relationship."
Create a brand new daily online current affairs magazine, Pundit.
""You were really patient with people who had limited technical understanding, quick to understand what we were after and efficient in delivering a site that's received many compliments for its crisp look and functionality.""

You may remember I blogged about the concept of a personal+community tag cloud some time ago.. well, finally we have been able to launch an example of this!

New Zealand television website throng.co.nz has today launched a world-first web 2.0 television listings format.

In development for more than two years, the new format replaces the traditional TV guide grid and makes it easier to find what is on at a glance.

Shows are displayed based on what is on now, what starts in the next hour and what is on in prime time tonight. Shows are weighted according to popularity on throng.co.nz.

Members of the website throng.co.nz personalise their listings to highlight their favourite shows and hide ones they’re not interested in.

“We’ve thought long and hard about TV listings and what we’d like them to be. We found traditional listings hard to scan because they’re organised by channel and you can easily miss things. We’ve removed the clutter and made your choice simpler,” says co-founder Regan Cunliffe.

See the new look listings from today at throng.co.nz.

Digg This Module

April 8 2007
by Rachel

Last week we began noticing a problem on Throng. Some pages were taking a ridiculous time to load (~3 minutes!) all of a sudden. We hadn’t changed any code recently, so checked in with our host, Media Temple. We’ve had a few headaches with them as a host this year as their grid service had some serious growing pains but this time, everything seemed to be OK from their end.

We scratched our heads and tried all sorts of things: we put the site in offline mode and turned off all the ad server code we were using, just in case there was a problem with one of their servers. No change: still 3 minutes to load some pages. And during those 3 minutes, nothing on the page displayed at all. We installed the devel module which helps identify database problems and load times. We added in timers at various parts of the template to find out where the problem was occurring. Still no clues. We turned off lots of modules to see if it was one of those. We tried using Firebug and the Web Developer Toolbar extensions for Firefox to see if it was any of those. We went on the Drupal irc channels and talked to some people who thought it was the host’s problem, not ours. I wasn’t convinced.

Someone gave us a vital clue: a 3 minute time to load sounded like a timeout on an external service of the default of 180 seconds. We finally remembered about the Digg This module that we’d been using for some time on the site, without problem. Turning this off solved the problem!

I wanted to understand why a module like this could suddenly bring a site to its knees and why it happened all of a sudden.

Looking through the module’s code, there is a snippet which interacts with Digg’s API:

function _request_diggthis($url) {
global $digg_story_url;
$request_url = 'http://services.digg.com/stories?link='. $url;
$ch = curl_init($request_url);
curl_setopt($ch, CURLOPT_HEADER, 0);
ob_start();
curl_exec($ch);
$xml = ob_get_clean();
curl_close($ch);
...

After some googling, I found there are others out there who are saying that Digg changed its API last week and it stopped their 3rd party Digg this plugins from working on Wordpress as well as on Drupal. If Digg has changed its API and broken a lot of people’s code, then that seems like a big deal to me. Meanwhile, Digg has recently provided more and more ways of having a Digg this button on your site with some simple code.

I’ve submitted an issue for the Digg This module for Drupal and hope that others won’t have the same headaches that we’ve had trying to find the source of the problem!

We recently launched Throng – for TV fans which is proudly made using Drupal. Here’s some features and information about the modules we used:

Each user gets a blog and categorises their posts in two ways: once using the type of post (rant, rave, gossip, spoilers, news etc) and once with the name of the show(s) they’re writing about.

This way, people can follow their favourite blogs, or just read news/spoilers etc, or just read posts about a specific TV show (e.g. Grey’s Anatomy or The O.C.. There’s also a forum view, if people prefer looking at the content that way.

Because the list of shows is rather long (and growing as people post about other shows), a special page was created with the help of the tagadelic module.

The taxonomy image module has enabled each show has its own picture.

The love/hate module has meant that people can list the shows they love/hate. And when they go to the shows page and they’re logged in, the colors of the show change to pink/blue depending on their preferences.

Thanks to the Amazon Associate Tools and Currency Exchange API, we have our own Shop with pricing in local currency. The exchange rate is daily when cron is run.

The Bookmarksmodule has meant that members can add their favourite blogs to the sidebar of their blog. The module has been adapted so these bookmarks are public.

The Views module has been invaluable.

Other handy little modules include: Smileys, Word filter, URL filter, Private msg, Google Analytics and Forward. A few custom modules have also been written.

Create Throng, a TV community website using Drupal.

Elsewhere: Skype MSN Messenger Twitter Facebook