http://drupal.org/node/17272

Where should I write the code on the above mention link ?
any idea

Comments

VM’s picture

goto administer -> blocks and click on the add block tab

before deploying any php, test on a page content type first with the php input format to insure that the snippet still works in the current version of drupal.l

arhak’s picture

"Create a custom block and set the input filter to php."
So, what you have to do is (I won't write the exactly name of each menu):
- go to the administration
- administer blocks
- add a new block of type custom block
- set the input filter to php
- copy & paste the desired php code
- save the block
- go to the configuration of the theme
- configure the new block to show up in the desired region/sidebar

got it?