theming

Light Fantastic; Backporting A Great Drupal 6 Contrib Theme To Drupal 5

UPDATE: Buddhika Amila Sampath created the Light Fantastic theme, not Joshua Brauer. Joshua is the maintainer.

Screenshot of lightfantastic theme I recently searched on Themebot for a great contributed Drupal flexible-width theme for DrupalSouth.net.nz and found Light Fantastic. Joshua Brauer maintains the awesome Light Fantastic theme, which was created by Buddhika Amila Sampath as part of the Google Summer of Code 2007.

Screenshot of Light Fantastic on the DrupalSouth website:
Screenshot of Light Fantastic on DrupalSouth.net.nz
See a larger image.

Themers: Put IE6 to pasture?

Submitted by Trevor on August 22, 2008 - 12:01pm.

If you're a themer, you know you want it. You crave for it every day. It's a hunger, never relenting, pushing you closer each day towards the brink. You'd consider doing just about anything -- legal or otherwise -- to end the agony of using Internet Explorer 6.

Customizing "View More" Links In Views 1 For Drupal 5

Submitted by Bevan Rudge on August 20, 2008 - 1:55am.

A short, quick and easy tip for views theming and customization.

To customize the text or the destination path/url of a 'view more' link in Views. Add this to template.php in your phptemplate theme and add cases.

<?php
/**
* Override theme_views_more() to set custom link texts and destinations.
* @param $path String
*   The destination of the more link.
*/
function _phptemplate_views_more($path) {
 
$text = 'more';
  switch (
$path) {
    case
'foo/bar':
     
$text = 'doh';
      break;
  }
  return
"<div class='more-link'>" . l(t($text), $path) . "</div>";
}
?>

Video of Scalable Theming Session from Drupalcon Boston

Drupalcon Boston sessions were all recorded on video and have been made available on archive.org, thanks to numerous drupal community members and other Drupal resources.

(This is quite out of date now, but better late than never.)

Here are the videos from my talk on Scalable Theming: Theming for 100s of node types, CCK fields, and views:

What Does A "Themer" do? What Is A "Themer"?

Submitted by Bevan Rudge on April 29, 2008 - 5:33pm.

Have you ever wondered what a "themer" actually does? How are they different to a designer and a developer? In it's simplest sense a themere takes a flat static image, the design, provided by the designer, and a mostly-functional but ugly site, provided by a developer, and makes the ugly site look pretty like the designer wants it.

This timelapse by Matthew Buchanan of the theming of nzmusicmonth.co.nz sums up that process:

PNG Images, Transparency & IE6: Answers To Theming-Hell

I would never use a drupal module or javascript to fix IE6 suckiness with transparency in 24-bit PNGs.

After battling IE6 and image transparency on many sites I always do one of three things when tackling this issue:

  1. Firstly, if only binary transparency is required, I use an 8-bit PNG file. Binary transparency means that each pixel is either transparent xor colored (but not both, hence 'xor' for the eXclusive-or. When can we add 'xor' to the English dictionary?). The pixels in a 24-bit PNG can be both colored and transparent, and have 'alpha' transparency as opposed to binary transparency.

Technical Tuesdays: #theme Form Elements into tables

Submitted by doug on January 22, 2008 - 8:00am.

Forms API (FAPI) is one of the coolest pieces of Drupal.

The power and flexibility of hook_form_alter has made it possible to change the behavior of a module, without actually modifying any code in the original module, and has created a whole new class of "helper" modules that enhance the capabilities of existing modules. But this article isn't about form_alter.

Dropping sidebars from Panels pages with panels 1 module

Submitted by GregoryHeller on August 21, 2007 - 5:11pm.

A few people at the Seattle DUG have asked me how to drop sidebars from panels generated pages. With Panels 2, this is made easy, just a configuration setting. However if you are using the original panels module, you'll need to add a little snippet of code to your theme's template.php file:

// Hide sidebars on panel pages