Drupal 6 Different page templates depending on URL aliases

Place this code in your template.php file if you want u use different templates for the same code.

Create a template named page-SOMETING-tpl.php
Create a url alias node/NID SOMETHING


function phptemplate_preprocess_page(&$vars) {
if (module_exists('path')) {
$alias = drupal_get_path_alias(str_replace('/edit','',$_GET['q']));
if ($alias != $_GET['q']) {

No Preview Images in Drupal 6.x ImageCache

Drupal-Logo.png

If you have no preview images in ImageCache under Drupal 6.x than is's possible that you do not have clean URL Enabled. ImageChache doesn't work with Clean URL Disabled.

Check: Admin --> Site configuration --> Clean URLs.

If "Disabled" switch to "Enabled"

PHP5 - GD for Drupal 6.x

Drupal-Logo.png

While installing some Image modules in Drupal I get the message:

GD Image Filtering Low Quality / Poor Performance

Print alle node variables in Drupal

If you want to print all variables from a Drupal node insert this piece of code in the your template like node.tpl.php.

<pre>

Print alle node variables
<?php  print_r($node);?>

</pre>

Drupal Colapsible fieldset dosn't works in edit mode

Drupal-Logo.png

I figured out that the collapsed fieldset is not clickable if I try to edit in the not default language. I have two languages active. EN and NL. Everything works fine in EN (the standard language) while in NL I can't open the collapsed fieldset because the are not clickable.

MY SOLUTION
Switch to standard language.

See: http://drupal.org/node/530614

How-To Drupal and Gallery2 embedded

Gallery2-Logo.png

I spend hours to embed my Gallery2 correct in Drupal.

I want to use my Gallery2 embedded in Drupal(6) and I want to use my Gallery2 also . To get this don I needed to wire the .htaccess files manually.

IMPORTANT: Do not use the dir gallery for your stand alone Gallery2 installation. This conflicts with Drupal gallery.module.

Gallery2 Stand Alone

How To Adjust Date and/or Time setting in EXIF date from JPG pictures

EXIF-Logo.png

Sometimes it happend: The clock from your digital camera isn't on the right time. So all your pictures have the wrong date or time in EXIF data. This can be a very big problem if you use more than one camera and want to sort the pictures of a event on the date and time that the picture was taken.