Archive frjo February, 2008

Drupal seminar for Xelera Communication

I just got back from Göteborg (in south west Sweden) where I have been teaching Drupal to the developers and designers of Xelera Communication.

Xelera build and designes webb-sites, e-commerce solution and does Internet marketing. They have become interested in Drupal and wanted me to kick-start them. I had sessions on Theme building, module development, multisite installs and site building with CCK+Views.

Spice up your Drupal 5 site search field with a bit of jQuery

Notice the search field here on xdeb.org? If you have JavaScript turned on you get the enhanced version with a nice placeholder/hint that disappears when you click in the field. The search button is hidden also, I assume everyone just hit return to to the search anyway so it just take up space.

If you use Safari, or any other Webkit browser, the search field is even more enhanced. Here how it looks for you who don’t use a Webkit browser.

Safari search field example

Aside from looking gorgeous, it adds value in terms of an enhanced user-experience. It works just like any other search field on Mac OS X. If you just want the nice Safari search field, take a look at http://drupal.org/project/safarisearch.

All this is done with JavaScript on the original Drupal search form ensuring graceful degradation. If you turn of JavaScript all that happens is that you get the standard search field and button.

Here follows the code I use to implement this here on xdeb.org.

pippi's blog here on xdeb.org

Screenshot of pippis blog

Built a new theme based on a design by Masumi. The Drupal Thickbox module was made for this blog as well as the modified inline module.

Nya teman på xdeb.org för frjo och pippi blogg

xdeb01 screenshotTemat på denna blog behåller färgen men är i övrigt helt nytt. Enklare och mer stilrent. Smärre justeringar kommer säkert att göras framöver men i stort är jag mer än nöjd.

Pippis blog har fått ett riktigt tufft och modernt tema med transparenser och allt. Båda teman är designade av Masumi, hör av er till henne om ni vill fräscha upp er egen hemsida.

Dessa nya teman fungerar, men ser inte så snygga ut, i Internet Explorer 6 då den inte klarar av transparens eller modern CSS. Internet Explorer 7 har varit ute i över ett år så se till att få tummen ur och uppdatera kära Windows-användare. Ännu bättre är förstås att byta till en modern och trevlig webb-läsare som Firefox, Safari eller Opera.

För oss som kör Safari har xdeb.org numera ett tjusigt sökfält i Mac-stil. Förutom att det är snyggt så sparar det en historik på sökningar. Ska skriva en blog om hur man fixar detta i Drupal-teman framöver.