CMS

Drupal and Squid

Here are some posts on setting up Squid in front of Drupal:

Multi-Language in Drupal 6

Here are some modules, posts and discussion on how to do multiple languages in Drupal 6:

Notes on Upgrading Drupal 5 Website to Drupal 6

We have successfully upgraded a Drupal-5 website to Drupal-6. Just follow the UPGRADE.txt file that comes with the package, with one minor point as below:

Convert Simplified Chinese to Traditional Chinese in a Drupal Project

If you have a Drupal website in Simplified Chinese, and now you want to to convert it into Traditional Chinese, or the other way around, here is how you can do it:

Drupal Tip: How to Move Serialized Data from One Table to Another Table

We were trying to insert serialized array data into a table, using the module.install update. We then noticed that we couldn't unserialize the data afterwards. After a little looking around, we realized that we cannot use the function "update_sql()" to insert the serialized data.

Upgrade Drupal-Localizer-5.x-1.x to Drupal-Localizer-5.x-3.x

If you are still using Drupal-Localizer-5.x-1.x, please consider upgrading to Drupal-Localizer-5.x-3.x. The localizer module will not be upgraded to Drupal-6. Upgrading your Drupal-Localizer-5.x-1.x to Drupal-Localizer-5.x-3.x will make you site compatible for upgrading to Drupal-6.

HowTo: Upgrading from Localizer 1.10 to 3.x is what you need to follow. Below is my note taken when upgrading from Drupal-Localizer-5.x-1.11 to Drupal-Localizer-5.x-3.11.

Harden Your Drupal Websites

Note: This is still a work in progress. I will gradually add items to the list. You are welcome to contribute your points. Thanks.

To begin, we shall first follow Configuration steps for a more secure site. Then we can do the rest as listed below.

Case Study of a Cracked Drupal Website

We recently examined a website built using Drupal CMS. Somehow it was hacked into and all PDF files in the website were replaced with the ones carrying viruses.

After some probing around, we found that it wasn't caused by any vulnerability inside the Drupal code. The hackers stole an admin account and changed the configuration, and then further altered the content.

The website had upload module (in core) enabled.

Customize and Extend FCKeditor's Styles

In FCKeditor Developer's Guide, there is a page explaining how to custom the styles.

Any new styles I added to fckstyles.xml will be added to the "Style" dropdown menu, even if they are block level styles.

Say, I want to add an indented paragraph with borders, I add this to the fckstyles.xml: