Blog

Posted by: 
Dominique De Cooman

If you have php5 you should use simplexml: http://be.php.net/manual/en/book.simplexml.php
If you're on php4 you can use the class simplexml44 which is a backport of the php5 simple xml class http://prdownloads.sourceforge.net/ister4framework/simplexml44-0_4_4.tar...

Why use this?
It has all the functionality you ll need build in. So no need to try create your own parser.

Posted by: 
Dominique De Cooman

This post provides the code to import a basic node into drupal and the method for using cck fields.

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.

Pages

Subscribe to Blog