10 Mar 2010

feeddrupal.org aggregator

Boombatower Development: Upgrading theme() calls with Coder Upgrade

A lot of effort has been poured into the upgrade routines for Coder Upgrade as evidenced by the green check marks on this page. (A side note: so far, duellj is the only person to show up for the upgrade barn raising and much thanks to Jon is due. If you are up for a challenge, help is still welcomed and needed to write and/or test routines.)

An interesting example of an upgrade routine is the theme() function call change. This upgrade involves "array-itizing" the variable parameters. For example, this:

<?php
theme('user_list', $users, $title);
?>

becomes in D7:

<?php
theme('user_list', array('users' => $users, 'title' => $title));
?>

The twist involves finding the keys for the associative array of variables.

Sparing the details, Coder Upgrade will insert the proper keys for any theme defined in D7 core files (includes and modules directories) as well as themes defined by the module being upgraded.

read more

10 Mar 2010 6:24pm GMT

Lullabot: Drupal Voices 79: Daniel Kudwien and his many Drupal development contributions

Daniel Kudwien (aka sun on drupal.org and tha_sun on IRC) of Unleashed Mind is a prolific Drupal contributed module author, but also Drupal core developer.

He discusses some of the well-known modules that he helped author and maintain, such as WYSIWYG, Admininstration Menu, Image Assist, Inline, and Demonstration Site.

He's taken it upon himself to make sure a lot of the Drupal 7 APIs have been standardized and cleaned up as much as possible, and also rallied a lot of help on tackling Drupal's oldest standing task of "Node 8," which is allowing users to cancel their own accounts. Sun also gave a heroic effort on helping on many of the different exception patches during the code slush period, and fellow developer chx commenting that he's never seen anyone sprint for Drupal.

10 Mar 2010 6:08pm GMT

Kristof De Jaeger: Contextual links backport - more or less

Drupal 7 now comes with the contextual module which makes it very easy to edit your site as there are inline action links available on your content, blocks and so on. There are a few modules out there available for D6 - block edit and admin:hover come to mind - which offer the same functionality but are different when it comes to interface and/or extendability.

We decided to write a new module from scratch with the UI in mind of the D7 version, also taking care of performance and the need for easy extendability including hooks (duh) and static actions which allows us to have a static variable during the page request which can collect stuff from all over the place. You can test it out at http://demo.customsource.be/content/home with demo/demo. Surf to the 'articles' page which has contextual links for views, nodes & blocks.

What happens next ?

read more

10 Mar 2010 4:42pm GMT

Development Seed: Drush 3.0: More Powerful, Flexible, and Magical

Some examples of what you can do with the latest Drush

Over the last few years Drush has matured significantly and has seen an incredible uptake in usage. It's become indispensable in the day to day workflow of innumerable Drupal users and has been accepted with open arms by contributed module developers who are finding new and wonderful functionality to expose via its clear command line interface.

What not many people realize is that beneath this simple command line API beats the heart of a far more flexible and powerful beast. Drush was written with re-use and scriptability in mind, with this entire concept deeply ingrained in its design, and this is a large part of what gives it its power and flexibility. This will be even more apparent in Drush 3.0.

Below is a rundown of some useful things you'll be able to do with Drush 3.0.

read more

10 Mar 2010 4:15pm GMT

Localize.drupal.org: More improvements on the staging site, feedback is still welcome

I've announced our staging site for localize.drupal.org two weeks ago, and some people did take on the opportunity to test out the site and provided valuable feedback. Fixes and improvements are rolled out continually on the site. Since the staging site was set up with a completely revamped user interface to translate text, the following changes made their way onto the staging site:

read more

10 Mar 2010 1:34pm GMT

Dries Buytaert: City of Athens using Drupal

The City of Athens has launched a new Drupal site to serve as its official website, along with a Drupal-based site at http://www.breathtakingathens.com/ that provides visitor and tourism information.

Athens is a large city (3.5 million residents and 6 million tourists each year), with a large tourism base due in part to its role in the 2004 Olympic Games. To support the city's needs, the site includes a large calendar of city events, a comprehensive map-based index of city services and interactive tools that allow citizens to access city resources. The site builds on Drupal's multilingual capabilities to provide information in both Greek and English.

City of athens
Breathtaking athens

10 Mar 2010 11:20am GMT

Stella Power: Migrate module: migrating a node's taxonomy terms

One of the issues I encountered when migrating nodes to Drupal, using the migrate module, was that I couldn't associate nodes with more than one taxonomy term. Actually in this example, I'm migrating content from one Drupal database to another, so I'm going to assume everyone is already familiar with the database structure, specifically the node and term_node tables.

When I first started using the migrate module, I ran into a similar problem with migrating a user's roles. It's not possible to just create a Views relationship (aka LEFT JOIN) between the node and term_node tables using the node id. This will produce one row for each node and taxonomy combination, but the migrate module is only able to handle data sets that contain one row for each entity. With the above solution, I have more than one row for each node, which causes the migrate module to import the same node more than once, causing all sorts of problems.

Like with the user roles example before, we can overcome this by implementing a migrate hook, specifically hook_migrate_prepare_node().

read more

10 Mar 2010 9:42am GMT

09 Mar 2010

feeddrupal.org aggregator

Justin Miller: Drupal module: Advanced Comment Trigger

