I am newbie to magento.We are using **magento 1.6**.One of my friend did the designing part for magento.Currently we have the static categories on the right side by using 2column-right.phtml.

No I want to display the active categories in the right column.I tried all the solutions mentioned in the post 
[Stackoverflow solution](https://stackoverflow.com/questions/604743/how-to-get-a-category-listing-from-magento) .Tried accepted and unaccepted solutions too.Also tried some others but no luck.whether I am in the right way.

1.Is this the proper way to get the categories in the 2column-right.phtml.  

 2.If not how can I get the categories.  

 3. What I need to change to get the category list from the above solutions.  

Please give me solution for this .