Blog

Posted by: 
Dominique De Cooman

This post provides the code to create a user programmatically in drupal 5 (simple version without profile fields)

Posted by: 
Dominique De Cooman

List of country codes and names in php array (key = code and value = name in english)

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.

Pages

Subscribe to Blog