Simple piece of code for checking are you on admin area or on frontend
<?php if (Mage::app()->getStore()->isAdmin()) { // your are on admin area } else { // you are on frontend }
Related posts:
How to get all Store Ids in Magento
If you want to get all IDs of available store views in your Magento store you can just use this code...
How to Setup Store
Setting Up Your Store On Magento
Setting up your Magento store is quite an easy and straightforw...
How To Install A Magento Theme
How To Install A Magento Theme
Installing a Magento theme is not as easy as you would have loved ...
Formatted price without currency symbol
Sometimes you need to display get formatted price (for example on custom grids in admin ) but withou...