A quick cheat sheet for pantarei-siren GIT

Project Trac page:

  • http://trac.pantarei-design.com/pantarei-siren/
  • http://trac.pantarei-design.com/pantarei-siren/browser

Clone GIT repository as anonymous:

  • git clone git://pantarei-design.com/git/pantarei-siren
  • git clone -b 1.0.0-alpha1 git://pantarei-design.com/git/pantarei-siren

Create an archive from local git code:

Patch Drupal Colorbox module with Image Assist support

I have been using Drupal Lightbox2 module (http://drupal.org/project/lightbox2) for more than 2 years. BTW, it looks too buggy now a day when combine with other new modules, e.g. jquery_update, jquery_ui, img_assist, and so on. Its time for me to search for another replacement solution.

How to fix your Debian file system with fsck

Today my server is suddently report with file system error (ext4) after reboot. Some partition is not able to mount automatically and require for fsck. Here are some simple sharing about how to fix it safely.

How to solve Nice Menu hover behind Flash content inserted by FCKeditor

I am combine the use of Drupal's Nice Menu as primary links, and insert a Flash banner into block by FCKeditor. BTW, the hover drop down menu always stay behind the Flash content in IE8. Here is a quick fix: diff -urpNwbB /var/www/html/sites/all/modules/fckeditor/fckeditor/editor/dialog/fck_flash/fck_flash.js ./fckeditor/editor/dialog/fck_flash/fck_flash.js --- /var/www/html/sites/all/modules/fckeditor/fckeditor/editor/dialog/fck_flash/fck_flash.js 2010-05-05 23:54:48.000000000 +0800 +++ ./fckeditor/editor/dialog/fck_flash/fck_flash.js 2010-05-05 23:54:33.000000000 +0800

How to solve FCKeditor background color conflict with Drupal theme

When working with Drupal theme sometime its body CSS may define as color other than white as below: body { color: #FFF; background-color: #000; } Therefore FCKeditor will inheritance its color within editor area and so break the layout. Here is a quick workaround. Edit your fckconfig.js (e.g. sites/all/modules/fckeditor//fckeditor/fckconfig.js as below: FCKConfig.EditorAreaStyles = 'body {color: #000; background-color: #FFF;}' ; Remember to clean both Drupal and your browser cache. Done.

Can't type anything with pinentry.exe

I am now using Win7 + Thunderbird + Gpg4win, but don't know why that pinentry.exe can't type in within any characters... After a quick research I found this useful site (http://wald.intevation.org/tracker/index.php?func=detail&aid=1229&group_id=11&atid=126):
when I rename pinentry-win32.exe --> pinentry.exe It's worked!!!!! Maybe you only need modify some code for win7
  1. Go to C:\Program Files\GNU\GnuPG
  2. Backup pinentry.exe as pinentry.exe.orig
  3. Copy pinentry-w32.exe as pinentry.exe

Bulk replace content inline hyper link as CCK link field

I have a Drupal site that need to replace some content inline hyper links as CCK link field. The reason is: link field is more simple and user-friendly for my client, which don't need the BUeditor to input the link into content. So simply:
  1. Add new link field (e.g. "field_link" within this example) for the existing content type (e.g. "newslink" within this example)
  2. Use Devel and run the following code snippet, which loop though all target content, parse the hyper link, and insert it into link field

Happy Chinese New Year!!

Happy Chinese New Year!! 各位虎年快樂! 新年新氣象,祝大家:虎虎生威;如虎添翼;龍行虎步;龍精虎猛!


Subscribe to Edison Wong RSS