Imagecache output in template.php

Sometimes when theming on some level you need to output some image through imagecache, so here is how to do it. Usually in some function in template.php you will write this

Fusion theme classes for node add and node edit pages

I almost always use Fusion theme as my base theme, one thing its missing and developers of it seem not to care is a class that is in body and is different for node add and node edit pages, so I usually go to template.php and around line 64, after

Box Shadow in IE7 and IE8

Finally in IE9 MS started to support proper and useful CSS tags. But at this moment in time you still need to have support for IE7 and IE8. So If you want to make some nice box shadows, you are in a problem. Luckly this page comes to help http://css3pie.com/
works as it should, donate to those people, they made your life much easier :-)

Facebook-style Micropublisher change link of attachment

Facebook-style Micropublisher works great with Facebook-style Statuses and is one of the coolest "new" drupal modules. Statuses are lightweight for database but statuses also can have their own page like nodes. Problem is that in my case this is not out of the box solution. So again i made some hacking :-)

Setting The Front Page Per Language

This often has given me lots of headaches, how to setup front page for each language. There are several ways, depending on your site configuration chooses one.

Hiding History in User profile view

This option of showing user history seems more obsolite then useful, se lets hide it.

For Drupal 6, copy this file from your /sites/modules/user directory:
user-profile-category.tpl.php, put the copy into your custom theme directory and within that file, replace the code with this

One time login destination override

There is a great module for people you registred manually but you need to give them login information after this. It is one time login module but it lacks option to redirect users to their user edit page, which is the first thing they should do, enter their NEW PASSWORD.

Drupal Calc and age of users

I am bulding a view with stats for users that are registred and inputed DOB. Currently core profile module and views (drupal 6) don't play along when using dates. The way data is stored seems to be the problem. Anyway you can't filter and sort your users by date, but you can make this happen with customfield PHP code.