Code filter fix and help

I was trying to use code filter module for this page, but without any luck. As most users i was getting this error and couldn't do anything to make it work. So I made my own solution for this. I created CSS class

Gmap center and resize when block is collapsed

When you have a problem with google map when hiding or collapsing it within a block you need to do something to fix this. A way to do this is to make gmap block absolute in position and -10000 px in left like

#block-gmap_location-0{
    position: absolute;
   left: -10000px;
}

and then use jquery to show it with js script

Custom field in views, dates ande serializing

When using views, sometimes you just can't get output you want for the fields you are outputing, then you use Custom field module. Custom field let's you use PHP as field and get all the date from other field with $data array (output it with print_r ($data); to see what is in there) So i wanted to output date field with a condition.

Simple google map

You want simple google map without some extra modules, API keys etc? This is rather simple, all you need is to go to google maps, choose your location and go to upper right corner where is "Paste HTML to embed in website" code, copy that code. Go to Block sections in your drupal administration, create new block and place that code in block.

Custom imagecache output of image

You are looping through some arrays and you have some image variable, path of original image. You want to print out some variation of that image, this is what you do

Get and loop results from view

You constructed a view and want to get view results and fine tune some usage of them by PHP this is how you get them

 $view = views_get_view_result('Name_of_View'); print_r($view);  

You will get classic array of values where you can choose which one you want to use and print out. You can also add name of display you want to use.

Profil to Content Profile

There is a content profile module that basicly uses standard nodes for user profile data. When will you want to use it? When normal profile resources run out. This is usually when you want to have a more complex fields for user or have some backreferences.