Blog

Posted by: 
Dominique De Cooman

We're providing a code to put in your template.php and add new regions.

Posted by: 
Dominique De Cooman

Comparing date in YY-MM-DDThh:mm:ss format to Unix timestamp or even a date from the same format can be done by using the mysql function UNIX_TIMESTAMP().

Posted by: 
Dominique De Cooman

To translate a views title, copy the theme_views_view function which you find in your views.module file and put it in your template.php file.

Posted by: 
Dominique De Cooman

This article explains how to switch your theme. In our example we will switch the theme if one of the fields of our node has a certain value.

Posted by: 
Dominique De Cooman

When you enable the i18n module you'll probably want a different homepage for each language.

Posted by: 
Dominique De Cooman

This means php ran out of memory.
You can put

ini_set('memory_limit','128M');

into your index.php in drupal. This assures that the memory limit is extended everywhere.

Posted by: 
Dominique De Cooman

You have a node type containing an image field. You want to construct a feed containing the image (and node title) but the image needs to be resized to a format you don't use on the site.
I'll explain how to do it.

Posted by: 
Dominique De Cooman

Use this function if you want to pass extra variables to a tpl.php file.

Posted by: 
Dominique De Cooman

Given a page with multiple instances of the same form (which use the same form id), your form submit() function may not receive the anticipated set of form values for the form the user has submitted. The values you get may not be from the form attached to the submit button the user clicked, but values from a different form with different values which is using the same form id.

Posted by: 
Dominique De Cooman

This module turns dominique@dominiquedecooman.com into

<a href="mailto:&#100&#111&#109&#105&#110&#105&#113&#117&#101&#64&#100&#111&#109&#105&#110&#105&#113&#117&#101&#100&#101&#99&#111&#111&#109&#97&#110&#46&#99&#111&#109">

in the html code. Preventing your email being harvested by spammers.

The code in the module can be found on http://drupal.org/node/151638
I just put it in a little module ready to be downloaded and installed.

Pages

Subscribe to Blog