Blog

Posted by: 
Dominique De Cooman

When installing a xampp on mac os Mysql could throw an error #1153 - Got a packet bigger than 'max_allowed_packet' bytes
Solution : Extend the max_allowed_packet size located in Application/Xampp/xamppfiles/etc/my.cnf

On windows systems the file is called my.ini
On linux systems it is also my.cnf

Posted by: 
Dominique De Cooman

Clients often ask for clean urls in file names because they want to publish them in magazines so they want urls as clean as possible. H

Here is how to do this using mod_rewrite rules in htaccess:

In your .htaccess file of your drupal root folder you add following line.
For example :

Posted by: 
Dominique De Cooman

This post provides a little bit of documentation about the feedapi.
There is no setting to choose how long your feed items are cached. The default cache time is 3600 sec. Which mean when you re testing the feedapi your feed isnt updated immediatly.

Posted by: 
Dominique De Cooman

Used to resize images, scale and crop images. Use it allot.
Install the image cache module. Create a preset and call it with this function.

<?php
example $image 
theme('imagecache''nieuws_teaser'$node->field_image[0]['filepath'], $node->field_image[0]['data']['alt'], $node->field_image[0]['data']['title'], array('description' => $node->field_image[0]['data']['description']));
?>

Posted by: 
Dominique De Cooman

Corresponding node references is a module I contributed to drupal.

What does it do:
It syncs the node reference between two node types which have a nodereference to each other, so double editing nodes is no more needed. If one node has a reference the other node receives also a reference to the saved node if it is referenced in that node.

Posted by: 
Dominique De Cooman

The vocabulary edit form hardcodes the value of the 'hierarchy' flag to '0', therefore resetting it when the form is submitted and the vocabulary saved. (from drupal.org)
You also need to resave your vocabularies.
You will probably have discovered this bug while working met facetted search.

What should you do?
Change in taxonomy.admin.inc line 172 from

Posted by: 
Dominique De Cooman

I created a new drupal module called trees.

What does it do?
The trees module is based on the book module. Like the book module the trees module allows users to structure nodes in a hierarchy or outline. The main difference is that the trees module supports adding one node to multiple trees which the the book module does not. The output is also different. The book module provides a navigation, the tree module does not. Instead it produces for each tree a set of blocks, being the parents of a node, the siblings and the children.

Posted by: 
Dominique De Cooman

Dutch
Inhoudcoderingsfout
De pagina die u wilt bekijken kan niet worden weergegeven omdat deze gebruikmaakt van een ongeldige of niet-ondersteunde vorm van compressie.
Neem contact op met de website-eigenaars om ze te informeren over dit probleem.

English

Content Encoding Error

Posted by: 
Dominique De Cooman

Problem: You want to know the next id for the nodes. According to drupal you should use db_last_insert('table', 'field'). It returned allways zero for me.

What is the solution to overcome this problem? use SHOW TABLE STATUS WHERE Name='node' in the returned object you 'll find the next value for the autoincrement.

Posted by: 
Dominique De Cooman

This means drupal cannot find your callback to your form.
Possible causes:
1) Drupal cannot find your function because the php file containing the function is not loaded.
2) You made a typo :)

Pages

Subscribe to Blog