Blog

Posted by: 
Dominique De Cooman

It's impossible to override this function.
Why? Look at the functions name. It confusses drupal thinking its an implementation of hook_theme(). So any override in template.php using phptemplate_tiny_mce() or theme_name_tinymce_theme() wont work.
You need to patch the module.
If you want to add a text area that doesnt need tinymce just add an other rule shown by the id of 'my-textarea'.
<?php?>

Posted by: 
Dominique De Cooman

This is the situation:
You have two drupal sites with each a database. Your hosting allows only one database.
This is your solution:
Prefixing!

Posted by: 
Dominique De Cooman

Go to windows host file (C:WindowsSystem32driversetchosts) and add :
Or on linux go to /etc/hosts and add
127.0.0.1 name_of_your_host

Go to the httpd.conf file in appache and add :

NameVirtualHost *:80
<VirtualHost *:80>
  ServerName name_of_your_host
  DocumentRoot "C:wampwwwname_of_your_host"  //or whatever the path to your host is
</VirtualHost>

Posted by: 
Dominique De Cooman

locale language files don't get rebuild and they keep generating page not found errors.
This post provides a fix to rebuild the lost translation files.

Posted by: 
Dominique De Cooman

I just discovered a very handy api to import taxonomy.
I needed to do something very simple import some terms into a vocabulary (no hierarchy, no related terms, just tags..).
It is included with the taxonomy csv module in the file taxonomy_csv.api.inc

Posted by: 
Dominique De Cooman

I was trying to post to a webservice and was getting the 60 error code: Peer certificate cannot be authenticated with known CA certificates. .
The webservice I was trying to reach was over https.
The solution is very simple.
You need to set curl not to verify the ssl peer. You can do this by setting an option.

curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);

Posted by: 
Dominique De Cooman

The whole thing did not work without this line.

ftp_pasv($conn_id, true);

Apparently with some ftp accounts you need to transfer in passive mode. As usual not documented by the client.

Posted by: 
Dominique De Cooman

My problem was I didnt want php code in my views footer. But I still needed to check if a module existed to call a function of that module.
Here is the hook_views_pre_render, what happens in the function is :
- checking for the correct view and adding content to the footer
- setting the filter format which is the full html id
- setting the empty option

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 :

Pages

Subscribe to Blog