Blog

Posted by: 
Dominique De Cooman

If you are looking to exlude feedapi nodes or webform nodes or maybe even node-types you ve created yourself using cck from your search results because they are not relevant.

Use http://drupal.org/project/search_block

Install and go to the settings page(settings > search > tab)
You ll be able to restrict nodes on a content type base from your search.

If your site was allready indexed you should re-index it. Go to settings > search to do it. Run your cron until everything is indexed.

Posted by: 
Dominique De Cooman

I discovered this flaw in the mimemail module when working with send module in a multilingual site.
In the mimemail.module the function mimemail_html_body() gets called which you ll find in the mimemail.inc file.
Here in the preg_replace _mimemail_url() gets called which will format all your urls in the mail.

Posted by: 
Dominique De Cooman

This post will explain how to host multiple drupal sites using only one url on linux.
We have two sites a Dutch site and a French site and we want to host it under one url.
Setup your folders in de sites folders. Create a directory for the french site and create a directory for the dutch site. Both will have their own settings file.
In the root of your drupal installation create two symlinks. The two symlinks will point back to the root of your site.

Posted by: 
Dominique De Cooman

Download the image pub module
Install and enable.
Go to admin/settings/image_pub download the file for xp
Edit the file and change

Windows Registry Editor Version 5.00

Posted by: 
Dominique De Cooman

In one of my posts I told about a technique to use multiple drupals in one database using prefixes http://dominiquedecooman.com/blog/how-run-multiple-drupal-installations-...

There is nothing wrong with this technique IF you start off with that setup.

But if you have multiple sites and you ve ALLREADY developed your sites using multiple databases and you want them REUNITED in one database. You should be aware of the following issue:
Drupal 5 uses the sequences table to keep track of autoincrement of node ids user ids, etc...

Posted by: 
Dominique De Cooman

Are you using a content type with revisions enabled?
This is incompatible with faceted search which builds it's query on the nid and not on the vid. For example if you edit a node with nid 10 and vid 20 and a term tid 1. A new entry in the term_node table is inserted: nid 10 vid 21 tid 2. The faceted search module will build a query using the nid and tid only. When you filter in your search for the term with tid 1 the module will query on tid 1 and will still find the node with nid 10 but it's the wrong revision of that node.

Posted by: 
Dominique De Cooman

Apparently when your line length exceeds 998 characters an exclamtion mark is placed in your mail. This is exactly what happend to us when we tried sending a hmtl newsletter using simple news and mime mail module.
When using thunderbird you can see the source of your email. (with other clients probably too) You ll see the html part of the multipart mail is one line. Which offcourse exceeds the line length. Resulting in many Exclamation marks in your mail.
The Solution:
You ll have to chunk up your email before it reaches the mail() function.

Posted by: 
Dominique De Cooman

Put a file in the root of your website folder.
Put this in the file if you dont want your site indexed.

User-agent: *
Disallow: /

Posted by: 
Dominique De Cooman

You ll use the drupal theming system because you want to seperate presentation from logic.
The possibilities
A simple theme function like in drupal 5

Posted by: 
Dominique De Cooman

Css trick make style rule only apply in ie6 - solve padding issue in ie6

Pages

Subscribe to Blog