Blog

Posted by: 
Dominique De Cooman

At http://twitterfeed.com you can create an account.
Fill in your twitter account.
Submit a feed to your blog.
And posts are posted to your twitter account periodicaly using your blogs feed.

Posted by: 
Dominique De Cooman

A new site implementing gigya. The module has been altered in many ways.
Making it more usable.

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

Pages

Subscribe to Blog