Home » Archive

Articles Archive for February 2010

Google, Making Money Online »

[25 Feb 2010 | 6 Comments | 1,520 views]

I used to have google adsense in my blog but they suddenly disappeared these days. I don’t see the adsense in my blog. Instead, I see ads stating ‘Microfinance Empowers‘ in some of my adsense block. Others are empty. I googled the web and found the following cause and solution:-

Magento »

[24 Feb 2010 | 8 Comments | 5,365 views]

In my previous article to resize image in Magento, I had written direct code to resize any image. Here, I will be writing a simple function to resize image proportionally, which can be kept in the helper file of the module (as helper file can be accessed by any template (.phtml) file). Here is the [...]

Magento »

[20 Feb 2010 | 7 Comments | 11,913 views]

Breadcrumbs are very useful for user navigation. Breadcrumbs for product page, category page, etc. are created by default Magento code. The following code will show breadcrumbs created by Magento. You can print the following code anywhere in php or phtml files.

Magento »

[19 Feb 2010 | 11 Comments | 8,196 views]

In adminhtml, you might have the following code in any form. Here ‘logo‘ is the name of the input type file. Or, you may have any HTML Form with the File field in the frontend page. Remember that your form’s enctype should be multipart/form-data.

Magento »

[18 Feb 2010 | 5 Comments | 7,818 views]

Registry means registering or creating a new variable which is to be used later on in the project/code. The registry variable acts as a global variable which can be used anywhere. We register a variable with register() function. We can unregister the variable with unregister() function. To fetch the registry variable, we use registry() function. [...]

Magento, XML »

[17 Feb 2010 | One Comment | 3,605 views]

Here, I will be showing you how you can read XML nodes from config.xml file of your module. It’s through the Magento way with Mage::getConfig()->getNode() function. :) Here is the XML code of my config.xml file. I will be reading the nodes of this XML file.

Magento, XML »

[17 Feb 2010 | 5 Comments | 2,553 views]

I will be using Varien_Simplexml_Element class to read write xml nodes. The path to this class file is lib/Varien/Simplexml/Element.php Here is a sample XML file which I am going to read through Magento code. I will also be adding an XML node to the following XML data.

Magento »

[16 Feb 2010 | 5 Comments | 6,169 views]

I was building a custom module in Magento. I had created a system.xml file for storing configuration data from admin. From the below system.xml file, you can see that I have created a section named ‘My Module Name‘ which can be accessed from Admin –> System –> Configuration. In the file below, I have just [...]

Magento »

[16 Feb 2010 | 6 Comments | 11,426 views]

Earlier in this blog, I had written about setting title, keywords, and description from xml layout file. In this article, I will be showing, how you can set/change title, keywords and description of any page programmatically. I mean, by php code. Here is the layout XML file. I have set title and template in the [...]

jQuery »

[13 Feb 2010 | 15 Comments | 15,829 views]

Here, I will show you how to preview Image with grey out background effect. I mean, you will be able to preview large image when you click the thumbnail image. The background of the page will be greyed and the image will be displayed as popup. View Demo || Download Code

jQuery »

[12 Feb 2010 | 4 Comments | 4,552 views]

Here, I will show you how to preview Image with Zoom effect. I mean, you will be able to preview large image when you hover the thumbnail image. The image is zoomed when hovered. View Demo || Download Code

jQuery »

[10 Feb 2010 | 9 Comments | 6,171 views]

Here, I will show you how to preview Image as a tooltip effect. I mean, you will be able to preview large image when you hover the thumbnail image. The preview is shown as tooltip is shown generally. View Demo || Download Code

jQuery »

[8 Feb 2010 | No Comment | 1,428 views]

Here, I will show you how to show tooltip with jQuery. It’s very simple and easy. I have a href link. I will show you, how to show tooltip when you hover your mouse over the link. The title of the href link will be shown as tooltip. View Demo || Download Code

jQuery »

[5 Feb 2010 | One Comment | 3,040 views]

Here, I will be showing you how to create a cool bouncing navigation with jQuery and jQuery easing plugin. The content appears with the bouncing effect as you navigate through the menu. You need jQuery Library and the jQuery easing plugin. But you need not worry, I have zipped them all in the download file.

Magento »

[4 Feb 2010 | 3 Comments | 3,968 views]

Suppose, you have created a new module or you have an existing module. You have a frontend page for your module. You want to set or change title, keywords, and/or description of your module page. Well, you can do so by adding few lines of code in layout xml file of your module. The layout [...]