I have to admit that I've got it pretty good in the website spam department. The Mollom project, started by some of the same folks who started Drupal, uses content analysis to keep spam users from registering accounts on my site, leaving blog & forum comments, and using my site's contact form to spam me via email as well.

The only problem that I've really seen is the rise of spammers who will post blog comments containing text from the blog post itself, almost entirely unchanged, along with one or more links to their sites. Content-based analysis is of no use here, since the majority of the comment is actual text that I would want on my site -- after all, I blogged it!

Until now, I've been following all blog comments to my site via built-in RSS feeds, noticing spam comments some time after they were posted, and going back and deleting them. Drupal allows for comment moderation, but I want comments to go out there right away.

read more

09 Mar 2010 10:49pm GMT

Lullabot: Which Simpsons character best represents the Drupal community?

In preparation for the Bringing it All Back Home: CMS Communities panel at SXSW, which I'll be speaking at on Saturday, I posed the following question on Twitter and in #drupal:

Which Simpsons character best represents the #Drupal community and why?

And the winner, in terms of number of responses, was...

Lisa Simpson
Lisa Simpson

And here were the others. Feel free to comment too with your own. :)

read more

09 Mar 2010 9:29pm GMT

Lullabot: Customizable Header Images for Your Drupal Theme

The dark days of Drupal theming are history. Today, it's pretty easy to find a slick design for your site, and if you need to build one from scratch there are great training tools to make the process painless. (Shameless plug: Lullabot's Theming Basics and Advanced Theming DVDs are a great resource!)

What's still relatively uncommon, though, is support for user-friendly customization by non-designers. Drupal 5 shipped with the re-colorable Garland theme, and a handful of themes support the same feature via Color module. The Nitobe theme offers a choice of header images; Development Seed's Singular theme lets administrators upload a custom background image for a site; and TopNotchThemes' Fusion theme allows administrators to choose fonts and switch from fixed-width to liquid layout using a settings screen.

read more

09 Mar 2010 8:56pm GMT

Lullabot: Drupal Voices 78: Wolfgang Ziegler on the Rules Module

Wolfgang Ziegler (aka "fago") talks about the Rules module, and how it can be used by non-programmers to set up a series of events that are executed after certain conditional triggers happen. Fago claims that this is a more robust solution that Drupal's core trigger module functionality.

The Rules module in Drupal 6 is an evolution from the Workflow-NG module in Drupal 5, but renamed to reflect that it can do much more than just workflow.

There was also a Summer of Code project by klausi that integrated into the Rules package as the Rules Forms module.

Fago also talks about the future of Rules and how he plans on improving the APIs so that it's more extensible to add in loops and new features, and to have Features module integration with rules so that it's possible to and re-use rules.

09 Mar 2010 6:13pm GMT

Drupalcon SF 2010: Training classes at DrupalCon San Francisco

You still have a week before you can personalize your conference schedule, but the time to sign up for one of the DrupalCon pre-conference events is now. This year, we have added all-day trainings to the already robust DrupalCon offerings.

09 Mar 2010 5:09pm GMT

Damien McKenna: Fix for Nodewords module's faulty canonical tag feature

The Drupal module Nodewords is a module that many people have come to love-to-hate - its SEO features are second to none, but a few buggy releases have left a sour taste with many developer.

read more

09 Mar 2010 4:51pm GMT

Be Circle: Be Circle Podcast 5: PayPal, Mobile Payments, Toronto Drupal Design Workshop, Accessibility

Audio Podcast:
audio/mpeg icon
episode5-03102010-2.mp3

Be Circle Podcast 5: Pay Pal, Mobile Payments, Community events, Accessibility, Artisteer and the weather in Toronto.

This week I talk about:

read more

09 Mar 2010 4:24pm GMT

Development Seed: Open Atrium Improving Team Communications On the Ground in Pakistan

DAI using Open Atrium to help their GIS teams in Pakistan communicate

Development Alternatives Inc. (DAI), one of the leading international development contractors, has deployed Open Atrium to help its GIS team in Islamabad communicate with its office in Peshawar and headquarters back in Bethesda on a capacity building project. In addition to improving team communications, they decided to use Open Atrium to boost the project's transparency for USAID and to get a sustainability win by using open source software that can stay behind with the local team in Pakistan long after the mapping project is completed.

How Open Atrium works.

Below is a short Q&A I had with Andrew Ross from DAI's GIS office about his work and how Open Atrium is helping.

Can you tell us about your project and your team in Pakistan?

read more

09 Mar 2010 3:25pm GMT

Linnovate: Linnovate goes mobile!

As the web evolves, we evolve with it. The introduction smart-phones to the general public, in a mass, together with lower costs of cellular internet connectivity and availability of wireless networks, all lead to an increasing demand to supply mobile application, to go with a website or service. iPhone started the storm, and Android is catching up rapidly. Other mobile devices are not staying behind.

Few years back we were amazed by our possibility to be mobile, while staying accessible and reachable. Now, the net goes with us, anywhere we go, we are not only mobile, we are in constant connection to information, friends and services. All this information is usually saved on a server somewhere. On this server each one has an identity, assets that are associated with this identity, friends, pictures, preferences etc. Sounds familiar? Right - all of the above are native in Drupal.

read more

09 Mar 2010 2:55pm GMT