Stalski Expose database fields to views in a custom drupal module

Developers who wrote a custom node module in drupal will know that you always have to make a couple of choices at the start of a project. Will I write a custom node module or use CCK to generate a content module. Or when using views, you might ask yourself it is better to write your own view. Or could it be wiser to use it all and take the best of all things into your project. Once I have such questions, I hear a little voice in my head “Time to test and compare”.

Read More      4 Comments »

Hangman: Importing a design in Flash CS3

Starting with phase 2 of the Hangman Game project, we’ll be importing a design made in Photoshop to Flash CS3. This won’t be a step-by-step tutorial on how to export Photoshop layers to jpg’s and png’s. It’s more of a guide on what choices to make, and which techniques you can use to do that. [...]

Read More      No Comments »

Sortables in a custom node form

Draggables and sortables are commonly used in the drupal core. Taxonomy, menu, cck, … . The items that are sortable always belong to ‘a parent’. If this parent is listed as sortable in another parent, then it is a cascading system with a maximum of levels. The typical tree listing together with draggable handle icons, will tell the users that they can drag. This belong to relation controls a parent with its children that all have a positional sortorder variable. In Drupal, these are called weights. I wondered if this could be quickly implemented in custom modules where you have this relation ship. Since this is everywhere in drupal, why not do the test now?

Read More      3 Comments »

Hangman game in Flash

For those who don’t know me yet; I have a real passion for playing games. Ever since i’ve started to learn Flash & Actionscript, what I enjoyed most was making little games. Times haven’t changed, and those old feelings have been coming back to me. I thought it was time for me make a little [...]

Read More      1 Comment »

Hooking drupal s’ logout button with jquery

In a project I am working on, I had to hook the login and logout of drupal, so that an extra action would be taken. More specific to my case: when logging in and/or out of a drupal, the same action should be taken for another session to a second server.

As drupal login and logout are buttons that are built in Drupal, It had to work around it. The most common solution would be to add an extra class attribute to the links that performed the logout. This class then could be triggered with Jquery to override the logout button to handle things differently. You could think of it as branching the logout task. In stead of going to a different page to perform logout, we call two pages with Jquery’s AJAX methods.

Read More      2 Comments »